mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
15 lines
351 B
Bash
Executable File
15 lines
351 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. /usr/sbin/so-common
|
|
|
|
# Pull down the latest rules if not airgap
|
|
|
|
docker exec so-idstools idstools-rulecat -v --suricata-version 6.0 -o /nsm/rules/suricata/ --force
|
|
|
|
argstr=""
|
|
for arg in "$@"; do
|
|
argstr="${argstr} \"${arg}\""
|
|
done
|
|
|
|
docker exec so-idstools /bin/bash -c "cd /opt/so/idstools/etc && idstools-rulecat --force ${argstr}"
|