Suricata Airgap

This commit is contained in:
Mike Reeves
2023-05-24 15:30:52 -04:00
parent caaedee5a7
commit 11d7e66ea0
2 changed files with 6 additions and 5 deletions

View File

@@ -46,8 +46,9 @@ so-idstools:
- {{ BIND }} - {{ BIND }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if DOCKER.containers['so-idstools'].extra_hosts %}
- extra_hosts: - extra_hosts:
- {{ GLOBALS.manager }}:{{ GLOBALS.manager_ip }}
{% if DOCKER.containers['so-idstools'].extra_hosts %}
{% for XTRAHOST in DOCKER.containers['so-idstools'].extra_hosts %} {% for XTRAHOST in DOCKER.containers['so-idstools'].extra_hosts %}
- {{ XTRAHOST }} - {{ XTRAHOST }}
{% endfor %} {% endfor %}

View File

@@ -23,9 +23,9 @@ docker exec so-idstools idstools-rulecat -v --suricata-version 6.0 -o /nsm/rules
{%- endif %} {%- endif %}
#argstr="" argstr=""
#for arg in "$@"; do for arg in "$@"; do
# argstr="${argstr} \"${arg}\"" argstr="${argstr} \"${arg}\""
#done done
docker exec so-idstools /bin/bash -c "cd /opt/so/idstools/etc && idstools-rulecat --force ${argstr}" docker exec so-idstools /bin/bash -c "cd /opt/so/idstools/etc && idstools-rulecat --force ${argstr}"