redirect dns now to dnscrypt-proxy

This commit is contained in:
olli 2024-02-12 15:11:16 +01:00
parent cff90768e4
commit 3a14f80a6d

View File

@ -135,10 +135,8 @@
-A PREROUTING -i tornet0 -d 255.255.255.255/32 -j RETURN -A PREROUTING -i tornet0 -d 255.255.255.255/32 -j RETURN
# Redirect all TCP-Connections to transparent Tor-Proxy # Redirect all TCP-Connections to transparent Tor-Proxy
-A PREROUTING -i tornet0 -s 192.168.43.0/24 -p tcp --syn -j REDIRECT --to-ports 9040 -A PREROUTING -i tornet0 -s 192.168.43.0/24 -p tcp --syn -j REDIRECT --to-ports 9040
# Redirect DNS to TorDNS
-A PREROUTING -i tornet0 -s 192.168.43.0/24 -d 192.168.43.1 -p udp --dport 53 -j REDIRECT --to-ports 5353
# Redirect all non TCP-Connections into nirvana because Tor only speaks TCP # Redirect all non TCP-Connections into nirvana because Tor only speaks TCP
-A PREROUTING -i tornet0 -s 192.168.43.0/24 ! -p tcp -j DNAT --to 127.0.0.1:1 -A PREROUTING -i tornet0 -s 192.168.43.0/24 ! -p tcp ! --dport 53 -j DNAT --to 127.0.0.1:1
COMMIT COMMIT
notify: notify:
- Restart ufw - Restart ufw