mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-19 15:33:06 +01:00
@@ -1,19 +1,11 @@
|
|||||||
# Firewall Magic for the grid
|
# Firewall Magic for the grid
|
||||||
|
{%- if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %}
|
||||||
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %}
|
|
||||||
|
|
||||||
{%- set ip = salt['pillar.get']('static:masterip', '') %}
|
{%- set ip = salt['pillar.get']('static:masterip', '') %}
|
||||||
|
{%- elif grains['role'] == 'so-node' %}
|
||||||
{% elif grains['role'] == 'so-node'%}
|
|
||||||
|
|
||||||
{%- set ip = salt['pillar.get']('node:mainip', '') %}
|
{%- set ip = salt['pillar.get']('node:mainip', '') %}
|
||||||
|
{%- elif grains['role'] == 'so-sensor' %}
|
||||||
{% elif grains['role'] == 'so-sensor'%}
|
{%- set ip = salt['pillar.get']('sensor:mainip', '') %}
|
||||||
|
{%- endif %}
|
||||||
{%- set ip = salt['pillar.get']('node:mainip', '') %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
# Keep localhost in the game
|
# Keep localhost in the game
|
||||||
iptables_allow_localhost:
|
iptables_allow_localhost:
|
||||||
iptables.append:
|
iptables.append:
|
||||||
|
|||||||
@@ -453,7 +453,11 @@ get_filesystem_nsm(){
|
|||||||
|
|
||||||
get_log_size_limit() {
|
get_log_size_limit() {
|
||||||
|
|
||||||
DISK_SIZE_K=`df /nsm |grep -v "^Filesystem" | awk '{print $2}'`
|
DISK_DIR="/"
|
||||||
|
if [ -d /nsm ]; then
|
||||||
|
DISK_DIR="/nsm"
|
||||||
|
fi
|
||||||
|
DISK_SIZE_K=`df $DISK_DIR |grep -v "^Filesystem" | awk '{print $2}'`
|
||||||
PERCENTAGE=85
|
PERCENTAGE=85
|
||||||
DISK_SIZE=DISK_SIZE_K*1000
|
DISK_SIZE=DISK_SIZE_K*1000
|
||||||
PERCENTAGE_DISK_SPACE=`echo $(($DISK_SIZE*$PERCENTAGE/100))`
|
PERCENTAGE_DISK_SPACE=`echo $(($DISK_SIZE*$PERCENTAGE/100))`
|
||||||
|
|||||||
Reference in New Issue
Block a user