I'm running version 384.17 of Asuswrt-Merlin on an RT-AC66U_B1, I have an openvpn-event script in /jffs/scripts that uses a template that calls a vpnserver1-up and vpnserver1-down script. These up and down scripts contain custom rules I add to the iptables, the first and most important being the following to remove the entry "OVPN -d 192.168.18.0/24 -i tun21 -j ACCEPT" for global access to the network on vpnserver1 using the commnd "iptables -D OVPN -d $subnet.0/24 -i $dev -j ACCEPT"
I can see through the logging that the scripts get run on a router reboot and when restarting the vpn server through the UI, the problem is that the iptables changes seem only to be applied when I restart the vpn server manually in the UI, if I reboot the router the changes don't get applied despite seeing my log entry that the script was run.
Wondering if anyone might have some ideas on a solution or way to further debug this?
Thanks.
I can see through the logging that the scripts get run on a router reboot and when restarting the vpn server through the UI, the problem is that the iptables changes seem only to be applied when I restart the vpn server manually in the UI, if I reboot the router the changes don't get applied despite seeing my log entry that the script was run.
Wondering if anyone might have some ideas on a solution or way to further debug this?
Thanks.