mirror of
https://github.com/edu4rdshl/tor-router.git
synced 2026-07-17 23:24:48 +00:00
Apply shellcheck fixes.
This commit is contained in:
parent
ab272cb25f
commit
290d0b1e29
1 changed files with 4 additions and 4 deletions
|
|
@ -39,21 +39,21 @@ start)
|
|||
else
|
||||
iptables -F
|
||||
iptables -t nat -F
|
||||
iptables -t nat -A OUTPUT -m owner --uid-owner $TOR_UID -j RETURN
|
||||
iptables -t nat -A OUTPUT -m owner --uid-owner "$TOR_UID" -j RETURN
|
||||
iptables -t nat -A OUTPUT -p udp --dport 53 -j REDIRECT --to-ports 5353
|
||||
|
||||
for NET in $NON_TOR 127.0.0.0/9 127.128.0.0/10; do
|
||||
iptables -t nat -A OUTPUT -d $NET -j RETURN
|
||||
iptables -t nat -A OUTPUT -d "$NET" -j RETURN
|
||||
done
|
||||
|
||||
iptables -t nat -A OUTPUT -p tcp --syn -j REDIRECT --to-ports $TRANS_PORT
|
||||
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||
|
||||
for NET in $NON_TOR 127.0.0.0/8; do
|
||||
iptables -A OUTPUT -d $NET -j ACCEPT
|
||||
iptables -A OUTPUT -d "$NET" -j ACCEPT
|
||||
done
|
||||
|
||||
iptables -A OUTPUT -m owner --uid-owner $TOR_UID -j ACCEPT
|
||||
iptables -A OUTPUT -m owner --uid-owner "$TOR_UID" -j ACCEPT
|
||||
iptables -A OUTPUT -j ACCEPT
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue