Disable VPN when running Tor, enable VPN when running Firefox.
Find a file
2021-04-25 11:29:12 +02:00
src Rename TorNoVPN to tor-no-vpn 2020-11-20 17:31:53 +01:00
.gitignore Add .gitignore 2020-03-10 10:31:52 +00:00
LICENSE Rename TorNoVPN to tor-no-vpn 2020-11-20 17:31:53 +01:00
Makefile Change location of executable from /usr/bin to /usr/local/bin 2021-04-25 11:29:12 +02:00
README.md Rename TorNoVPN to tor-no-vpn 2020-11-20 17:31:53 +01:00
tor-no-vpn.service Change location of executable from /usr/bin to /usr/local/bin 2021-04-25 11:29:12 +02:00

tor-no-vpn

Disable VPN when running Tor, enable VPN when running Firefox.

A daemon regularly runs a bash script to check if Firefox or Tor are running or not. The daemon then runs a wrapper script containing the VPN commands to connect or disconnect it depending on the script's exit status.

The code is, for now, meant for ProtonVPN. If another VPN is needed, the wrapper script containing the vpn commands and the VPN_PATH constant in daemon.h need to be adapted.

To get going

just run:

$ make install
$ sudo systemctl start tor-no-vpn.service

and optionnally:

$ make clean