diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-02 19:48:18 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-02 19:48:18 +0100 |
commit | 1be6ebb92966edeea8a49f34a5e2e664f86c2946 (patch) | |
tree | b65b2299475e820d335e96cc3c90125238873fc5 /package/iptables/files/firewall.init | |
parent | eb10ac0e97c1e5e98ce73a1966c97a7cedb9d086 (diff) |
finetune iptables, tinyproxy and dansguardian
Diffstat (limited to 'package/iptables/files/firewall.init')
-rwxr-xr-x | package/iptables/files/firewall.init | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/iptables/files/firewall.init b/package/iptables/files/firewall.init new file mode 100755 index 000000000..b3ea698d6 --- /dev/null +++ b/package/iptables/files/firewall.init @@ -0,0 +1,35 @@ +#!/bin/sh +#PKG iptables +#INIT 45 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${firewall:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + . /etc/firewall.conf + ;; +stop) + ### Clear tables + iptables -F + iptables -X + iptables -t nat -F + iptables -t nat -X + iptables -P INPUT ACCEPT + iptables -P FORWARD ACCEPT + iptables -P OUTPUT ACCEPT + iptables -t nat -P PREROUTING ACCEPT + iptables -t nat -P POSTROUTING ACCEPT + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + ;; +esac +exit $? |