Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

routing to net beyond LAN via VPN

Status
Not open for further replies.

Sorebrek

MIS
Jan 14, 2005
29
US
I'm trying to allow VPN users connect to networks beyond the local network that they connect into. These users connect over the Internet into my local 10.3/16 network. I'd like them to also be able to reach other 10.x/16 networks that are available via another router gateway.
I have tried creating static routes going out the internal interface for these networks pointing to the IP address of the gateway router, but I still only can reach the local network!

Any ideas? I'll post config if needed. Thanks.
 
Post your config to be sure, but have you added those networks to your nat exemption ACL?


Brent
Systems Engineer / Consultant
CCNP, CCSP
 
I believe the other networks are added to the nat exemption list.
Note 10.3.1.1 is the Router to the other 10.x.x.x nets.

ASA Version 7.2(2)22
!
hostname GETasa
domain-name asa.zzz.com
enable password Mn7ORRerm encrypted
names
!
interface Ethernet0/0
nameif GETout
security-level 0
ip address 64.105.x.x 255.255.255.248
!
interface Ethernet0/1
nameif GETin
security-level 100
ip address 10.3.1.2 255.255.0.0
!
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
nameif management
security-level 100
ip address 192.168.1.1 255.255.255.0
management-only
!
passwd 2dI.2KYOU encrypted
boot system disk0:/asa722-22-k8.bin
ftp mode passive
clock timezone PST -8
clock summer-time PDT recurring
dns server-group DefaultDNS
domain-name asa.zzz.com
access-list GETin_nat_outbound extended permit icmp 10.0.0.0 255.0.0.0 any
access-list GETin_access_in extended permit ip any any
access-list GETin_access_in extended permit icmp 10.0.0.0 255.0.0.0 any
access-list GETin_access_in extended permit ip 10.0.0.0 255.0.0.0 any
access-list GETout_cryptomap extended permit ip any 192.168.10.0 255.255.255.0
access-list GETout_cryptomap extended permit icmp any 192.168.10.0 255.255.255.0
access-list GETin_nat0_outbound extended permit ip 10.0.0.0 255.0.0.0 192.168.10.0 255.255.255.0
access-list GETin_nat0_outbound extended permit ip 10.3.0.0 255.255.0.0 10.0.0.0 255.0.0.0
access-list GETout_access_in extended permit tcp any eq smtp host 64.105.x.x eq smtp
access-list GETout_access_in extended permit tcp any eq pop3 host 64.105.x.x eq pop3
access-list GETout_access_in extended permit tcp any eq 587 host 64.105.x.x eq 587
access-list GETout_access_in extended permit tcp any eq 3389 host 64.105.x.x eq 3389
access-list GETout_access_in extended permit tcp any eq 64.105.x.x eq www
access-list smtp extended permit tcp any interface GETout eq pop3
access-list smtp extended permit tcp any interface GETout eq smtp
access-list smtp extended permit tcp any interface GETout eq www
access-list smtp extended permit tcp any interface GETout eq 587
access-list smtp extended permit tcp any interface GETout eq 3389
access-list GETsplitTunnel remark GET net
access-list GETsplitTunnel standard permit 10.3.0.0 255.255.0.0
access-list GETsplitTunnel remark Shltn network
access-list GETsplitTunnel standard permit 10.1.0.0 255.255.0.0
access-list GETsplitTunnel remark Gfd net
access-list GETsplitTunnel standard permit 10.22.0.0 255.255.0.0
pager lines 24
logging enable
logging asdm informational
mtu GETout 1500
mtu GETin 1500
mtu management 1500
ip local pool mypool 192.168.10.1-192.168.10.245
icmp unreachable rate-limit 1 burst-size 1
icmp permit any GETout
icmp permit any GETin
asdm image disk0:/asdm-522.bin
no asdm history enable
arp timeout 14400
nat-control
global (GETout) 101 interface
nat (GETin) 0 access-list GETin_nat0_outbound
nat (GETin) 101 10.0.0.0 255.0.0.0
static (GETin,GETout) tcp interface smtp 10.3.2.2 smtp netmask 255.255.255.255
static (GETin,GETout) tcp interface pop3 10.3.2.2 pop3 netmask 255.255.255.255
static (GETin,GETout) tcp interface 3389 10.3.2.4 3389 netmask 255.255.255.255
static (GETin,GETout) tcp interface 255.255.255.255
static (GETin,GETout) tcp interface 587 10.3.2.2 587 netmask 255.255.255.255
access-group smtp in interface GETout
access-group GETin_access_in in interface GETin
route GETout 0.0.0.0 0.0.0.0 64.105.169.185 2
route GETin 10.1.0.0 255.255.0.0 10.3.1.1 1
route GETin 10.22.0.0 255.255.0.0 10.3.1.1 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 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 uauth 0:05:00 absolute
aaa-server GETAAAK protocol kerberos
aaa-server GETAAAK (GETin) host 10.3.2.5
kerberos-realm ZZZ.COM
group-policy GETtunnel internal
group-policy GETtunnel attributes
banner value WELCOME to zzz
wins-server value 10.3.2.5
dns-server value 10.3.2.5
vpn-tunnel-protocol IPSec l2tp-ipsec
default-domain value zzz.com
http server enable
http 192.168.1.0 255.255.255.0 management
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
sysopt connection tcpmss 1360
auth-prompt accept ZZZ accepted!
auth-prompt reject ZZZ rejected!
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto dynamic-map GETout_dyn_map 20 set transform-set ESP-DES-MD5 ESP-3DES-SHA
crypto map GETout_map 20 ipsec-isakmp dynamic GETout_dyn_map
crypto map GETout_map interface GETout
crypto isakmp enable GETout
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
crypto isakmp nat-traversal 20
group-delimiter @
tunnel-group GETtunnel type ipsec-ra
tunnel-group GETtunnel general-attributes
address-pool mypool
authentication-server-group GETAAAK
default-group-policy GETtunnel
tunnel-group GETtunnel ipsec-attributes
pre-shared-key *
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 GETout
ssh timeout 60
console timeout 0
management-access GETin
dhcpd address 192.168.1.2-192.168.1.254 management
!
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
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 icmp error
inspect icmp
!
service-policy global_policy global
tftp-server GETin 10.3.4.123 c:\TFTP-Root\5510config
prompt hostname context
Cryptochecksum:f27c891a952ecb
: end

: end
 
I worked with Cisco on resolving this issue.

The basic answer is that the router to the other 10.x networks was not aware of the network the VPN users pooled from (192.168.1.x) so it could not route once the packets hit it.

This could have been solved by adding a route to that router, however it was property of the service provider and we did not have access to it.

The solution was to NAT the VPN clients into the local network using a dynamic policy so the clients appeared to be coming from the LAN.

I can post/email config if interested.
 
Yes please do. Can you also give a quick description of the topology?
This should be good knowledge base for others that have the same setups.


Brent
Systems Engineer / Consultant
CCNP, CCSP
 
Here is the config. On the inside, 10.3.1.1 is the router to the other 10.0.0.0 networks and 10.3.1.2 is the router to the Internet. Note the command:
nat (GETout) 1 access-list vpnclient outside
which NATs the VPN clients into the local network.

Also note the multiple access lists for this.


ASA Version 7.2(2)22
!
hostname GETasa
domain-name asa.zzz.com
enable password Mn7erm encrypted
names
!
interface Ethernet0/0
nameif GETout
security-level 0
ip address 64.105.x.x 255.255.255.248
!
interface Ethernet0/1
nameif GETin
security-level 100
ip address 10.3.1.2 255.255.0.0
!
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
nameif management
security-level 100
ip address 192.168.1.1 255.255.255.0
management-only
!
passwd Mn7Ag6me2pORRerm encrypted
boot system disk0:/asa722-22-k8.bin
ftp mode passive
clock timezone PST -8
clock summer-time PDT recurring
dns server-group DefaultDNS
domain-name asa.goodearthteas.com
access-list GETin_nat_outbound extended permit icmp 10.0.0.0 255.0.0.0 any
access-list GETin_access_in extended permit ip any any
access-list GETin_access_in extended permit icmp 10.0.0.0 255.0.0.0 any
access-list GETin_access_in extended permit ip 10.0.0.0 255.0.0.0 any
access-list GETout_cryptomap extended permit ip any 192.168.10.0 255.255.255.0
access-list GETout_cryptomap extended permit icmp any 192.168.10.0 255.255.255.0
access-list GETin_nat0_outbound extended permit ip 10.0.0.0 255.0.0.0 192.168.10.0 255.255.255.0
access-list GETin_nat0_outbound extended permit ip 10.3.0.0 255.255.0.0 10.0.0.0 255.0.0.0
access-list GETin_nat0_outbound extended permit ip 10.0.0.0 255.0.0.0 10.199.199.0 255.255.255.0
access-list GETout_access_in extended permit tcp any eq smtp host 64.105.x.x eq smtp
access-list GETout_access_in extended permit tcp any eq pop3 host 64.105.x.x eq pop3
access-list GETout_access_in extended permit tcp any eq 587 host 64.105.x.x eq 587
access-list GETout_access_in extended permit tcp any eq 3389 host 64.105.x.x eq 3389
access-list GETout_access_in extended permit tcp any eq 64.105.x.x eq www
access-list smtp extended permit tcp any interface GETout eq pop3
access-list smtp extended permit tcp any interface GETout eq smtp
access-list smtp extended permit tcp any interface GETout eq www
access-list smtp extended permit tcp any interface GETout eq 587
access-list smtp extended permit tcp any interface GETout eq 3389
access-list GETsplitTunnel remark GET net
access-list GETsplitTunnel standard permit 10.3.0.0 255.255.0.0
access-list GETsplitTunnel remark Shn network
access-list GETsplitTunnel standard permit 10.1.0.0 255.255.0.0
access-list GETsplitTunnel remark Grd net
access-list GETsplitTunnel standard permit 10.22.0.0 255.255.0.0
access-list x extended permit icmp any any
access-list vpnclient extended permit ip 10.199.199.0 255.255.255.0 10.3.0.0 255.255.0.0
access-list vpnclient extended permit ip 10.199.199.0 255.255.255.0 10.1.0.0 255.255.0.0
access-list vpnclient extended permit ip 10.199.199.0 255.255.255.0 10.22.0.0 255.255.0.0
access-list vpnclient extended permit ip 10.3.0.0 255.255.0.0 10.199.199.0 255.255.255.0
access-list vpnclient extended permit ip 10.1.0.0 255.255.0.0 10.199.199.0 255.255.255.0
access-list vpnclient extended permit ip 10.22.0.0 255.255.0.0 10.199.199.0 255.255.255.0
pager lines 24
logging enable
logging monitor notifications
logging asdm informational
mtu GETout 1500
mtu GETin 1500
mtu management 1500
ip local pool mypool 10.199.199.1-10.199.199.254 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
icmp permit any GETout
icmp permit any GETin
asdm image disk0:/asdm-522.bin
no asdm history enable
arp timeout 14400
nat-control
global (GETout) 101 interface
global (GETin) 1 interface
nat (GETout) 1 access-list vpnclient outside
nat (GETin) 0 access-list GETin_nat0_outbound
nat (GETin) 101 10.0.0.0 255.0.0.0
static (GETin,GETout) tcp interface smtp 10.3.2.2 smtp netmask 255.255.255.255
static (GETin,GETout) tcp interface pop3 10.3.2.2 pop3 netmask 255.255.255.255
static (GETin,GETout) tcp interface 3389 10.3.2.6 3389 netmask 255.255.255.255
static (GETin,GETout) tcp interface 255.255.255.255
static (GETin,GETout) tcp interface 587 10.3.2.2 587 netmask 255.255.255.255
access-group smtp in interface GETout
access-group GETin_access_in in interface GETin
route GETout 0.0.0.0 0.0.0.0 64.105.169.185 2
route GETin 10.1.0.0 255.255.0.0 10.3.1.1 1
route GETin 10.22.0.0 255.255.0.0 10.3.1.1 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 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 uauth 0:05:00 absolute
aaa-server GETAAAK protocol kerberos
aaa-server GETAAAK (GETin) host 10.3.2.5
kerberos-realm TETLEY.GRP
group-policy GETtunnel internal
group-policy GETtunnel attributes
banner value WELCOME to GE
wins-server value 10.3.2.5
dns-server value 10.3.2.5
vpn-tunnel-protocol IPSec l2tp-ipsec
split-tunnel-policy tunnelspecified
split-tunnel-network-list value GETsplitTunnel
default-domain value zzz.grp
http server enable
http 192.168.1.0 255.255.255.0 management
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
sysopt connection tcpmss 1360
auth-prompt accept GET accepted!
auth-prompt reject GET rejected!
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto dynamic-map GETout_dyn_map 20 set transform-set ESP-DES-MD5 ESP-3DES-SHA
crypto map GETout_map 20 ipsec-isakmp dynamic GETout_dyn_map
crypto map GETout_map interface GETout
crypto isakmp enable GETout
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
crypto isakmp nat-traversal 20
group-delimiter @
tunnel-group GETtunnel type ipsec-ra
tunnel-group GETtunnel general-attributes
address-pool mypool
authentication-server-group GETAAAK
default-group-policy GETtunnel
tunnel-group GETtunnel ipsec-attributes
pre-shared-key *
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 GETout
ssh 171.68.225.212 255.255.255.255 GETout
ssh timeout 60
console timeout 0
management-access GETin
dhcpd address 192.168.1.2-192.168.1.254 management
!
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
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 icmp error
inspect icmp
!
service-policy global_policy global
tftp-server GETin 10.3.4.123 c:\TFTP-Root\5510config
prompt hostname context
Cryptochecksum:2b6fa28ec0c9c7562df75e7e9786a619
: end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top