It seems to me kill switch stopped working for me. I had 386.1.x FW and noticed after router reboot that my OpenVPN client is down and despite I had setting to prevent client access to Internet when VPN is down, client still had access to Internet. I could not make kill switch work so updated to 386.3.2 and tried with backuped / restored setting. No luck. Factory reset and manually changing setting - still no luck to make kill switch work.
All I want is single client to be able access Internet ONLY via OpenVPN interface and if it's down then it should have no access.
I noticed in release notes that kill switch now supposed to be engaged only if OpenVPN client is set to autostart or when OpenOPN lost connection without manual intervention.
So I set OpenVPN "Automatic start at boot time" to ON, "Killswitch - Block routed clients if tunnel goes down" = ON, "Redirect Internet traffic through tunnel" = Redirector. Other OpenVPN setting are incorrect because I'm testing failed attemp to connect after reboot.
In Redirector I created two rules (one for device, second for my laptop to test it). Source = 192.168.50.2 (this is client), Remote IP = "[empty]', Interface = OVPN1. Similar rule for my laptop 192.168.50.39 to test if kill switch works.
So with these settings I supposed to have kill switch kick in and bock traffic from two IPs upon reboot and failed attempt to enable OpenVPN, right? Well, it does not work. After reboot both clients are able to access Inetrnet. What am I doing wrong? I looked at similar recent threads and I understand that logic of kill switch has changed, but it looks it got broken for me even in 386.1.x and it's not as described in current 386.3.2.
(my Asus IP is 192.168.50.1)
All I want is single client to be able access Internet ONLY via OpenVPN interface and if it's down then it should have no access.
I noticed in release notes that kill switch now supposed to be engaged only if OpenVPN client is set to autostart or when OpenOPN lost connection without manual intervention.
So I set OpenVPN "Automatic start at boot time" to ON, "Killswitch - Block routed clients if tunnel goes down" = ON, "Redirect Internet traffic through tunnel" = Redirector. Other OpenVPN setting are incorrect because I'm testing failed attemp to connect after reboot.
In Redirector I created two rules (one for device, second for my laptop to test it). Source = 192.168.50.2 (this is client), Remote IP = "[empty]', Interface = OVPN1. Similar rule for my laptop 192.168.50.39 to test if kill switch works.
So with these settings I supposed to have kill switch kick in and bock traffic from two IPs upon reboot and failed attempt to enable OpenVPN, right? Well, it does not work. After reboot both clients are able to access Inetrnet. What am I doing wrong? I looked at similar recent threads and I understand that logic of kill switch has changed, but it looks it got broken for me even in 386.1.x and it's not as described in current 386.3.2.
(my Asus IP is 192.168.50.1)
Code:
admin@RT-AC68U-C2E8:/tmp/home/root# ip rule
0: from all lookup local
32766: from all lookup main
32767: from all lookup default
admin@RT-AC68U-C2E8:/tmp/home/root# ip route
216.25.247.161 dev vlan2 proto kernel scope link
216.25.247.160/27 dev vlan2 proto kernel scope link src 216.25.247.174
192.168.50.0/24 dev br0 proto kernel scope link src 192.168.50.1
127.0.0.0/8 dev lo scope link
default via 216.25.247.161 dev vlan2