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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internet over a VPN connection

Status
Not open for further replies.
May 7, 2003
12
0
0
US
Ok I got everything working that I need.
However, when I VPN with the standard Microsoft PPTP client on XP I can't get internet.
Here is my config with the 10.10.10 replacing my real public IP's.

I had to fix this on the Windows XP side. This is what I did to fix it. I turned off "Use gateway on remote host" in the VPN-TCP/IP Props and added a route for the following:

192.168.2.0 to use interface 192.168.4.x
192.168.3.0 to use interface 192.168.4.x

So here's my question. Is this the correct way to do this? Or is there a more efficient way to do this? (which I'm sure there is, just don't know that much about PIX)

-----------------------------
nameif ethernet0 outside security0
nameif ethernet1 inside security100
nameif ethernet2 dmz security50

hostname ssprod-pix
fixup protocol ftp 21
fixup protocol http 80
fixup protocol h323 1720
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol sip 5060
fixup protocol skinny 2000
fixup protocol ftp 2184
names
access-list acl_inside permit icmp any any
access-list acl_inside permit tcp any any
access-list acl_inside permit tcp any any eq smtp
access-list acl_inside permit udp any any

access-list acl_dmz permit tcp host 192.168.2.11 host 192.168.3.11 eq 1433
access-list acl_dmz permit tcp host 192.168.2.12 host 192.168.3.11 eq 1433
access-list acl_dmz permit tcp host 192.168.2.13 host 192.168.3.11 eq 1433
access-list acl_dmz permit icmp any any
access-list acl_dmz permit tcp any any
access-list acl_dmz permit tcp any any eq smtp
access-list acl_dmz permit udp any any

access-list acl_outside permit icmp any any
access-list acl_outside permit tcp any any eq www
access-list acl_outside permit tcp any any eq 443
access-list acl_outside permit tcp any any eq 2184
access-list nonatinside permit ip 192.168.3.0 255.255.255.0 192.168.4.0 255.255.255.0
access-list nonatdmz permit ip 192.168.2.0 255.255.255.0 192.168.4.0 255.255.255.0
no pager
logging console debugging
interface ethernet0 10full
interface ethernet1 100basetx
interface ethernet2 100basetx
icmp deny any outside
icmp permit any inside
icmp permit any dmz
mtu outside 1500
mtu inside 1500
mtu dmz 1500

ip address outside 10.10.10.1 255.255.255.0
ip address inside 192.168.3.1 255.255.255.0
ip address dmz 192.168.2.1 255.255.255.0

ip audit info action alarm
ip audit attack action alarm
ip local pool vpdnpool 192.168.4.1-192.168.4.50

pdm location 192.168.3.11 255.255.255.255 inside
pdm location 192.168.3.14 255.255.255.255 inside
pdm location 192.168.2.11 255.255.255.255 dmz
pdm location 192.168.2.12 255.255.255.255 dmz
pdm location 192.168.2.13 255.255.255.255 dmz
pdm history enable

arp timeout 14400

global (outside) 1 10.10.10.158
nat (inside) 0 access-list nonatinside
nat (inside) 1 192.168.3.0 255.255.255.0 0 0
nat (dmz) 0 access-list nonatdmz
nat (dmz) 1 192.168.2.0 255.255.255.0 0 0

static (inside,dmz) 192.168.3.0 192.168.3.0 netmask 255.255.255.0 0 0
static (dmz,outside) 10.10.10.131 192.168.2.11 netmask 255.255.255.255 0 0
static (dmz,outside) 10.10.10.132 192.168.2.12 netmask 255.255.255.255 0 0
static (dmz,outside) 10.10.10.133 192.168.2.13 netmask 255.255.255.255 0 0
static (dmz,outside) 10.10.10.134 192.168.2.14 netmask 255.255.255.255 0 0
static (dmz,outside) 10.10.10.136 192.168.2.16 netmask 255.255.255.255 0 0
static (dmz,outside) 10.10.10.135 192.168.2.15 netmask 255.255.255.255 0 0

access-group acl_outside in interface outside
access-group acl_inside in interface inside
access-group acl_dmz in interface dmz
route outside 0.0.0.0 0.0.0.0 10.10.10.129 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h323 0:05:00 si
p 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
http server enable
http 192.168.3.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-pptp
no sysopt route dnat
vpngroup vpngroup idle-time 1800
telnet 192.168.3.0 255.255.255.0 outside
telnet 192.168.3.0 255.255.255.0 inside
telnet timeout 5
ssh timeout 5
vpdn group vpngroup accept dialin pptp
vpdn group vpngroup ppp authentication pap
vpdn group vpngroup ppp authentication chap
vpdn group vpngroup ppp authentication mschap
vpdn group vpngroup ppp encryption mppe 40
vpdn group vpngroup client configuration address local vpdnpool
vpdn group vpngroup client configuration dns 192.168.3.14
vpdn group vpngroup pptp echo 60
vpdn group vpngroup client authentication local

vpdn enable outside
terminal width 80
 
All we did was uncheck "use remote gateway on host"

You shouldn't need anything else.
 
You just unchecked the "use remote gateway on host"? When I did that, my local machine did not know how to route the packets to:
192.168.2.x
192.168.3.x
Considering that my VPN subnet was:
192.168.4.x

So I had to manually add a route on my workstation:
route add 192.168.2.0 mask 255.255.255.0 192.168.4.x (x being the workstation VPN IP address)

I'm just curious if this is what people normally go through. Or if there's a better way to do this than having to connect the VPN then kicking off a VBScript to add the routes.

(I wrote a short VBScript to pull the VPN IP address out of WMI and put it at the end of the 'route add' statement since the VPN IP is usually always different)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top