Added support for opening port ranges into firewall module.

This commit is contained in:
Timo Mkinen 2009-11-25 13:10:45 +02:00
parent 29eac7c7aa
commit 130b585eea
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ pass in quick inet proto icmp all
pass in quick inet6 proto icmp6 all
<% firewall_rules.each do |rule| -%>
<% rule = /(tcp|udp)\/(\d+)( .+)?/.match(rule) -%>
<% rule = /(tcp|udp)\/([\d:]+)( .+)?/.match(rule) -%>
pass in quick proto <%= rule[1] %><% if rule[3] %> from<%= rule[3] %><% end %> to port <%= rule[2] %>
<% end -%>
<% firewall_custom.each do |rule| -%>