Hey guys, so I have created a script in openvpn-event that triggers iptables to configure when vpn connects so that some of my home servers don't pass through the VPN where a static internet IP is needed (game servers).
And then firewall-start is configured to block internet access when VPN is down for PC's that go through the VPN.
However, if the VPN drops it doesn't seem to automatically try to reconnect in AsusMerlin as I found out today when I got home from work - VPN had been down all night and didn't try to reconnect... so... can I put a script inside firewall-start that makes the VPN reconnect so that it sort of loops... eg:
openvpn-event: route IP's, and call firewall-start when dropped
firewall-start: block IP's and restart VPN client thus reloading openvpn-event
Hope that makes sense
And then firewall-start is configured to block internet access when VPN is down for PC's that go through the VPN.
However, if the VPN drops it doesn't seem to automatically try to reconnect in AsusMerlin as I found out today when I got home from work - VPN had been down all night and didn't try to reconnect... so... can I put a script inside firewall-start that makes the VPN reconnect so that it sort of loops... eg:
openvpn-event: route IP's, and call firewall-start when dropped
firewall-start: block IP's and restart VPN client thus reloading openvpn-event
Hope that makes sense