mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 10:35:27 +00:00
intrusion detection: suricata also needs this on /var memory disk
This commit is contained in:
parent
36177724e5
commit
5b7df97407
9
src/opnsense/scripts/suricata/setup.sh
Executable file
9
src/opnsense/scripts/suricata/setup.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
SURICATA_DIRS="/var/log/suricata"
|
||||
|
||||
for SURICATA_DIR in ${SURICATA_DIRS}; do
|
||||
mkdir -p ${SURICATA_DIR}
|
||||
chown -R root:wheel ${SURICATA_DIR}
|
||||
chmod -R 0700 ${SURICATA_DIR}
|
||||
done
|
||||
@ -41,7 +41,7 @@ type:script
|
||||
message:stop suricata daemon
|
||||
|
||||
[start]
|
||||
command:/usr/local/etc/rc.d/suricata start
|
||||
command:/usr/local/opnsense/scripts/suricata/setup.sh;/usr/local/etc/rc.d/suricata start
|
||||
parameters:
|
||||
type:script
|
||||
message:start suricata daemon
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user