Quellcode durchsuchen

include policy updates for ipv6

pull/3/head
Dennis van Dok vor 7 Jahren
Ursprung
Commit
c5319152de
2 geänderte Dateien mit 21 neuen und 0 gelöschten Zeilen
  1. +8
    -0
      iptables/rules.sls
  2. +13
    -0
      iptables/service.sls

+ 8
- 0
iptables/rules.sls Datei anzeigen

@@ -5,6 +5,14 @@
{%- if chain.policy is defined %}
iptables_{{ chain_name }}_policy:
iptables.set_policy:
- family: ipv4
- chain: {{ chain_name }}
- policy: {{ chain.policy }}
- table: filter

iptables_{{ chain_name }}_ipv6_policy:
iptables.set_policy:
- family: ipv6
- chain: {{ chain_name }}
- policy: {{ chain.policy }}
- table: filter

+ 13
- 0
iptables/service.sls Datei anzeigen

@@ -36,9 +36,22 @@ iptables_{{ chain_name }}_policy:
- table: filter
- require_in:
- iptables: iptables_flush

iptables_{{ chain_name }}_ipv6_policy:
iptables.set_policy:
- chain: {{ chain_name }}
- family: ipv6
- policy: ACCEPT
- table: filter
- require_in:
- iptables: ip6tables_flush
{%- endfor %}

iptables_flush:
iptables.flush

ip6tables_flush:
iptables.flush:
- family: ipv6

{%- endif %}

Laden…
Abbrechen
Speichern