Only Access VPN Clients

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

g00se

Posts: 2
Joined: Sun Feb 17, 2019 9:33 pm

Post by g00se » Sun Feb 17, 2019 9:35 pm
Hi. I was wondering if it is possible to configure Viscosity to only use the VPN connection to communicate with other machines using the VPN?

Thanks

James

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

Post by James » Mon Feb 18, 2019 9:24 pm
Hi g00se,

It is possible. Generally it's easiest if you have control over the OpenVPN server you are connecting too. The recommended approach is to add the "client-to-client" command to the OpenVPN server's configuration file, and then don't push any routes. That way, the VPN connection is only used for the VPN subnet, and you'll be able to communicate with other connected VPN client machines.

If you're not in control of the VPN server, things are a little trickier. You'll have to hope that either the server is either configured with the "client-to-client" command, or that its routing is set up to forward traffic between OpenVPN clients. Many commercial VPN Service Providers will intentionally block traffic between connected VPN clients. Assuming traffic between OpenVPN clients is possible, you can prevent all other traffic from going through the VPN connection by adding the command "route-nopull" (without the quotes) to the Advanced Commands area for your connection:
https://www.sparklabs.com/support/kb/ar ... n-commands

Cheers,
James
James Bekkema
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

g00se

Posts: 2
Joined: Sun Feb 17, 2019 9:33 pm

Post by g00se » Wed Feb 20, 2019 4:26 pm
I am using PiVPN on my own machine, so I assume that I have access to the config file. What is it called and what should I add to it?

James

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

Post by James » Thu Feb 21, 2019 6:21 am
I recommend getting in touch with the developers of PiVPN for those details - I'm afraid we have limited experience with it.

Cheers,
James
James Bekkema
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
4 posts Page 1 of 1