Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created March 28, 2019 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/abf2de84b5aaae661bbacd06ab9a55d1 to your computer and use it in GitHub Desktop.
Save grahamc/abf2de84b5aaae661bbacd06ab9a55d1 to your computer and use it in GitHub Desktop.
sudo iptables -I FORWARD -i tap0 --dest 10.0.0.0/8 -j DROP
sudo iptables -I FORWARD -i tap0 --dest 172.16.0.0/12 -j DROP
sudo iptables -I FORWARD -i tap0 --dest 192.168.0.0/16 -j DROP
sudo iptables -I FORWARD -i tap0 -p tcp --dport 443 -j ACCEPT
sudo iptables -A FORWARD -i tap0 -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment