I use the Windows client on my Notebook (2.6.2), and the server is configured with:
Code: Select all
push "redirect-gateway def1 bypass-dhcp"
So, I always have to reconnect openvpn to get the static route updated.
I think the client would have to watch the local default-route, and if this gets updated with a new default-gateway, the openvpn client should replace the static route. I have not found any client that is capable of that, or other utilities that could do that.
Are you aware of any tricks/workarounds/config-option to update the local static route whenever the local default gateway changes? Thanks