mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
fix duplicate state name for fw
This commit is contained in:
@@ -95,6 +95,7 @@ enable_docker_user_established:
|
|||||||
- match: conntrack
|
- match: conntrack
|
||||||
- ctstate: 'RELATED,ESTABLISHED'
|
- ctstate: 'RELATED,ESTABLISHED'
|
||||||
|
|
||||||
|
{% set count = namespace(value=0) %}
|
||||||
{% for chain, hg in assigned_hostgroups.chain.items() %}
|
{% for chain, hg in assigned_hostgroups.chain.items() %}
|
||||||
{% for hostgroup, portgroups in assigned_hostgroups.chain[chain].hostgroups.items() %}
|
{% for hostgroup, portgroups in assigned_hostgroups.chain[chain].hostgroups.items() %}
|
||||||
{% for action in ['insert', 'delete' ] %}
|
{% for action in ['insert', 'delete' ] %}
|
||||||
@@ -103,8 +104,9 @@ enable_docker_user_established:
|
|||||||
{% for portgroup in portgroups.portgroups %}
|
{% for portgroup in portgroups.portgroups %}
|
||||||
{% for proto, ports in portgroup.items() %}
|
{% for proto, ports in portgroup.items() %}
|
||||||
{% for port in ports %}
|
{% for port in ports %}
|
||||||
|
{% set count.value = count.value + 1 %}
|
||||||
|
|
||||||
{{action}}_{{chain}}_{{hostgroup}}_{{ip}}_{{portgroup}}_{{port}}_{{proto}}:
|
{{action}}_{{chain}}_{{hostgroup}}_{{ip}}_{{port}}_{{proto}}_{{count.value}}:
|
||||||
iptables.{{action}}:
|
iptables.{{action}}:
|
||||||
- table: filter
|
- table: filter
|
||||||
- chain: {{ chain }}
|
- chain: {{ chain }}
|
||||||
|
|||||||
Reference in New Issue
Block a user