aboutsummaryrefslogtreecommitdiffstats
path: root/toroff.sh
diff options
context:
space:
mode:
authorCristian Cezar Moisés <[email protected]>2024-10-20 20:19:51 +0000
committerCristian Cezar Moisés <[email protected]>2024-10-20 20:19:51 +0000
commit2ae741947d822c0dd16198a684318e4a5ed310cb (patch)
treef65398b3affd68d1acd6b757f4cbb0ed58135144 /toroff.sh
parent7b7a5054e39b9ee6d87c80241ffaf7f0852471be (diff)
Upload files to "/"HEADmain
Diffstat (limited to 'toroff.sh')
-rw-r--r--toroff.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/toroff.sh b/toroff.sh
new file mode 100644
index 0000000..244ca78
--- /dev/null
+++ b/toroff.sh
@@ -0,0 +1,5 @@
+ sudo iptables -t nat -D OUTPUT -p tcp -m owner --uid-owner USERAQUI -m tcp -j REDIRECT --to-ports 9040
+ sudo iptables -t nat -D OUTPUT -p udp -m owner --uid-owner USERAQUI -m udp --dport 53 -j REDIRECT --to-ports 53
+ sudo iptables -t filter -D OUTPUT -p tcp -m owner --uid-owner USERAQUI -m tcp --dport 9040 -j ACCEPT
+ sudo iptables -t filter -D OUTPUT -p udp -m owner --uid-owner USERAQUI -m udp --dport 53 -j ACCEPT
+ sudo iptables -t filter -D OUTPUT -m owner --uid-owner USERAQUI -j DROP