Friday, January 28, 2011

Forcing all traffic through OpenVPN from the client on Windows XP

Hi,

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]

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

    Mikeage : But this would require me to modify the server config, right? I want to have the ability to have the client choose.
    Antoine Benkemoun : nope, you put that option in the client config

0 comments:

Post a Comment