aboutsummaryrefslogtreecommitdiffstats
path: root/config/includes.chroot/sbin
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-22 17:00:48 +0100
committerficus <ficus@robocracy.org>2012-11-22 17:00:48 +0100
commitfc7f18a85a004d795f1d466bdc9136964819519a (patch)
tree113284cbab2537607122ce71adbc4dd47b536077 /config/includes.chroot/sbin
parent167fd91dee626cf51ffb37858921d8b331d3b7e6 (diff)
downloadtorouter-live-fc7f18a85a004d795f1d466bdc9136964819519a.tar.gz
torouter-live-fc7f18a85a004d795f1d466bdc9136964819519a.zip
move tor-wireless-firewall.sh to expected location
Diffstat (limited to 'config/includes.chroot/sbin')
-rwxr-xr-xconfig/includes.chroot/sbin/tor-wireless-firewall.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/config/includes.chroot/sbin/tor-wireless-firewall.sh b/config/includes.chroot/sbin/tor-wireless-firewall.sh
deleted file mode 100755
index 4310e7b..0000000
--- a/config/includes.chroot/sbin/tor-wireless-firewall.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-# destinations you don't want routed through Tor
-NON_TOR="10.0.2.0/24 10.23.42.0/24 172.16.23.0/24"
-
-# Tor's TransPort
-TRANS_PORT="9040"
-
-# your internal interface
-INT_IF="uap0"
-
-iptables -F
-iptables -t nat -F
-
-for NET in $NON_TOR; do
- iptables -t nat -A PREROUTING -i $INT_IF -d $NET -j RETURN
-done
-iptables -t nat -A PREROUTING -i $INT_IF -p udp --dport 53 -j REDIRECT --to-ports 5353
-#iptables -t nat -A PREROUTING -i $INT_IF -p udp --dport 67 -j REDIRECT --to-ports 67
-iptables -t nat -A PREROUTING -i $INT_IF -p tcp --syn -j REDIRECT --to-ports $TRANS_PORT