Please, can RMerlin or someone else advise me how to use firewall scrip to block traficc if vpn (openvpn) drops? I have an Asus RTAc68U
I am a noog here...
I created a firewall-start.sh, uploaded to /jffs/scripts, made it executable and nothing, unprotected internet traffic is not dropped.
I am much interested in simply stopping all traffic if vpn drops, checked that this can be done with a firewall script, but there so little info online about how to implement it, all I managed to find are script for tomato, but not advice how to implement this with merlin firmware.
I looked at the following scripts, dint work. I have found 0 advice on how to apply this kind of script for merlin firmware. These apparently work for Tomato..
Some help would be greatly apprciated
I am a noog here...
I created a firewall-start.sh, uploaded to /jffs/scripts, made it executable and nothing, unprotected internet traffic is not dropped.
I am much interested in simply stopping all traffic if vpn drops, checked that this can be done with a firewall script, but there so little info online about how to implement it, all I managed to find are script for tomato, but not advice how to implement this with merlin firmware.
I looked at the following scripts, dint work. I have found 0 advice on how to apply this kind of script for merlin firmware. These apparently work for Tomato..
Code:
#!/bin/sh
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
iptables -I FORWARD -i br0 -o vlan2 -j DROP
iptables -I INPUT -i tun0 -j REJECT
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
Code:
#!/bin/sh
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
iptables -I FORWARD -i br0 -o eth0 -j DROP
iptables -I INPUT -i tun0 -j REJECT
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
Some help would be greatly apprciated
Last edited: