This project is not in active development anymore
Original idea#
I found this amazing article written by user jomo and just made some scripts for self-usage.
Usage#
First of all, edit files pf.tables/vpnonly-ipv4-hosts-allowed.txt
and pf.tables/vpnonly-ipv6-hosts-allowed.txt
- and add there addresses of your VPN servers.
Now simply run install script:
1sudo ./install.sh
To disable filtering execute:
1sudo ./disable.sh
To enable again:
1sudo ./enable.sh