summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-includes/usr/local/sbin/do_not_ever_run_me
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2015-11-30 12:19:51 +0000
committerintrigeri <intrigeri@boum.org>2015-11-30 14:36:27 +0000
commitd53a35695d6f174c548d4c6152197c012aa6e64c (patch)
tree48a631c8dcae0b42a46457aca9973d716bc89a0b /config/chroot_local-includes/usr/local/sbin/do_not_ever_run_me
parent853eafdd990b8c87057640cee2e2308705f50e22 (diff)
Move do_not_ever_run_me out of the $PATH.
Refs: #10658
Diffstat (limited to 'config/chroot_local-includes/usr/local/sbin/do_not_ever_run_me')
-rwxr-xr-xconfig/chroot_local-includes/usr/local/sbin/do_not_ever_run_me39
1 files changed, 0 insertions, 39 deletions
diff --git a/config/chroot_local-includes/usr/local/sbin/do_not_ever_run_me b/config/chroot_local-includes/usr/local/sbin/do_not_ever_run_me
deleted file mode 100755
index 60c2d16..0000000
--- a/config/chroot_local-includes/usr/local/sbin/do_not_ever_run_me
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-#
-# This script fully disables the iptables firewall, and thus the
-# transparent forwarding thru Tor of all non-local network
-# connections... which defeats the whole purpose of this OS, hence
-# this script's name.
-
-IPT=/sbin/iptables
-IP6T=/sbin/ip6tables
-
-[ -x "$IPT" ] || exit 67
-[ -x "$IP6T" ] || exit 68
-
-$IPT -P INPUT ACCEPT
-$IPT -P FORWARD ACCEPT
-$IPT -P OUTPUT ACCEPT
-
-$IPT -t nat -P PREROUTING ACCEPT
-$IPT -t nat -P POSTROUTING ACCEPT
-$IPT -t nat -P OUTPUT ACCEPT
-
-$IPT -t mangle -P PREROUTING ACCEPT
-$IPT -t mangle -P INPUT ACCEPT
-$IPT -t mangle -P FORWARD ACCEPT
-$IPT -t mangle -P OUTPUT ACCEPT
-$IPT -t mangle -P POSTROUTING ACCEPT
-
-$IPT -F
-$IPT -t nat -F
-$IPT -t mangle -F
-
-$IPT -X
-$IPT -t nat -X
-$IPT -t mangle -X
-
-$IP6T -F
-$IP6T -P INPUT ACCEPT
-$IP6T -P FORWARD ACCEPT
-$IP6T -P OUTPUT ACCEPT