Instructions for setting up a TOR transparent proxy.
Go to file
tim c5b873a95f Update 'README.md' 2021-09-12 08:22:23 -04:00
LICENSE Initial commit 2021-09-12 08:21:18 -04:00
README.md Update 'README.md' 2021-09-12 08:22:23 -04:00

README.md

TOR_Transparent_Proxy

Instructions for setting up a TOR transparent proxy.

https://gitlab.torproject.org/legacy/trac/-/wikis/doc/TransparentProxy#anonymizing-middlebox

https://www.experts-exchange.com/articles/16980/How-to-set-up-a-TOR-Transparent-Proxy.html

https://obscurix.github.io/transparent-proxy.html

_trans_port="9040" # Tor's TransPort
_inc_if="eth1"

iptables -F
iptables -t nat -F

iptables -t nat -A PREROUTING -i $_inc_if -p udp --dport 53 -j REDIRECT --to-ports 5353
iptables -t nat -A PREROUTING -i $_inc_if -p udp --dport 5353 -j REDIRECT --to-ports 5353
iptables -t nat -A PREROUTING -i $_inc_if -p tcp --syn -j REDIRECT --to-ports $_trans_port