Page 1 of 1

OpenVPN Server - Redirecting the gateway

Posted: Tue Oct 25, 2016 9:02 pm
by rseiler
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.

Code: Select all

redirect-gateway def1
block-outside-dns
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?

Re: OpenVPN Server - Redirecting the gateway

Posted: Tue Oct 25, 2016 11:03 pm
by Lantis
How would you propose this I'd added? Something the user toggles on and off?
I'm not quite following.

Re: OpenVPN Server - Redirecting the gateway

Posted: Tue Oct 25, 2016 11:10 pm
by rseiler
In the "Configure A New Client / Set of Credentials" section, there are four user-defined options. This could be a fifth, right beneath "Subnet Behind Client."

Re: OpenVPN Server - Redirecting the gateway

Posted: Wed Oct 26, 2016 11:25 am
by ispyisail
so you create 2 profiles, then on connection select the correct profile?

Re: OpenVPN Server - Redirecting the gateway

Posted: Wed Oct 26, 2016 11:31 am
by rseiler
Yes, the client allows you to select from whatever OVPN files it finds, even for VPNs unrelated to the router.