mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-12 20:22:59 +01:00
Firewall Module - Allow Minions to connect to salt
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
{% set minions = salt['pillar.get']('firewall.minions', {}) %}
|
|
||||||
# Default Rules for everyone
|
# Default Rules for everyone
|
||||||
|
|
||||||
# Keep localhost in the game
|
# Keep localhost in the game
|
||||||
@@ -53,6 +52,7 @@ enable_reject_policy:
|
|||||||
|
|
||||||
# Rules if you are a Master
|
# Rules if you are a Master
|
||||||
{% if grains['role'] == 'so-master' %}
|
{% if grains['role'] == 'so-master' %}
|
||||||
|
{% set minions = salt['pillar.get']('firewall.minions', {}) %}
|
||||||
{% for ip in minions.get('minion_ips', []) %}
|
{% for ip in minions.get('minion_ips', []) %}
|
||||||
|
|
||||||
enable_salt_minions_4505:
|
enable_salt_minions_4505:
|
||||||
@@ -74,7 +74,9 @@ enable_reject_policy:
|
|||||||
- source: {{ ip }}
|
- source: {{ ip }}
|
||||||
- dport: 4506
|
- dport: 4506
|
||||||
- save: True
|
- save: True
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# Rules if you are a Storage Node
|
# Rules if you are a Storage Node
|
||||||
|
|||||||
Reference in New Issue
Block a user