What's new

OpenVPN attempt reconnect when down

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

KiloooNL

New Around Here
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 :D
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top