mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-26 06:27:50 +02:00
allow only manager to connect to ssh port for idh node
This commit is contained in:
@@ -659,7 +659,6 @@ role:
|
||||
hostgroups:
|
||||
anywhere:
|
||||
portgroups:
|
||||
- {{ portgroups.ssh }}
|
||||
{% set idh_services = salt['pillar.get']('idh:services', []) %}
|
||||
{% for service in idh_services %}
|
||||
- {{ portgroups['idh_'~service] }}
|
||||
@@ -669,4 +668,7 @@ role:
|
||||
- {{ portgroups.all }}
|
||||
localhost:
|
||||
portgroups:
|
||||
- {{ portgroups.all }}
|
||||
- {{ portgroups.all }}
|
||||
manager:
|
||||
portgroups:
|
||||
- {{ portgroups.ssh }}
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
{% if grains.role == 'so-idh' %}
|
||||
{% from 'idh/opencanary_config.map.jinja' import OPENCANARYCONFIG %}
|
||||
{% from 'idh/openssh/map.jinja' import openssh_map %}
|
||||
{% set idh_services = salt['pillar.get']('idh:services', []) %}
|
||||
{% set ssh_port = openssh_map.config.port %}
|
||||
{% else %}
|
||||
{% set ssh_port = 22 %}
|
||||
{% endif %}
|
||||
|
||||
firewall:
|
||||
@@ -88,7 +92,7 @@ firewall:
|
||||
- 443
|
||||
ssh:
|
||||
tcp:
|
||||
- 22
|
||||
- {{ ssh_port }}
|
||||
strelka_frontend:
|
||||
tcp:
|
||||
- 57314
|
||||
|
||||
Reference in New Issue
Block a user