I have openvpn (routed setup, not bridgeing) running at my work. When I connect at home to the VPN, it is working flawless, but when I disconnect the VPN, my default gateway is not restored.
Here is the ouput:
1.) before I connect to VPN
Code: Select all
hive marc # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0Code: Select all
hive marc # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
[IP of firewall] 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0
10.8.0.10 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
[subnet 1 behind firewall] 10.8.0.10 255.255.255.128 UG 0 0 0 tun0
10.8.0.0 10.8.0.10 255.255.255.0 UG 0 0 0 tun0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
[subnet 2 behind firewall] 10.8.0.10 255.255.255.0 UG 0 0 0 tun0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 10.8.0.10 0.0.0.0 UG 0 0 0 tun0Code: Select all
hive marc # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
[IP of firewall] 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
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 loThanks in advance
Marc
