mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
(ipfw) fix template for rule interface selection
This commit is contained in:
parent
6819cc3dc8
commit
6b01cda117
@ -126,9 +126,13 @@ add 60000 return via any
|
||||
{% if helpers.exists('OPNsense.TrafficShaper.rules.rule') %}
|
||||
{% for rule in helpers.toList('OPNsense.TrafficShaper.rules.rule') %}
|
||||
{% if helpers.getUUIDtag(rule.target) in ['pipe','queue'] %}
|
||||
{% if helpers.getNodeByTag('interfaces.'+rule.interface) %}
|
||||
add {{loop.index + 60000}} {{ helpers.getUUIDtag(rule.target) }} {{
|
||||
helpers.getUUID(rule.target).number }} {{ rule.proto }} from {{ rule.source }} to {{rule.destination
|
||||
}} src-port {{ rule.src_port }} dst-port {{ rule.dst_port }} {{rule.direction}} via {{ rule.interface }}
|
||||
}} src-port {{ rule.src_port }} dst-port {{ rule.dst_port }} {{rule.direction}} via {{
|
||||
helpers.getNodeByTag('interfaces.'+rule.interface).if
|
||||
}}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user