瀏覽代碼

Don't set policy if rules failed

tags/2016.12
Filip Pytloun 8 年之前
父節點
當前提交
21c93fb4e5
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      iptables/service.sls

+ 4
- 1
iptables/service.sls 查看文件

@@ -71,7 +71,10 @@ iptables_{{ chain_name }}_{{ rule_name }}:
{%- if rule.destination_network is defined %}
- destination: {{ rule.destination_network }}
{%- endif %}

{%- if chain.policy is defined %}
- require_in:
- iptables: iptables_{{ chain_name }}_policy:
{%- endif %}
- save: True

{%- endfor %}

Loading…
取消
儲存