Update 'README.md'

This commit is contained in:
tim 2021-09-12 08:22:23 -04:00
parent 5399873a7f
commit c5b873a95f
1 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,21 @@
# TOR_Transparent_Proxy
Instructions for setting up a 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
```