summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--files/iptables/iptables15
1 files changed, 15 insertions, 0 deletions
diff --git a/files/iptables/iptables b/files/iptables/iptables
new file mode 100644
index 000000000..85f56c1a2
--- /dev/null
+++ b/files/iptables/iptables
@@ -0,0 +1,15 @@
+# Simple static firewall loaded by iptables.service. Replace
+# this with your own custom rules, run lokkit, or switch to
+# shorewall or firewalld as your needs dictate.
+*filter
+:INPUT ACCEPT [0:0]
+:FORWARD ACCEPT [0:0]
+:OUTPUT ACCEPT [0:0]
+-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
+-A INPUT -p icmp -j ACCEPT
+-A INPUT -i lo -j ACCEPT
+-A INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 22 -j ACCEPT
+-A INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 80 -j ACCEPT
+-A INPUT -j REJECT --reject-with icmp-host-prohibited
+-A FORWARD -j REJECT --reject-with icmp-host-prohibited
+COMMIT