I have tested af-packet on two different types of servers. Why can’t af-packe drop packets in IPS mode?But the alert message is displayed in the log.
Is it because my network card does not support af-packet?
The reject and drop signatures are invalid.
For example:
reject tcp any any -> any any (msg:“IPS”; content:“google”; sid:10002; rev:1;)
drop tcp any any -> any any (msg:“IPS”; content:“google”; sid:10002; rev:1;)
I can just comment that in the /etc/default/suricata config file is written that only the nfqueue mode supports IPS: # Listen mode: pcap, nfqueue, custom_nfqueue or af-packet # depending on this value, only one of the two following options # will be used (af-packet uses neither). # Please note that IPS mode is only available when using nfqueue
LISTENMODE=af-packet