summaryrefslogtreecommitdiffstats
path: root/iptables-ion/ip6tables.rules
diff options
context:
space:
mode:
Diffstat (limited to 'iptables-ion/ip6tables.rules')
-rw-r--r--iptables-ion/ip6tables.rules16
1 files changed, 16 insertions, 0 deletions
diff --git a/iptables-ion/ip6tables.rules b/iptables-ion/ip6tables.rules
new file mode 100644
index 0000000..cad1884
--- /dev/null
+++ b/iptables-ion/ip6tables.rules
@@ -0,0 +1,16 @@
+*filter
+:INPUT ACCEPT [0:0]
+:FORWARD DROP [0:0]
+:OUTPUT ACCEPT [4:208]
+:TCP - [0:0]
+:UDP - [0:0]
+-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
+-A INPUT -i lo -j ACCEPT
+-A INPUT -m conntrack --ctstate INVALID -j DROP
+-A INPUT -p icmpv6 -m icmpv6 --icmpv6-type 8 -m conntrack --ctstate NEW -j ACCEPT
+-A INPUT -p udp -m conntrack --ctstate NEW -j UDP
+-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j TCP
+-A INPUT -p udp -j REJECT --reject-with icmp6-port-unreachable
+-A INPUT -p tcp -j REJECT --reject-with tcp-reset
+-A INPUT -j REJECT
+COMMIT