Hi Peter,
I didn’t face any error message during Suricata start. I checked logs it seem fine.
xdp_filter aims “XDP bypass allows Suricata to tell the kernel that packets for some flows have to be dropped via the XDP mechanism. This is an early drop that occurs before the datagram reaches the Linux kernel network stack.”
Hi Andreas,
This is Suricata version 7.0.0-rc1-dev (4c7ca2c36 2022-12-22)
Run command
/usr/bin/suricata -c /home/ozgurkeskin/Projects/suricata/suricata.yaml --pidfile /var/run/suricata.pid --af-packet=wlp0s20f3 -vvv
And I attached suricata.yaml. suricata.yaml (79.7 KB)
I did this refactor about legacy map definitions and then builded ebpf files again. Start suricata with no error. When I entered drop rule in suritaca.rules file in order to drop all icmp trafic it is not working.
Hello, it seems you are using Suricata as IPS. In this mode official docs tells you should use 2 interfaces like router or firewall, one for incoming traffic and one for outgoing. To make this work you should also set ipv[4 or 6].ip_forward to 1 in your system (sysctl -a | grep forward can help to find it). And then add symmetric parameters in your af-packet section for both interfaces:
af-packet: