IDH - Initial firewall support

This commit is contained in:
Josh Brower
2022-02-17 15:54:20 -05:00
parent 6c124733b5
commit f995d0768f
5 changed files with 22 additions and 2 deletions

View File

@@ -660,6 +660,10 @@ role:
anywhere: anywhere:
portgroups: portgroups:
- {{ portgroups.ssh }} - {{ portgroups.ssh }}
{% set idh_services = salt['pillar.get']('idh:services', []) %}
{% for service in idh_services %}
- {{ portgroups.service }}
{% endfor %}
dockernet: dockernet:
portgroups: portgroups:
- {{ portgroups.all }} - {{ portgroups.all }}

View File

@@ -48,6 +48,15 @@ firewall:
fleet_webui: fleet_webui:
tcp: tcp:
- 443 - 443
ftp:
tcp:
- 21
git:
tcp:
- 9418
http:
tcp:
- 80
influxdb: influxdb:
tcp: tcp:
- 8086 - 8086

View File

@@ -2,7 +2,7 @@ idh:
opencanary: opencanary:
config: config:
http.banner: Apache/2.2.22 (Ubuntu) http.banner: Apache/2.2.22 (Ubuntu)
http.enabled: false http.enabled: true
http.port: 80 http.port: 80
http.skin: nasLogin http.skin: nasLogin
http.skin.list: http.skin.list:

View File

@@ -1,2 +1,9 @@
{% import_yaml 'idh/defaults.yml' as OPENCANARYCONFIG with context %} {% set idh_services = salt['pillar.get']('idh:services', []) %}
{% import_yaml "idh/defaults/defaults.yaml" as OPENCANARYCONFIG with context %}
{% for service in idh_services %}
{% import_yaml "idh/defaults/" ~ service ~ ".defaults.yaml" as SERVICECONFIG with context %}
{% do salt['defaults.merge'](OPENCANARYCONFIG, SERVICECONFIG, in_place=True) %}
{% endfor %}
{% set OPENCANARYCONFIG = salt['pillar.get']('idh:opencanary:config', default=OPENCANARYCONFIG.idh.opencanary.config, merge=True) %} {% set OPENCANARYCONFIG = salt['pillar.get']('idh:opencanary:config', default=OPENCANARYCONFIG.idh.opencanary.config, merge=True) %}