Created
July 24, 2015 07:59
-
-
Save aeris/919143fe9c2c02ecb91d to your computer and use it in GitHub Desktop.
fuck-pjlrenseignement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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