Route client internet traffic through normal internet

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
djago
Posts: 4
Joined: Fri Sep 16, 2016 8:20 pm

Re: Route client internet traffic through normal internet

Post by djago » Thu Oct 20, 2016 4:26 am

I'm on the same boat as you. I need the VPN to only give access to the local network (mostly file server) and I don't want to route all my internet request to be handled by the VPN Server. Please, somebody can help us?

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: Route client internet traffic through normal internet

Post by moatazelmasry » Sun Oct 23, 2016 5:27 pm

If you are using OpenVPN you can indeed redirect a certain hostname to go through the normal internet instead of of the VPN tunnel, like this:
route http://www.google.ca 255.255.255.255 net_gateway

http://serverfault.com/a/631048/114877

But what you want is the exact opposite. There's an option in OpenVPN which I can't really remember which would prevent any packet from being tunneled. After that you can add the route to your machine, so that only requested hostname/IPs are tunneled through your vpn server while the rest of the traffic goes untunneled.

Now which OpenVPN option prevents tunneling (changing the default gateway) boils down to two directives in your client:
--route-noexec and --route-nopull
These two options will just ignore the server's recommendation to change the routes. Full explaination here:
https://community.openvpn.net/openvpn/w ... ectGateway

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Route client internet traffic through normal internet

Post by thisjun » Thu Nov 17, 2016 5:38 am

Please increase metric value of physical NIC.

Post Reply