Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way that a client can decide, on it's own, whether to route all traffic through OpenVPN or not?

I know that I can add:

push "redirect-gateway def1"

to my server config, but sometimes I'd like to decide on the client whether or not to use this. I suppose I could create two profiles, but that seems like a lot of overhead.

I suppose this may be more of a Windows question than OpenVPN; how can I easily set up a default route?

[Obviously, my server is set up to handle IP forwarding; I have one client that always uses redirect-gateway def1. I'm asking specifically about the other clients]

share|improve this question
up vote 1 down vote accepted

You can use the "route-nopull" option on clients that do not want to force all traffic into the VPN.

share|improve this answer
But this would require me to modify the server config, right? I want to have the ability to have the client choose. – Mikeage Oct 18 '10 at 10:06
nope, you put that option in the client config – Antoine Benkemoun Oct 18 '10 at 19:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.