Added support for custom rules in firewall module.
This commit is contained in:
parent
d86de74c53
commit
fec0f3bc73
2 changed files with 6 additions and 0 deletions
|
@ -15,5 +15,8 @@ pass in quick inet6 proto icmp6 all
|
|||
<% 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| -%>
|
||||
<%= rule %>
|
||||
<% end -%>
|
||||
|
||||
pass out quick all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue