about summary refs log tree commit diff stats
path: root/core/scripts/iptables.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/scripts/iptables.sh')
-rw-r--r--core/scripts/iptables.sh19
1 files changed, 12 insertions, 7 deletions
diff --git a/core/scripts/iptables.sh b/core/scripts/iptables.sh
index b450bb3..9fb2872 100644
--- a/core/scripts/iptables.sh
+++ b/core/scripts/iptables.sh
@@ -1,9 +1,9 @@
 #!/bin/sh
 
 #
-#                                XXXXXXXXXXXXXXXXXX
-#                              XXX     Network    XXX
-#                                XXXXXXXXXXXXXXXXXX
+#                                XXXXXXXXXXXXXXXXX
+#                                XXXX Network XXXX
+#                                XXXXXXXXXXXXXXXXX
 #                                        +
 #                                        |
 #                                        v
@@ -32,9 +32,9 @@
 # |chain: OUTPUT |             +--------+----------+
 # +--------------+                      |
 #                                       v
-#                               XXXXXXXXXXXXXXXXXX
-#                             XXX    Network     XXX
-#                               XXXXXXXXXXXXXXXXXX
+#                               XXXXXXXXXXXXXXXXX
+#                               XXXX Network XXXX
+#                               XXXXXXXXXXXXXXXXX
 #
 # iptables [-t table] {-A|-C|-D} chain rule-specification
 #
@@ -161,6 +161,11 @@ iptables -t nat -F
 iptables -t nat -X
 iptables -t mangle -F
 iptables -t mangle -X
+iptables -t raw -F
+iptables -t raw -X
+iptables -t security -F
+iptables -t security -X
+
 
 echo "Starting ipv4 firewall filter table..."
 
@@ -169,7 +174,7 @@ iptables -P INPUT DROP
 iptables -P FORWARD DROP
 iptables -P OUTPUT DROP
 
-#unlimited
+# Unlimited on local
 $IPT -A INPUT -i lo -j ACCEPT
 $IPT -A OUTPUT -o lo -j ACCEPT