Use VPN only for Internet access and not LANs

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
slym
Posts: 2
Joined: Thu Oct 22, 2015 3:33 pm

Use VPN only for Internet access and not LANs

Post by slym » Thu Oct 22, 2015 3:50 pm

Hi there,

I'm trying to find a way to only route the internet traffic though the VPN connection and not LAN traffic.

This is already working for LAN in the same subnet as my workstation but not for LANs with different subnets.

It's quite simple to understand since the local default gateway is replaced with the VPN gateway.

Is there a way to do that without changing managing manually the routes ?

Basically, all LAN traffic with Private IPs should use the LAN gateway. All public IPs traffic should be routed through the VPN gateway.

Thank you for your help.

Setup : Virtual Hub with SecureNat + Virtual DHCP

qupfer
Posts: 202
Joined: Wed Jul 10, 2013 2:07 pm

Re: Use VPN only for Internet access and not LANs

Post by qupfer » Thu Oct 22, 2015 7:59 pm

slym wrote:

> Is there a way to do that without changing managing manually the routes ?

Short Answer: No

Long Answer: No, but maybe you could use instead of VirtuaNAT a "bridge" and a own DHCP server, which is serving correct routes.

nafne011
Posts: 5
Joined: Mon Sep 14, 2015 7:37 am

Re: Use VPN only for Internet access and not LANs

Post by nafne011 » Fri Oct 23, 2015 7:58 am

Don't use SecureNat, it slows the things. Use LocalBridge and dnsmasq instead, it'll

prevent dns leaks also. Good howto http://blog.lincoln.hk/blog/2013/05/17/softether-

on-vps-using-local-bridge/

slym
Posts: 2
Joined: Thu Oct 22, 2015 3:33 pm

Re: Use VPN only for Internet access and not LANs

Post by slym » Fri Oct 23, 2015 5:59 pm

Thank you for your answers.

I'm all about simplicity and SecureNat is already pretty fast for what I do so I'm not sure to be ready to use dnsmasq.

I may just make a connect/disconnect script that adds/removes the routes.

I'm quite disappointed. I really thought that there would be an easier way such as an advanced option in the product.

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

Re: Use VPN only for Internet access and not LANs

Post by thisjun » Mon Nov 02, 2015 7:22 am

If you don't need routing on client side LAN, please try to use accesslist function to deny to access to server side LAN.

Post Reply