Skip to content

Commit

Permalink
Apply shellcheck fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edu4rdSHL committed May 4, 2023
1 parent ab272cb commit 290d0b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions files/tor-router
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 290d0b1

Please sign in to comment.