Route only specified subnet to VPN

Got a problem with Viscosity or need help? Ask here!

Per

Posts: 2
Joined: Fri May 26, 2017 5:13 pm

Post by Per » Fri May 26, 2017 5:24 pm
Here's my setup.

Got a vpn server setup at the office so I can connect from home.
How can I setup viscosity to use vpn tunnel only for our office subnet?

Office private subnet is 192.168.1.0/24.
In other words, route everything to my default gateway (my router), except for 192.168.1.0/24?

James

User avatar
Posts: 2313
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Mon May 29, 2017 10:38 am
Hi Per,

Please see the following article for details how to specify routes in Viscosity to use the VPN tunnel or normal network gateway:
http://www.sparklabs.com/support/kb/art ... lications/

If the OpenVPN server is pushing the "redirect-gateway" command all traffic will be using the VPN tunnel by default. You can either remove this command from being pushed to prevent this, or there are some posts on this forum discussing adding the "route-nopull" command to your Viscosity connection so it is ignored.

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
2 posts Page 1 of 1