Saltstack Official FirewallD Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
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>