mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
IDH - Initial firewall support
This commit is contained in:
@@ -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 }}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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) %}
|
||||||
Reference in New Issue
Block a user