summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-06 10:51:35 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-06 10:51:35 (EDT)
commit0e281d0103a636d27bd99b952f873d5b37cdebfe (patch)
treecd127b04e887d7026437d7e21ce3e0c176aea0e7
parent5419c6f5465c0284412eb9867c729b3a653f8746 (diff)
Add iptables service script
-rw-r--r--scripts1
-rw-r--r--src.etc/init.d/iptables10
2 files changed, 11 insertions, 0 deletions
diff --git a/scripts b/scripts
index b1720f9..d6527d6 100644
--- a/scripts
+++ b/scripts
@@ -12,3 +12,4 @@ TELNETD telnetd disabled
- boottime enabled
- rc.local enabled
- sysctl enabled
+- iptables enabled
diff --git a/src.etc/init.d/iptables b/src.etc/init.d/iptables
new file mode 100644
index 0000000..b161fef
--- /dev/null
+++ b/src.etc/init.d/iptables
@@ -0,0 +1,10 @@
+#!/bin/sh /etc/rc.common
+
+START='25'
+
+start()
+{
+ [ -r /etc/iptables ] || return 0
+ log 'Loading iptables rules'
+ sh /etc/iptables
+}