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

Linux routing tables while using a PPTP VPN...

Status
Not open for further replies.

xydrine

Programmer
Jun 17, 2013
1
US
I'm trying to basically do this... I want to be able to connect to a PPTP VPN, download a file via wget using the VPNs connection, all while the normal Internet is still alive on the non-VPN connection (a normal VPN would route all traffic through the VPN interface - I don't want that in this instance).

I can't figure out what the hell is going on. I have it so I can use the VPN interface to ping an outside network, but I can't use wget to download a file - it just hangs @ connecting.

Here's my ifconfig:

Code:
eth0 Link encap:Ethernet HWaddr b8:27:eb:ef:8c:86 
inet addr:192.168.1.24 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:feef:8c86/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10492 errors:0 dropped:0 overruns:0 frame:0
TX packets:7592 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:5162181 (4.9 MiB) TX bytes:1044909 (1020.4 KiB)


lo Link encap:Local Loopback 
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


ppp0 Link encap:Point-to-Point Protocol 
inet addr:172.20.0.7 P-t-P:174.34.146.210 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1392 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3 
RX bytes:396 (396.0 B) TX bytes:402 (402.0 B)

And here's my "route" command output:

Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default OpenWrt.lan 0.0.0.0 UG 0 0 0 eth0
atl-c01.ipvanis OpenWrt.lan 255.255.255.255 UGH 0 0 0 eth0
atl-c01.ipvanis * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0

This is all while the PPTP VPN connection is active. What the hell am I doing wrong that would allow me to ping an outside IP via the VPN connection (using ping -I ppp0 google.com) but not use wget --bind-address=172.20.0.7 google.com to connect an outside IP via TCP?

Also, when I use the route command route add default ppp0 the traffic from everything is routed through the VPN successfully, including TCP.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top