@@ -16,25 +16,26 @@ CookieAuthentication 1
1616EOF
1717
1818# disable auto start after reboot
19- # systemctl disable tor
19+ systemctl disable tor
20+ systemctl stop tor
2021# enable auto start after reboot
21- systemctl restart tor
22- systemctl enable tor
22+ # systemctl restart tor
23+ # systemctl enable tor
2324
24- iptables -t nat -L TOR & > /dev/null || iptables -t nat -N TOR
25- TOR_UID=$( id -u debian-tor 2> /dev/null || echo 0)
26- iptables -t nat -C TOR -m owner --uid-owner $TOR_UID -j RETURN 2> /dev/null || \
27- iptables -t nat -A TOR -m owner --uid-owner $TOR_UID -j RETURN
28- iptables -t nat -C TOR -d 127.0.0.0/8 -j RETURN 2> /dev/null || \
29- iptables -t nat -A TOR -d 127.0.0.0/8 -j RETURN
30- iptables -t nat -C TOR -p udp --dport 53 -j REDIRECT --to-ports 5353 2> /dev/null || \
31- iptables -t nat -A TOR -p udp --dport 53 -j REDIRECT --to-ports 5353
32- iptables -t nat -C TOR -p tcp -j REDIRECT --to-ports 9040 2> /dev/null || \
33- iptables -t nat -A TOR -p tcp -j REDIRECT --to-ports 9040
34- iptables -t nat -C OUTPUT -p tcp -j TOR 2> /dev/null || \
35- iptables -t nat -I OUTPUT -p tcp -j TOR
25+ # iptables -t nat -L TOR &>/dev/null || iptables -t nat -N TOR
26+ # TOR_UID=$(id -u debian-tor 2>/dev/null || echo 0)
27+ # iptables -t nat -C TOR -m owner --uid-owner $TOR_UID -j RETURN 2>/dev/null || \
28+ # iptables -t nat -A TOR -m owner --uid-owner $TOR_UID -j RETURN
29+ # iptables -t nat -C TOR -d 127.0.0.0/8 -j RETURN 2>/dev/null || \
30+ # iptables -t nat -A TOR -d 127.0.0.0/8 -j RETURN
31+ # iptables -t nat -C TOR -p udp --dport 53 -j REDIRECT --to-ports 5353 2>/dev/null || \
32+ # iptables -t nat -A TOR -p udp --dport 53 -j REDIRECT --to-ports 5353
33+ # iptables -t nat -C TOR -p tcp -j REDIRECT --to-ports 9040 2>/dev/null || \
34+ # iptables -t nat -A TOR -p tcp -j REDIRECT --to-ports 9040
35+ # iptables -t nat -C OUTPUT -p tcp -j TOR 2>/dev/null || \
36+ # iptables -t nat -I OUTPUT -p tcp -j TOR
3637
3738# Simpan rules
38- netfilter-persistent save
39- netfilter-persistent reload
39+ # netfilter-persistent save
40+ # netfilter-persistent reload
4041
0 commit comments