What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

openvpn redirect gateway question

elorimer

Part of the Furniture
I've gotten myself nice and confused. I have an 87U and .65 with two openvpn servers setup, one for TAP and one for TUN. I normally use the TUN one, in two different ways. One is from a secure second location, using RDP to control a computer on the 87U side; generally I want internet traffic not to go over the tunnel. The other is at insecure locations, mostly public wifi. There I want internet traffic always to go over the tunnel.

I think I can do this with the server set to redirect internet traffic and two different client config files, one exported from the server and one with either route-nopull or route-noexec.

Or, should I set the server not to redirect internet traffic and add the three pushed options (i.e., redirect-gateway def1) to one of the client files.

Or does it matter?
 
The first way doesn't work (the connection is made but everything is unreachable), but setting the server not to redirect internet traffic and adding redirect-gateway def1 seems to work. The config file without it goes out locally, the config file with it goes over the tunnel.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top