Reply To: VPN ignores gateway with failure

Home Page Forums Network Management ZeroShell VPN ignores gateway with failure Reply To: VPN ignores gateway with failure

#65461

Manuel Alejandro
Participant

Hi DarknessBBB. I added a vpn down and up function to the GWFAULT script. Now the vpns will be down when the gateway is faulty and return when the gateway is recovered.

Here the script https://gist.github.com/manueldev/5af6ff9769cc385b7b4384537b80280c?fbclid=IwAR3ghbfKlMnktbnYMvpwTLX4NngcJrR8TRE3y2DjVEcaRaDwa3lxwTFB4rs

It is not the most decent way to solve it but it works (at least in the tests I have done).