[plug] Routing over a VPN link?
Jason Nicholls
jason at mindsocket.com.au
Thu Dec 28 15:29:17 WST 2006
Hey Andrew,
> I have a weird problem with a remote system I'm connecting to
> (standard chap PPTP VPN, no MPPE). I'm using sarge, and the VPN
> connects, receives IP addresses, etc, but for some reason I don't get
> any response to any connection attempts through it. I've tried both
> the remote end as reported from ifconfig, as well as another machine
> on that network which I know exists.
>
> The weird part is, it does work fine under XP :-/ I've attached
> i[fp]config and route output for both machines. The existing remote
> machine I'm ultimately trying to get to is 192.168.1.2, hence the
> static route added under Linux. The XP output has a lot of extra
> routing for things like vmware, other VPN clients, etc - just ignore
> them :)
>
> Any ideas?
looks like you probably have to setup a route for either 192.168.1.2 or
the entire 192.168.1.0/24 with an appropriate gateway specified (not
just interface ppp0).
Perhaps try something like (after ppp0 is up), and I can't test myself sorry:
route add -host 192.168.1.2 gw 192.168.1.249
gw should be the other end of the ppp link.
>
> Andrew
>
> --
> Linux supports the notion of a command line or a shell for the same
> reason that only children read books with only pictures in them.
> Language, be it English or something else, is the only tool flexible
> enough to accomplish a sufficiently broad range of tasks.
> -- Bill Garrett
> eth0 Link encap:Ethernet HWaddr 00:0C:29:5F:8C:68
> inet addr:192.168.73.151 Bcast:192.168.73.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:54076 errors:0 dropped:0 overruns:0 frame:0
> TX packets:49102 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:7581654 (7.2 MiB) TX bytes:43357140 (41.3 MiB)
> Interrupt:18 Base address:0x1080
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:889 errors:0 dropped:0 overruns:0 frame:0
> TX packets:889 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:203736 (198.9 KiB) TX bytes:203736 (198.9 KiB)
>
> ppp0 Link encap:Point-to-Point Protocol
> inet addr:192.168.1.224 P-t-P:192.168.1.249 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
> RX packets:5 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1026 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:62 (62.0 b) TX bytes:85826 (83.8 KiB)
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.1.2 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 192.168.1.249 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 192.168.73.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 192.168.73.1 0.0.0.0 UG 0 0 0 eth0
>
> Windows IP Configuration
>
> Host Name . . . . . . . . . . . . : martinpc
> Primary Dns Suffix . . . . . . . : cls.coslog.com
> Node Type . . . . . . . . . . . . : Broadcast
> IP Routing Enabled. . . . . . . . : No
> WINS Proxy Enabled. . . . . . . . : No
> DNS Suffix Search List. . . . . . : cls.coslog.com
>
> Ethernet adapter VMware Network Adapter VMnet8:
>
> Connection-specific DNS Suffix . :
> Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8
> Physical Address. . . . . . . . . : 00-50-56-C0-00-08
> Dhcp Enabled. . . . . . . . . . . : No
> IP Address. . . . . . . . . . . . : 192.168.91.1
> Subnet Mask . . . . . . . . . . . : 255.255.255.0
> Default Gateway . . . . . . . . . :
>
> Ethernet adapter VMware Network Adapter VMnet1:
>
> Connection-specific DNS Suffix . :
> Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1
> Physical Address. . . . . . . . . : 00-50-56-C0-00-01
> Dhcp Enabled. . . . . . . . . . . : No
> IP Address. . . . . . . . . . . . : 192.168.221.1
> Subnet Mask . . . . . . . . . . . : 255.255.255.0
> Default Gateway . . . . . . . . . :
>
> Ethernet adapter Local Area Connection:
>
> Connection-specific DNS Suffix . :
> Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet
> Physical Address. . . . . . . . . : 00-0F-FE-08-7C-8E
> Dhcp Enabled. . . . . . . . . . . : No
> IP Address. . . . . . . . . . . . : 192.168.73.138
> Subnet Mask . . . . . . . . . . . : 255.255.255.0
> Default Gateway . . . . . . . . . : 192.168.73.1
> DNS Servers . . . . . . . . . . . : 192.168.73.11
>
> Ethernet adapter Local Area Connection 6:
>
> Media State . . . . . . . . . . . : Media disconnected
> Description . . . . . . . . . . . : TAP-Win32 Adapter V8
> Physical Address. . . . . . . . . : 00-FF-74-0A-E7-D3
>
> PPP adapter AKA - Chatree Gold Akara:
>
> Connection-specific DNS Suffix . :
> Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
> Physical Address. . . . . . . . . : 00-53-45-00-00-00
> Dhcp Enabled. . . . . . . . . . . : No
> IP Address. . . . . . . . . . . . : 192.168.1.224
> Subnet Mask . . . . . . . . . . . : 255.255.255.255
> Default Gateway . . . . . . . . . :
> DNS Servers . . . . . . . . . . . : 192.168.1.249
> ===========================================================================
> Interface List
> 0x1 ........................... MS TCP Loopback interface
> 0x2 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter for VMnet8
> 0x3 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1
> 0x4 ...00 0f fe 08 7c 8e ...... Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler Miniport
> 0x5 ...00 ff 74 0a e7 d3 ...... TAP-Win32 Adapter V8 - Packet Scheduler Miniport
> 0x20007 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
> ===========================================================================
> ===========================================================================
> Active Routes:
> Network Destination Netmask Gateway Interface Metric
> 0.0.0.0 0.0.0.0 192.168.73.1 192.168.73.138 20
> 10.0.0.100 255.255.255.255 192.168.73.1 192.168.73.138 1
> 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
> 192.168.0.6 255.255.255.255 192.168.73.1 192.168.73.138 1
> 192.168.1.0 255.255.255.0 192.168.1.224 192.168.1.224 1
> 192.168.1.224 255.255.255.255 127.0.0.1 127.0.0.1 50
> 192.168.1.255 255.255.255.255 192.168.1.224 192.168.1.224 50
> 192.168.8.50 255.255.255.255 192.168.73.1 192.168.73.138 1
> 192.168.73.0 255.255.255.0 192.168.73.138 192.168.73.138 20
> 192.168.73.138 255.255.255.255 127.0.0.1 127.0.0.1 20
> 192.168.73.255 255.255.255.255 192.168.73.138 192.168.73.138 20
> 192.168.91.0 255.255.255.0 192.168.91.1 192.168.91.1 20
> 192.168.91.1 255.255.255.255 127.0.0.1 127.0.0.1 20
> 192.168.91.255 255.255.255.255 192.168.91.1 192.168.91.1 20
> 192.168.221.0 255.255.255.0 192.168.221.1 192.168.221.1 20
> 192.168.221.1 255.255.255.255 127.0.0.1 127.0.0.1 20
> 192.168.221.255 255.255.255.255 192.168.221.1 192.168.221.1 20
> 210.4.148.98 255.255.255.255 192.168.73.1 192.168.73.138 1
> 216.239.63.19 255.255.255.255 192.168.73.1 192.168.73.138 1
> 218.214.163.231 255.255.255.255 192.168.73.1 192.168.73.138 1
> 224.0.0.0 240.0.0.0 192.168.1.224 192.168.1.224 50
> 224.0.0.0 240.0.0.0 192.168.73.138 192.168.73.138 20
> 224.0.0.0 240.0.0.0 192.168.91.1 192.168.91.1 20
> 224.0.0.0 240.0.0.0 192.168.221.1 192.168.221.1 20
> 255.255.255.255 255.255.255.255 192.168.1.224 5 1
> 255.255.255.255 255.255.255.255 192.168.73.138 192.168.73.138 1
> 255.255.255.255 255.255.255.255 192.168.91.1 192.168.91.1 1
> 255.255.255.255 255.255.255.255 192.168.221.1 192.168.221.1 1
> Default Gateway: 192.168.73.1
> ===========================================================================
> Persistent Routes:
> None
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://www.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
Regards,
Jason Nicholls
--------------------------------------------------------------------
Jason Nicholls email: <jason at mindsocket.com.au>
http://jason.mindsocket.com.au/ cell: 206 310 4239 (US)
--------------------------------------------------------------------
pgp/gpg id: 0xC3844959
fingerprint: 7F7A 5846 4E94 459C 104D A979 7079 24CF C384 4959
More information about the plug
mailing list