openvpn. And these are the steps to release our current ip and to set
the default gateway to current.
10.0.4.0 192.168.111.1 255.255.255.0 UG 0 0 0 tun0
10.0.5.0 192.168.111.1 255.255.255.0 UG 0 0 0 tun0
10.0.6.0 192.168.111.1 255.255.255.0 UG 0 0 0 tun0
192.168.2.0 192.168.111.1 255.255.255.0 UG 0 0 0 tun0
10.0.2.0 192.168.111.1 255.255.255.0 UG 0 0 0 tun0
192.168.1.0 192.168.111.1 255.255.255.0 UG 0 0 0 tun0 <<<
192.168.1.0 * 255.255.255.0 U 2 0 0 wlan0 <<<
10.0.3.0 192.168.111.1 255.255.255.0 UG 0 0 0 tun0
192.168.0.0 192.168.111.1 255.255.255.0 UG 0 0 0 tun0
192.168.111.0 * 255.255.255.0 U 0 0 0 tun0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
I've marked down with <<< which are ip overlapping, every packet to
192.168.1.0 will be routed to 192.168.111.1 instead of 192.168.1.1.
And we have to fix this
$ sudo route del -net 192.168.1.0/24 gw 192.168.111.1
Done, hope it helps