mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Firewall Module - Add Framework
This commit is contained in:
2
pillar/firewall/analyst.sls
Normal file
2
pillar/firewall/analyst.sls
Normal file
@@ -0,0 +1,2 @@
|
||||
analyst:
|
||||
- 127.0.0.1
|
||||
2
pillar/firewall/beats_endpoint.sls
Normal file
2
pillar/firewall/beats_endpoint.sls
Normal file
@@ -0,0 +1,2 @@
|
||||
beats_endpoint:
|
||||
- 127.0.0.1
|
||||
2
pillar/firewall/forward_nodes.sls
Normal file
2
pillar/firewall/forward_nodes.sls
Normal file
@@ -0,0 +1,2 @@
|
||||
forward_nodes:
|
||||
- 127.0.0.1
|
||||
@@ -104,6 +104,27 @@ enable_salt_minions_3142_{{ip}}:
|
||||
- position: 1
|
||||
- save: True
|
||||
|
||||
{% endfor %}
|
||||
|
||||
# Allow Forward Nodes to send their beats traffic
|
||||
{% for ip in pillar.get('forward_nodes') %}
|
||||
|
||||
enable_salt_minions_5044_{{ip}}:
|
||||
iptables.insert:
|
||||
- table: filter
|
||||
- chain: DOCKER-USER
|
||||
- jump: ACCEPT
|
||||
- proto: tcp
|
||||
- source: {{ ip }}
|
||||
- dport: 5044
|
||||
- position: 1
|
||||
- save: True
|
||||
|
||||
{% endfor %}
|
||||
|
||||
# Allow Forward Nodes to send their beats traffic
|
||||
{% for ip in pillar.get('beats_endpoint') %}
|
||||
|
||||
enable_salt_minions_5044_{{ip}}:
|
||||
iptables.insert:
|
||||
- table: filter
|
||||
|
||||
Reference in New Issue
Block a user