Problem:
Connected to WiFi
OpenVPN as a client works
Routes:
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.168.1 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.168.1 0.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.43.1 0.0.0.0 UG 600 0 0 wlp2s0
SE.RV.ER.IP 192.168.43.1 255.255.255.255 UGH 0 0 0 wlp2s0
128.0.0.0 192.168.168.1 128.0.0.0 UG 0 0 0 tun0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp2s0
192.168.2.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
192.168.25.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
192.168.43.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
192.168.51.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
Routes on wlp2s0 get deleted:
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.168.1 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.168.1 0.0.0.0 UG 0 0 0 tun0
128.0.0.0 192.168.168.1 128.0.0.0 UG 0 0 0 tun0
192.168.2.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
192.168.25.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
192.168.51.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
192.168.168.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
192.168.178.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
Routes being added again except the one to the OpenVPN server:
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.168.1 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.168.1 0.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.43.1 0.0.0.0 UG 600 0 0 wlp2s0
128.0.0.0 192.168.168.1 128.0.0.0 UG 0 0 0 tun0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp2s0
192.168.2.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
192.168.25.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
192.168.43.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
192.168.51.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
192.168.168.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
192.168.178.0 192.168.168.1 255.255.255.0 UG 0 0 0 tun0
A solution could be to restart OpenVPN as soon IF comes back?
Someone knows how to solve this in a proper way?
Thanks.