I have a pretty strange routing problem but it happens every day when I use vpn.
I've checked all the routing daemon and none is active on my laptop but routes are changing.
At start I have normal routing. 2 interfaces but only one is connected. Wired connection.
For this post I will replace some informations with xxxx but they are valid on my laptop.
Let's start.
At first with only lan, Internet is ok, ns.my.lan is 192.168.0.1 :
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default ns.my.lan 0.0.0.0 UG 100 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth1
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 0.0.0.0 0.0.0.0 U 50 0 0 vpn0
default ns.my.lan 0.0.0.0 UG 100 0 0 eth1
sslvpn1.xxxxr.fr ns.my.lan 255.255.255.255 UGH 100 0 0 eth1
172.29.0.0 0.0.0.0 255.255.0.0 U 50 0 0 vpn0
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth1
ns.my.lan 0.0.0.0 255.255.255.255 UH 100 0 0 eth1
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default ns.my.lan 0.0.0.0 UG 0 0 0 eth1
default 0.0.0.0 0.0.0.0 U 50 0 0 vpn0
default ns.my.lan 0.0.0.0 UG 100 0 0 eth1
sslvpn1.xxxx.fr ns.my.lan 255.255.255.255 UGH 100 0 0 eth1
172.29.0.0 0.0.0.0 255.255.0.0 U 50 0 0 vpn0
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth1
ns.my.lan 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
ns.my.lan 0.0.0.0 255.255.255.255 UH 100 0 0 eth1
So far I reboot and connect to vpn once again but I would rather understand why it happens.
I tried to remove first entry and the command gives any error but route is not removed.
systemctl restart networking not correcting anything either.
Disconnect/reconnect vpn dont makes vpn0 first default route too.
No (more) dhcp client in use.
Routes added at a 'random' time between 5 minutes and several hours.
I use this laptop since months and this did not happens before like one week ago.
Where/what to look for ?
Same behavior with OpenVPN as with Cisco :
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default ns.my.lan 0.0.0.0 UG 0 0 0 eth1
default _gateway 0.0.0.0 UG 50 0 0 tun0
default ns.my.lan 0.0.0.0 UG 100 0 0 eth1
dsi-sense.xx ns.my.lan 255.255.255.255 UGH 100 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth1
ns.my.lan 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
ns.my.lan 0.0.0.0 255.255.255.255 UH 100 0 0 eth1
192.168.135.0 _gateway 255.255.255.0 UG 50 0 0 tun0
192.168.144.0 0.0.0.0 255.255.255.0 U 50 0 0 tun0