No internet access unless OpenVPN (PIA) is connected

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

OCrow

Posts: 1
Joined: Wed Mar 23, 2016 4:05 am

Post by OCrow » Wed Mar 23, 2016 4:18 am
I realise that a few other posts exist on this forum, Stack Overflow, and others relating to the same topic, however most of them are either incomprehensible for me, or don't actually have a clearly defined answer.

I am attempting to route all my internet traffic through OpenVPN (PIA) with Viscosity. I would also like it so that if the VPN isn't connected, then there is no internet access at all.

Currently, I have simply used the Viscosity preferences panel to route all traffic through PIA whilst connected, and if the VPN disconnects then my WiFi switches off. I've done this by following this guide: https://www-dc1-n1.sparklabs.com/suppor ... fic-leaks/.

The issue that I am currently having, and have no idea how to fix is that when the WiFi connects, but before the VPN has connected, my computer can still access the internet (i.e. when the Viscosity symbol is yellow (connecting)). Furthermore, sometimes when the Viscosity tries to connect to the VPN, but it fails, the internet connection still works.

I was wondering whether there is any easy way of fixing this, and whether there are any other potential network security issues which I should be on the lookout for? Thanks in advance!

James

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

Post by James » Thu Mar 24, 2016 1:28 pm
Hi OCrow,

For something more advance, such as allowing traffic to establish the VPN connection but nothing else, you'll need to turn to using firewall rules. The following forum thread has some user-contributed examples and scripts:
https://www.sparklabs.com/forum/viewtopic.php?f=3&t=587

As mentioned in the linked support article, we are working on traffic leak protection feature for Viscosity that we hope to have available in a future release.

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