summarylogtreecommitdiffstats
path: root/nf-cleanup
diff options
context:
space:
mode:
authorDave Simons2015-09-11 14:43:16 +0200
committerDave Simons2015-09-11 14:51:00 +0200
commit6f99c938083669b69e9f31e180749f5cf563894d (patch)
treeaa42e4f95f47476de994c7e7a5e5e3fa6836932a /nf-cleanup
parentc76e12d8786f59690a1c9a3d76a2b48261ba9164 (diff)
downloadaur-6f99c938083669b69e9f31e180749f5cf563894d.tar.gz
fix ordering in nf-cleanup script
Signed-off-by: Dave Simons <pkgs@simonsd.org>
Diffstat (limited to 'nf-cleanup')
-rwxr-xr-xnf-cleanup8
1 files changed, 4 insertions, 4 deletions
diff --git a/nf-cleanup b/nf-cleanup
index 0762308e8d21..b37c745ac894 100755
--- a/nf-cleanup
+++ b/nf-cleanup
@@ -20,14 +20,14 @@ HTTP_PORT=8080
iptables -D INPUT -i $DEV -p tcp --dport $SSH_PORT -j DROP
iptables -D INPUT -i $DEV -p tcp --dport $HTTP_PORT -j DROP
-iptables -t mangle -D DIVERT -j MARK --set-mark 1
-iptables -t mangle -D DIVERT -j ACCEPT
-
-iptables -t mangle -X DIVERT || true
iptables -t mangle -D OUTPUT -p tcp -o $DEV --sport $SSH_PORT -j DIVERT
iptables -t mangle -D OUTPUT -p tcp -o $DEV --sport $HTTP_PORT -j DIVERT
iptables -t mangle -D PREROUTING -p tcp -m socket -j DIVERT
+iptables -t mangle -D DIVERT -j MARK --set-mark 1
+iptables -t mangle -D DIVERT -j ACCEPT
+iptables -t mangle -X DIVERT || true
+
ip rule del fwmark 1 lookup 123 || true
ip route del local 0.0.0.0/0 dev lo table 123