Im trying to configure suricata for our infrastructure
we have multiple machines acting as our edge and the every machine have 8 interfaces that handle routing the packet.
suricata is deployed on these in IDS and planning for IPS in future
right now im experiencing high capture.kernel_drops (about 5%)
on IDS mode and i need help to find the reason for this.
im currently using 3 core cpu and about 3gb of ram
i can change the cpu and memory for this but i dont think these are the problem
i have tried tweaking the configuration
added hyperscan
set detect.profile=high
and my suricata systemd
[Unit]
Description=Suricata Intrusion Detection Service
After=syslog.target network-online.target
[Service]
# Environment file to pick up $OPTIONS. On Fedora/EL this would be
# /etc/sysconfig/suricata, or on Debian/Ubuntu, /etc/default/suricata.
EnvironmentFile=-/etc/sysconfig/suricata
#EnvironmentFile=-/etc/default/suricata
ExecStartPre=/bin/rm -f /var/run/suricata.pid
ExecStart=/sbin/suricata -c /etc/suricata/suricata.yaml --pidfile /var/run/suricata.pid $OPTIONS
ExecReload=/bin/kill -USR2 $MAINPID
[Install]
WantedBy=multi-user.target
OPTIONS="--af-packet --group suricata --user suricata --set mpm-algo=hs --set spm-algo=hs "
LD_PRELOAD="/usr/lib64/libtcmalloc.so.4.3.0"
suricata configure before build
configure --enable-gccprotect --enable-pie --disable-gccmarch-native \
--disable-coccinelle --enable-nfqueue --enable-af-packet \
--with-libnspr-includes=/usr/include/nspr4 \
--with-libnss-includes=/usr/include/nss3 \
--enable-jansson --enable-geoip --enable-lua --enable-hiredis \
--enable-rust \
--enable-ebpf-build --enable-ebpf \
--enable-python --with-clang=/usr/bin/clang
suricata-additional.yaml (3.3 KB)
suricata.yaml (84.0 KB)
stats.log (9.4 KB)
suricata-additional.yaml is the main af-packet that is included in suricata.yaml
- Suricata version is 7.0.7
- opensuse-leap 15.4
- Suricata is installed by compiling it