Added support for opening port ranges into firewall module.
This commit is contained in:
parent
29eac7c7aa
commit
130b585eea
2 changed files with 2 additions and 2 deletions
|
@ -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| -%>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue