Hello
I would like to start openvpn client without a route to the server (just a DNS route) and have openvpn dynamically create the route via scripts (in order to prevent any leak).
- - I could add the route just before starting the client but the vpn server changes address often so there is no guarantee that the route I am adding before is the route that openvpn will use
- I have tried using "--up" scripts but it seems that "--up" scripts are executed after the connection to the server. Without route, the connection fails.
- I have tried using "--ipchange" scripts but it seems that "--ipchange" scripts are also executed only after a successful connection to the server when the ip changes.
Is there any alternative solution? Thanks in advance for any help or suggestion.
Thanks
sergiogiogio