Server has this option: "Clients Use VPN For." It can be set to "All Client Traffic" or "Only Traffic Destined for Hosts Behind VPN."
But what if sometimes you want one and sometimes the other? Seemingly, you have to change that server setting, which is problematic.
Instead, with server permanently set to "Only Traffic Destined for Hosts Behind VPN," which is what I want most of the time, I've found that adding the following lines to a copy of your client OVPN will route everything through the VPN, as shown by sites like ipleak.net.
Code: Select all
redirect-gateway def1
block-outside-dns