PPTP Issue - Routing defaults to all traffic via vpn?

Jonas Norlander jonorland at gmail.com
Sat Apr 10 15:07:29 UTC 2010


2010/4/10 Mr Gabriel <angelisonline at gmail.com>:
> When I fire up a pptp connection, it connects just fine, but then routes all
> traffic via the vpn, instead of only traffic for the remote network. I can
> manually edit the routes, to correct the situation, but is this the default
> behavior?

I have seen a similar scenario when I activate my wireless. For some
reason I get two default gateway one for the wired network and one for
the wireless but the one to the wireless network has lower metric so
all traffics go through my it.

I have three network cards in my PC, two built-in and one wireless. I
connect with one of the built-in to my ISP and using the wireless for
my home network.

Before i activate the wireless the routing table looks like this:
$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
83.226.230.0    0.0.0.0         255.255.254.0   U     0        0        0 eth0
169.254.0.0     0.0.0.0          255.255.0.0      U     0        0        0 eth1
169.254.0.0     0.0.0.0          255.255.0.0      U     1000   0        0 eth0
0.0.0.0         83.226.230.1    0.0.0.0             UG    100   0        0 eth0

After activate the wireless it looks like this:
$ route -n
Kernel IP routing table
Destination    Gateway     Genmask        Flags Metric Ref    Use Iface
192.168.7.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0
83.226.230.0    0.0.0.0        255.255.254.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0. 0     U     0      0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0      U     1000  0       0 eth0
0.0.0.0         192.168.7.1     0.0.0.0             UG   0      0        0 wlan0
0.0.0.0         83.226.230.1    0.0.0.0            UG   100    0       0 eth0

and all my traffic is routing through wireless net. Deleting the
default route for the wireless makes all work like I want, the traffic
to Internet go through my ISP and the traffic to my private net
through the wireless.

Not exactly like your but probably the same problems in the background.
There should be a config option so it (NetworkManager?) don't add a
second default route but instead using the already existing.

/ Jonas




More information about the kubuntu-users mailing list