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.

24 lines
767B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. This file is managed/generated by salt.
  4. Do not edit this file manually, it will be overwritten!
  5. Modify the salt pillar for firewalld instead
  6. -->
  7. <direct>
  8. {%- if 'chain' in direct %}
  9. {%- for k, v in direct.chain.items() %}
  10. <chain ipv="{{v.ipv}}" table="{{v.table}}" chain="{{k}}"/>
  11. {%- endfor %}
  12. {%- endif %}
  13. {%- if 'rule' in direct %}
  14. {%- for k, v in direct.rule.items() %}
  15. <rule priority="{{v.priority}}" table="{{v.table}}" ipv="{{v.ipv}}" chain="{{v.chain}}">{{v.args}}</rule>
  16. {%- endfor %}
  17. {%- endif %}
  18. {%- if 'passthrough' in direct %}
  19. {%- for k, v in direct.passthrough.items() %}
  20. <passthrough ipv="{{v.ipv}}">{{v.args}}</passthrough>
  21. {%- endfor %}
  22. {%- endif %}
  23. </direct>