Saltstack Official FirewallD Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
611B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <direct>
  3. {%- if 'chain' in direct %}
  4. {%- for k, v in direct.chain.items() %}
  5. <chain ipv="{{v.ipv}}" table="{{v.table}}" chain="{{k}}"/>
  6. {%- endfor %}
  7. {%- endif %}
  8. {%- if 'rule' in direct %}
  9. {%- for k, v in direct.rule.items() %}
  10. <rule priority="{{v.priority}}" table="{{v.table}}" ipv="{{v.ipv}}" chain="{{v.chain}}">{{v.args}}</rule>
  11. {%- endfor %}
  12. {%- endif %}
  13. {%- if 'passthrough' in direct %}
  14. {%- for k, v in direct.passthrough.items() %}
  15. <passthrough ipv="{{v.ipv}}">{{v.args}}</passthrough>
  16. {%- endfor %}
  17. {%- endif %}
  18. </direct>