OpenVPN Server - Redirecting the gateway

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

OpenVPN Server - Redirecting the gateway

Post 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?

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: OpenVPN Server - Redirecting the gateway

Post by Lantis »

How would you propose this I'd added? Something the user toggles on and off?
I'm not quite following.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

Re: OpenVPN Server - Redirecting the gateway

Post 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."

ispyisail
Moderator
Posts: 5212
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: OpenVPN Server - Redirecting the gateway

Post by ispyisail »

so you create 2 profiles, then on connection select the correct profile?

rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

Re: OpenVPN Server - Redirecting the gateway

Post by rseiler »

Yes, the client allows you to select from whatever OVPN files it finds, even for VPNs unrelated to the router.

Post Reply