cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1954
Views
0
Helpful
3
Replies

NAT Rules for OpenVPN

carmonj
Level 1
Level 1

All,

 

I am having difficulty setting up an OpenVPN firewall rules. Here is my running config

 

: Saved

:
: Serial Number: JAD21290D2D
: Hardware: ASA5506, 4096 MB RAM, CPU Atom C2000 series 1250 MHz, 1 CPU (4 cores)
:
ASA Version 9.8(1)
!
hostname ciscoasa
enable password $sha512$5000$3ReiS6mEZI8Ylkm0Wc0nGg==$1cK03Z/MNTwOXtq7HLVmbw== pbkdf2
names

!
interface GigabitEthernet1/1
nameif outside
security-level 0
ip address X.X.X.X 255.255.255.0
!
interface GigabitEthernet1/2
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface GigabitEthernet1/3
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/4
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/5
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/6
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/7
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/8
shutdown
no nameif
no security-level
no ip address
!
interface Management1/1
management-only
no nameif
no security-level
no ip address
!
ftp mode passive
object network obj_any
subnet 0.0.0.0 0.0.0.0
object network MAILSERVER
host 192.168.1.20
object network VPNServer
host 192.168.1.3
description VPN Server
object network VPNServerUDP
host 192.168.1.3
object network vpnserver-943
host 192.168.1.3
object-group protocol TCPUDP
protocol-object udp
protocol-object tcp
access-list outside_access_in extended permit tcp any object VPNServer
access-list outside_access_in extended permit udp any object VPNServer
pager lines 24
logging enable
logging asdm informational
mtu outside 1500
mtu inside 1500
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
arp rate-limit 16384
!
object network obj_any
nat (any,outside) dynamic interface
object network VPNServer
nat (inside,outside) static VPNServer
object network VPNServerUDP
nat (inside,outside) static VPNServer service udp 1194 1194
object network vpnserver-943
nat (inside,outside) static VPNServer service tcp 943 943
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 24.247.15.9 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 sctp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
timeout conn-holddown 0:00:15
timeout igp stale-route 0:01:10
user-identity default-domain LOCAL
aaa authentication login-history
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
service sw-reset-button
crypto ipsec security-association pmtu-aging infinite
crypto ca trustpool policy
telnet timeout 5
no ssh stricthostkeycheck
ssh timeout 5
ssh key-exchange group dh-group1-sha1
console timeout 0

dhcpd dns 192.168.1.3 209.18.47.61
dhcpd auto_config outside
!
dhcpd address 192.168.1.30-192.168.1.254 inside
dhcpd dns 192.168.1.3 209.18.47.61 interface inside
dhcpd enable inside
!
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
dynamic-access-policy-record DfltAccessPolicy
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
no tcp-inspection
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:4cf06a381cfbb9e4af6b46ab8da87fd4
: end
no asdm history enable

 

I need to open ports 443, 943, and 1194.

 

With this config I am returning the message.

3Jun 02 201919:14:51 174.230.134.1758932X.X.X.X443TCP access denied by ACL from 174.230.134.175/8932 to outside:X.X.X>X/443

 

3 Replies 3

carmonj
Level 1
Level 1

Seems I may have found my problem, but don't know how to fix it. When I put the translated address as my external IP address I get the error message that is overlaps with external IP address. So I have to setup port forwarding. All of the instructions I find end up setting up exactly what I have currently setup.

try this

!


object-group protocol TCPUDP
protocol-object udp
protocol-object tcp
!
object network VPNServer
host 192.168.1.3
description VPN Server
object network VPNServerUDP
host 192.168.1.3
object network vpnserver-943
host 192.168.1.3
!
object network vpnserver-443
host 192.168.1.3
!
object group network VPN-ALL-SERVER
network-object object VPNServer
network-object object VPNServerUDP
network-object object vpnserver-943
network-object object vpnserver-443
!
access-group outside_access_in permit object-group TCPUDP any object-group VPN-ALL-SERVER
!
access-list outside_access_in in interface outside

!

please do not forget to rate.

The Result here is the exact same situation. I believe my NAT path is incorrect as it does not include the external IP address.

 

When I create the path and add to to tine Out-In portion (translated IP address) I get the error that it overlaps with the external IP address.

Review Cisco Networking for a $25 gift card