
netllama at gmail
Nov 25, 2009, 6:44 AM
Post #29 of 32
(1692 views)
Permalink
|
Thanks. Unfortunately, when I attempt to delete the 10.0.0.0 tun0 route, it fails to work: # route del 10.0.0.0 SIOCDELRT: No such process Similarly: # ip route del 10.0.0.0 RTNETLINK answers: No such process On Tue, Nov 24, 2009 at 7:17 PM, C V <rayvittal-lists [at] yahoo> wrote: > The conflicting route is > 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 tun0 > > This conflicts with > 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 > > So delete the first route. unless you need to access machines in your > workplace in that range. In which case you might have to change your home > lan to 192.168.1.0/24 > > > > ________________________________ > From: Lonni J Friedman <netllama [at] gmail> > To: vpnc list to send bug reports and discussions with developers > <vpnc-devel [at] unix-ag> > Sent: Tue, November 24, 2009 6:03:29 PM > Subject: Re: [vpnc-devel] vpnc connection hangs on fedora 12 > > I've attached tcpdump output from immediately after the connection to > the VPN appears to die. > > Here's what 'route -n' shows before I connect to the VPN: > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use Iface > 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 > 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 > 0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0 > > > and immediately after connecting to the VPN: > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use Iface > 172.16.217.26 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 > 216.228.112.12 10.0.2.2 255.255.255.255 UGH 0 0 0 eth0 > 172.16.229.26 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 > 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 > 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 > 172.16.0.0 0.0.0.0 255.240.0.0 U 0 0 0 tun0 > 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 tun0 > 0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0 > > It looked like the conflicting route was for the 10.0.2.2 gateway, so > I tried deleting this one: > 216.228.112.12 10.0.2.2 255.255.255.255 UGH 0 0 0 eth0 > > but that didn't help. I guess I'm either experiencing a completely > different problem, or perhaps I'm just not doing the right thing. > > On Mon, Nov 23, 2009 at 8:51 PM, C V <rayvittal-lists [at] yahoo> wrote: >> To see if the problem (and solution) is the same as I experienced, it is >> useful to run tcpdump on eth0 >> -> tcpdump -i eth0 arp >> If you see your router asking for your eth0 mac but with no response then >> this could be the same problem. >> >> If so, it is likely that the VPN server has installed another route to >> 10.0.0.x which is overriding the one for you home LAN. >> The solution is to delete the route added by the VPN server. Routes can be >> listed using 'ip route' >> >> >> ________________________________ >> From: Lonni J Friedman <netllama [at] gmail> >> To: vpnc list to send bug reports and discussions with developers >> <vpnc-devel [at] unix-ag> >> Sent: Mon, November 23, 2009 6:27:44 PM >> Subject: Re: [vpnc-devel] vpnc connection hangs on fedora 12 >> >> On Sun, Nov 22, 2009 at 10:22 PM, Jan Engelhardt <jengelh [at] medozas> >> wrote: >>> >>> On Monday 2009-11-23 03:40, C V wrote: >>> >>>>In my case it appears to be a route confusion issue. My home LAN is >>>>192.168.1.0/24 and so is my work LAN. >>> >>> Aha! That is naturally never going to work -- irrespective of vpnc. >>> >>>>So after the VPN is established, I >>>>have 2 routes: >>>>192.168.1.0/24 dev tap0 scope link [ this is the work LAN ] >>>>192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.107 >>>>metric 2 [this is the home LAN] >>>> >>>>When my home router arps for 192.168.1.107 (the address of my wireless >>>>adapter), I suspect that this dual route prevents the arp response from >>>>going over the local LAN (it doesn't go over the VPN either, but I am not >>>>sure why). >>> >>> If the chosen interface has the NOARP flag set (`ip a`), >>> there will be no arps sent. That is a valid case, btw. >>> >> >> I'm a bit confused. Are you saying that a potential workaround for >> this problem is to disable ARPs? On which interface should I be doing >> that: >> 0) the eth0 interface inside the OS that is establishing the VPN >> connection >> 1) the tun0 interface inside the OS that is establishing the VPN >> connection (that vpnc sets up) >> 2) somewhere else >> >> For the record, eth0 on my system has a 10.0.0.x IP address. The tun0 >> interface usually ends up with a 10.2.x.x IP address. >> _______________________________________________ vpnc-devel mailing list vpnc-devel [at] unix-ag https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel http://www.unix-ag.uni-kl.de/~massar/vpnc/
|