OpenVPN Server - Redirecting the gateway
Posted: Tue Oct 25, 2016 9:02 pm
I just mention this in case anyone has any contradictory information regarding it. It seems right to me.
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.
If true, might this be an argument to add this option in the section of the UI where Gargoyle creates your client package for you?
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