Fix ip6tables states for kernels older than 2.6.20 (which have states broken).
This commit is contained in:
parent
9c070ae932
commit
c2a82e83a8
2 changed files with 7 additions and 0 deletions
|
@ -6,7 +6,12 @@
|
|||
-A INPUT -i lo -j ACCEPT
|
||||
-A INPUT -m ipv6header --header ah -j ACCEPT
|
||||
-A INPUT -m ipv6header --header esp -j ACCEPT
|
||||
<% if ip6states >= 0 -%>
|
||||
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||
<% else -%>
|
||||
-A INPUT -m tcp -p tcp ! --syn -j ACCEPT
|
||||
-A INPUT -m udp -p udp --dport 32768:61000 -j ACCEPT
|
||||
<% end -%>
|
||||
-A INPUT -p ipv6-icmp -j ACCEPT
|
||||
<%
|
||||
firewall_rules.each do |rule|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue