mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
IDH - Finalize Firewall config
This commit is contained in:
@@ -662,7 +662,7 @@ role:
|
||||
- {{ portgroups.ssh }}
|
||||
{% set idh_services = salt['pillar.get']('idh:services', []) %}
|
||||
{% for service in idh_services %}
|
||||
- {{ portgroups.service }}
|
||||
- {{ portgroups['idh_'~service] }}
|
||||
{% endfor %}
|
||||
dockernet:
|
||||
portgroups:
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
{% if grains.role == 'so-idh' %}
|
||||
{% from 'idh/opencanary_config.map.jinja' import OPENCANARYCONFIG %}
|
||||
{% set idh_services = salt['pillar.get']('idh:services', []) %}
|
||||
{% endif %}
|
||||
|
||||
firewall:
|
||||
aliases:
|
||||
ports:
|
||||
@@ -48,15 +53,6 @@ firewall:
|
||||
fleet_webui:
|
||||
tcp:
|
||||
- 443
|
||||
ftp:
|
||||
tcp:
|
||||
- 21
|
||||
git:
|
||||
tcp:
|
||||
- 9418
|
||||
http:
|
||||
tcp:
|
||||
- 80
|
||||
influxdb:
|
||||
tcp:
|
||||
- 8086
|
||||
@@ -115,3 +111,11 @@ firewall:
|
||||
yum:
|
||||
tcp:
|
||||
- 443
|
||||
|
||||
{% if idh_services is defined %}
|
||||
{% for service in idh_services %}
|
||||
idh_{{service}}:
|
||||
tcp:
|
||||
- {{ OPENCANARYCONFIG[service~'.port'] }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
@@ -37,4 +37,8 @@ so-idh:
|
||||
- network_mode: host
|
||||
- binds:
|
||||
- /nsm/idh:/var/tmp:rw
|
||||
- /opt/so/conf/idh/opencanary.conf:/etc/opencanaryd/opencanary.conf:ro
|
||||
- /opt/so/conf/idh/opencanary.conf:/etc/opencanaryd/opencanary.conf:ro
|
||||
- watch:
|
||||
- file: opencanary_config
|
||||
- require:
|
||||
- file: opencanary_config
|
||||
Reference in New Issue
Block a user