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
Use VPN only for Internet access and not LANs
-
- Posts: 202
- Joined: Wed Jul 10, 2013 2:07 pm
Re: Use VPN only for Internet access and not LANs
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.
> 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.
-
- Posts: 5
- Joined: Mon Sep 14, 2015 7:37 am
Re: Use VPN only for Internet access and not LANs
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/
prevent dns leaks also. Good howto http://blog.lincoln.hk/blog/2013/05/17/softether-
on-vps-using-local-bridge/
-
- Posts: 2
- Joined: Thu Oct 22, 2015 3:33 pm
Re: Use VPN only for Internet access and not LANs
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.
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.
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: Use VPN only for Internet access and not LANs
If you don't need routing on client side LAN, please try to use accesslist function to deny to access to server side LAN.