Commit eed931ab authored by Ad Schellevis's avatar Ad Schellevis

(trafficshaper) add rules to ipfw config

parent 78173c6c
......@@ -124,7 +124,11 @@ add 60000 return via any
{% if helpers.exists('OPNsense.TrafficShaper.rules.rule') %}
{% for rule in OPNsense.TrafficShaper.rules.rule %}
add {{loop.index + 60000}} pipe {{ rule.pipe }} {{ rule.proto }} via {{ rule.interface }}
{% if helpers.getUUIDtag(rule.target) in ['pipe','queue'] %}
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 }} via {{ rule.interface }}
{% endif %}
{% endfor %}
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment