Skip to content

Instantly share code, notes, and snippets.

@aeris
Created July 24, 2015 07:59
Show Gist options
  • Save aeris/919143fe9c2c02ecb91d to your computer and use it in GitHub Desktop.
Save aeris/919143fe9c2c02ecb91d to your computer and use it in GitHub Desktop.
fuck-pjlrenseignement
#!/bin/sh
iptables -t nat -N TOR
iptables -t nat -A TOR -p tcp -d 127.0.0.0/8 -j RETURN
iptables -t nat -A TOR -p tcp -d 10.0.0.0/8 -j RETURN
iptables -t nat -A TOR -p tcp -d 172.16.0.0/12 -j RETURN
iptables -t nat -A TOR -p tcp -d 192.168.0.0/16 -j RETURN
iptables -t nat -A TOR -p tcp -j REDIRECT --to-ports 9052
iptables -t nat -A OUTPUT -p tcp --syn -j TOR
iptables -t nat -A OUTPUT -p udp --dport domain -j REDIRECT --to-ports 9053
SocksPort 9050
ControlPort 9051
TransPort 9052
DNSPort 9053
ExcludeNodes {fr}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment