I have a problem with ips mode, the stats record (tail -f eve.json | jq -c ‘select (.stats) | .stats.ips’) is blocked, and action ‘drop’ is detected in fast.log. I use the drop action to drop the packet … but after I see the network traffic with wireshark, hping3 remains come and the bandwidth remains high
I use NFQueue
and iptables : sudo iptables -I INPUT -p tcp -j NFQUEUE
sudo iptables -I OUTPUT -p tcp -j NFQUEUE
my rules: drop tcp any any -> any any (msg: “HPING3 DDoS attack”; flags: S; flow: stateless; classtype:attempted-dos; threshold: type both, track by_dst, count 200, seconds 1; sid:1000001; rev:1;)
30/8/2020 – 03:57:49 - - [ERRCODE: SC_ERR_INVALID_SIGNATURE(39)] - invalid formatting to msg keyword: value must be double quoted ‘msg’
30/8/2020 – 03:57:49 - - [ERRCODE: SC_ERR_INVALID_SIGNATURE(39)] - error parsing signature “drop tcp any any → any any (msg: “HPING3 DDoS attack”; flags: S; flow: stateless; classtype:attempted-dos; sid:1000001; rev:1;)” from file /var/lib/suricata/rules/hping.rules at line 1
Please describe your setup a bit more in detail. From where do you start the hping to which target? Is it correctly forwared to the NFQUEUE? Where do you capture?
I guess you translated my quote so just assuming you’re referring to my last one.
If the packet is logged as dropped it won’t be accepted and the verdict is set. That’s after it passed the iptables chains and ends up in Suricata where it’s eitehr accepted or dropped (compared to iptables rules).