Bash scripts for enabling custom split tunneling for VPNs in Linux.
- Modify the scripts with your configuration
- Make the target script executable, e.g.
sudo chmod u+x split-tunnel.sh
- Run! E.g.
./split-tunnel.sh
split-tunnel.sh
: allow traffic on specific port with VPN onsearch-fix-iptables.sh
: fix iptables iteratively by checking if rules are present in the right positionvpn-killswitch.sh
: custom killswitch based onufw
If you would like to contribute, do not hesitate to open issues or pull requests!