aboutsummaryrefslogtreecommitdiffstats
path: root/download/torando.sh
diff options
context:
space:
mode:
Diffstat (limited to 'download/torando.sh')
-rw-r--r--download/torando.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/download/torando.sh b/download/torando.sh
new file mode 100644
index 0000000..7c74f57
--- /dev/null
+++ b/download/torando.sh
@@ -0,0 +1,5 @@
+ sudo iptables -t nat -A OUTPUT -p tcp -m owner --uid-owner USERAQUI -m tcp -j REDIRECT --to-ports 9040
+ sudo iptables -t nat -A OUTPUT -p udp -m owner --uid-owner USERAQUI -m udp --dport 53 -j REDIRECT --to-ports 53
+ sudo iptables -t filter -A OUTPUT -p tcp -m owner --uid-owner USERAQUI -m tcp --dport 9040 -j ACCEPT
+ sudo iptables -t filter -A OUTPUT -p udp -m owner --uid-owner USERAQUI -m udp --dport 53 -j ACCEPT
+ sudo iptables -t filter -A OUTPUT -m owner --uid-owner USERAQUI -j DROP