firewall: Modified iptables templates to allow blocking of incoming ICMP.

This commit is contained in:
Timo Mkinen 2013-09-11 16:26:29 +03:00
parent ce623ac4fc
commit 1fbe904a13
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,6 @@
-A INPUT -p ah -j ACCEPT
-A INPUT -p esp -j ACCEPT
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp --icmp-type any -j ACCEPT
<%
@firewall_rules.each do |rule|
rule = /(tcp|udp)\/([\d:]+)( .+)?/.match(rule)
@ -20,6 +19,7 @@
-%>
<%= rule %>
<% end -%>
-A INPUT -p icmp --icmp-type any -j ACCEPT
-A INPUT -p tcp -j REJECT --reject-with tcp-reset
-A INPUT -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -j REJECT --reject-with icmp-host-prohibited