mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-26 02:43:11 +01:00
Firewall Module - Update Rules and apply them to SN
This commit is contained in:
@@ -114,6 +114,40 @@ enable_maternode_redis_6379_{{ip}}:
|
||||
- position: 1
|
||||
- save: True
|
||||
|
||||
enable_masternode_kibana_5601_{{ip}}:
|
||||
iptables.insert:
|
||||
- table: filter
|
||||
- chain: DOCKER-USER
|
||||
- jump: ACCEPT
|
||||
- proto: tcp
|
||||
- source: {{ ip }}
|
||||
- dport: 5601
|
||||
- position: 1
|
||||
- save: True
|
||||
|
||||
enable_masternode_ES_9200_{{ip}}:
|
||||
iptables.insert:
|
||||
- table: filter
|
||||
- chain: DOCKER-USER
|
||||
- jump: ACCEPT
|
||||
- proto: tcp
|
||||
- source: {{ ip }}
|
||||
- dport: 9200
|
||||
- position: 1
|
||||
- save: True
|
||||
|
||||
enable_masternode_ES_9300_{{ip}}:
|
||||
iptables.insert:
|
||||
- table: filter
|
||||
- chain: DOCKER-USER
|
||||
- jump: ACCEPT
|
||||
- proto: tcp
|
||||
- source: {{ ip }}
|
||||
- dport: 9300
|
||||
- position: 1
|
||||
- save: True
|
||||
|
||||
|
||||
{% endfor %}
|
||||
|
||||
# Make it so all the minions can talk to salt and update etc.
|
||||
@@ -237,6 +271,18 @@ enable_standard_analyst_443_{{ip}}:
|
||||
- position: 1
|
||||
- save: True
|
||||
|
||||
#THIS IS TEMPORARY
|
||||
enable_standard_analyst_5601_{{ip}}:
|
||||
iptables.insert:
|
||||
- table: filter
|
||||
- chain: DOCKER-USER
|
||||
- jump: ACCEPT
|
||||
- proto: tcp
|
||||
- source: {{ ip }}
|
||||
- dport: 5601
|
||||
- position: 1
|
||||
- save: True
|
||||
|
||||
{% endfor %}
|
||||
|
||||
# Rules for storage nodes connecting to master
|
||||
|
||||
@@ -2,6 +2,7 @@ base:
|
||||
'G@role:so-sensor':
|
||||
- ssl
|
||||
- common
|
||||
- firewall
|
||||
- pcap
|
||||
- suricata
|
||||
- bro
|
||||
@@ -29,26 +30,31 @@ base:
|
||||
'G@role:so-node and I@node:node_type:parser':
|
||||
- match: pillar
|
||||
- common
|
||||
- firewall
|
||||
- logstash
|
||||
|
||||
'G@role:so-node and I@node:node_type:hot':
|
||||
- match: pillar
|
||||
- common
|
||||
- firewall
|
||||
- logstash
|
||||
- elasticsearch
|
||||
|
||||
'G@role:so-node and I@node:node_type:warm':
|
||||
- match: pillar
|
||||
- common
|
||||
- firewall
|
||||
- elasticsearch
|
||||
|
||||
'G@role:so-node and I@node:node_type:storage':
|
||||
- match: compound
|
||||
- common
|
||||
- firewall
|
||||
- logstash
|
||||
- elasticsearch
|
||||
|
||||
'G@role:mastersensor':
|
||||
- common
|
||||
- firewall
|
||||
- sensor
|
||||
- master
|
||||
|
||||
@@ -621,6 +621,8 @@ set_initial_firewall_policy() {
|
||||
get_main_ip
|
||||
if [ $INSTALLTYPE == 'MASTERONLY' ]; then
|
||||
printf " - $MAINIP\n" >> /opt/so/saltstack/pillar/firewall/minions.sls
|
||||
printf " - $MAINIP\n" >> /opt/so/saltstack/pillar/firewall/masterfw.sls
|
||||
|
||||
|
||||
fi
|
||||
if [ $INSTALLTYPE == 'SENSORONLY' ]; then
|
||||
|
||||
Reference in New Issue
Block a user