Disable VPN when running Tor, enable VPN when running Firefox.
src | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
README.md | ||
tor-no-vpn.service |
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