Network Manager PPTP Incorrect Routes
Garry T. Williams
gtwilliams at gmail.com
Wed Dec 10 15:23:05 UTC 2008
When I connect to my VPN using Network Manager, I end up with the wrong route table. Here's what I start with:
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
After connecting, I get this:
Destination Gateway Genmask Flags MSS Window irtt Iface
65.237.0.254 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
The 65.237.0.254 (obfuscated) is my VPN server. I don't think it should appear in my route table. There's no reason for that. Also, the default route has been changed to ppp0. I don't want that. The nm-applet pretends to let me "ignore automatically obtained routes" but that doesn't affect the default route change. From my /var/log/messages file, I can see the endpoint of the tunnel:
Dec 10 08:13:06 localhost pppd[5046]: local IP address 10.6.250.118
Dec 10 08:13:06 localhost pppd[5046]: remote IP address 10.6.250.25
I would expect the 10.6.250.25 to appear in the route table, if anything.
Here's what I do manually to get back to normal:
sudo route add -net 10.6.0.0 netmask 255.255.0.0 dev ppp0
sudo route add -net default gw 192.168.0.1
sudo route del -net default dev ppp0
Now I have:
Destination Gateway Genmask Flags MSS Window irtt Iface
64.238.111.254 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.6.0.0 0.0.0.0 255.255.0.0 U 0 0 0 ppp0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
and all works fine.
The nm-applet doesn't have a way to control my default route and won't let me route my private networks via an interface -- the routes I can add insist on an IP address for the gateway.
Is this a bug? How can I manually configure my routes in a configuration file?
--
Garry T. Williams --- +1 678 656-4579
More information about the fedora-list
mailing list