瀏覽代碼

Merge pull request #14 from pauldalewilliams/add-ipset-as-source-in-zones

Add support for using ipsets as sources in a zone
tags/v0.6.2
Niels Abspoel 7 年之前
父節點
當前提交
28a15e1707
No account linked to committer's email address
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      firewalld/files/zone.xml

+ 10
- 0
firewalld/files/zone.xml 查看文件

@@ -23,6 +23,16 @@
{%- endif %}
{%- endfor %}
{%- endif %}
{%- if 'ipsets' in zone %}
{%- for v in zone.ipsets %}
{%- if 'comment' in v %}
<!-- {{ v.comment }} -->
<source ipset="{{ v.ipset }}" />
{%- else %}
<source ipset="{{ v }}" />
{%- endif %}
{%- endfor %}
{%- endif %}
{%- if 'services' in zone %}
{%- for v in zone.services %}
<service name="{{ v }}" />

Loading…
取消
儲存