mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fix rule update
Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com>
This commit is contained in:
@@ -11,8 +11,8 @@ if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
|||||||
{%- set proxy = salt['pillar.get']('manager:proxy') %}
|
{%- set proxy = salt['pillar.get']('manager:proxy') %}
|
||||||
{%- set noproxy = salt['pillar.get']('manager:no_proxy', '') %}
|
{%- set noproxy = salt['pillar.get']('manager:no_proxy', '') %}
|
||||||
|
|
||||||
# Download the rules from the internet
|
|
||||||
{%- if proxy %}
|
{%- if proxy %}
|
||||||
|
# Download the rules from the internet
|
||||||
export http_proxy={{ proxy }}
|
export http_proxy={{ proxy }}
|
||||||
export https_proxy={{ proxy }}
|
export https_proxy={{ proxy }}
|
||||||
export no_proxy="{{ noproxy }}"
|
export no_proxy="{{ noproxy }}"
|
||||||
@@ -20,8 +20,8 @@ if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
|||||||
|
|
||||||
mkdir -p /nsm/rules/suricata
|
mkdir -p /nsm/rules/suricata
|
||||||
chown -R socore:socore /nsm/rules/suricata
|
chown -R socore:socore /nsm/rules/suricata
|
||||||
|
{%- if not GLOBALS.airgap %}
|
||||||
# Download the rules from the internet
|
# Download the rules from the internet
|
||||||
{%- if GLOBALS.airgap != 'True' %}
|
|
||||||
{%- if IDSTOOLSMERGED.config.ruleset == 'ETOPEN' %}
|
{%- if IDSTOOLSMERGED.config.ruleset == 'ETOPEN' %}
|
||||||
docker exec so-idstools idstools-rulecat -v --suricata-version 6.0 -o /nsm/rules/suricata/ --merged=/nsm/rules/suricata/emerging-all.rules --force
|
docker exec so-idstools idstools-rulecat -v --suricata-version 6.0 -o /nsm/rules/suricata/ --merged=/nsm/rules/suricata/emerging-all.rules --force
|
||||||
{%- elif IDSTOOLSMERGED.config.ruleset == 'ETPRO' %}
|
{%- elif IDSTOOLSMERGED.config.ruleset == 'ETPRO' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user