I have some trouble on how to code a openvpn-event script.
What I want to do is create a series of routing rules that are used only when the VPN is active.
So only when the VPN is active all the IPs are routed on the VPN.
And when the VPN is disabled all the routing rules come back to their original configuration
How can I do?
What I want to do is create a series of routing rules that are used only when the VPN is active.
So only when the VPN is active all the IPs are routed on the VPN.
And when the VPN is disabled all the routing rules come back to their original configuration
How can I do?