about summary refs log tree commit diff stats
path: root/core/conf
diff options
context:
space:
mode:
Diffstat (limited to 'core/conf')
-rw-r--r--core/conf/rc.d/iptables31
-rw-r--r--core/conf/resolv.conf3
2 files changed, 34 insertions, 0 deletions
diff --git a/core/conf/rc.d/iptables b/core/conf/rc.d/iptables
new file mode 100644
index 0000000..d3bbc9b
--- /dev/null
+++ b/core/conf/rc.d/iptables
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# /etc/rc.d/iptables: load/unload iptable rules  
+#
+
+case $1 in
+start)
+  	echo "Starting IPv4 firewall filter table..."
+	/usr/sbin/iptables-restore < /etc/iptables/rules.v4	
+	;;
+stop)
+	echo "Stopping firewall and deny everyone..."
+ 	/usr/sbin/iptables -F
+        /usr/sbin/iptables -X
+        /usr/sbin/iptables -t nat -F
+        /usr/sbin/iptables -t nat -X
+        /usr/sbin/iptables -t mangle -F
+        /usr/sbin/iptables -t mangle -X
+        /usr/sbin/iptables -P FORWARD DROP
+        /usr/sbin/iptables -P OUTPUT DROP
+	;;
+restart)
+	$0 stop
+	$0 start
+	;;
+*)
+	echo "usage: $0 [start|stop|restart]"
+	;;
+esac
+
+# End of file
diff --git a/core/conf/resolv.conf b/core/conf/resolv.conf
new file mode 100644
index 0000000..8a85b42
--- /dev/null
+++ b/core/conf/resolv.conf
@@ -0,0 +1,3 @@
+# /etc/resolv.conf.head can replace this line
+nameserver 213.73.91.35
+# /etc/resolv.conf.tail can replace this line