Hello. After updating Suricata from version 6 to 7, it stopped detecting HTTP traffic, despite an almost identical configuration file. tcp or icmp traffic is detected well, but http.log is empty.
I used only two rules for checking:
alert icmp any any-> any any (msg:"ICMP traffic detected"; sid:5000000;)
alert http any any -> any any (msg:"HTTP traffic detected"; sid:5000001;)
Maybe this is a problem specific to FreeBSD? Has anyone encountered the same behavior?
I added flow for logging. When an HTTP request is made, no entries are added to the log.
But there are entries for other traffic. For example
{“timestamp”:“2023-11-24T10:39:42.485502+0000”,“flow_id”:1541763414687531,“in_iface”:“em0”,“event_type”:“flow”,“src_ip”:“192.168.17.15” ,“src_port”:5353,“dest_ip”:“224.0.0.251”,“dest_port”:5353,“proto”:“UDP”,“app_proto”:“failed”,“flow”:{“pkts_toserver”:1, “pkts_toclient”:0,“bytes_toserver”:82,“bytes_toclient”:0,“start”:“2023-11-24T10:39:01.293433+0000”,“end”:“2023-11-24T10:39:01.293433 +0000”,“age”:0,“state”:“new”,“reason”:“timeout”,“alerted”:false}}
in all cases “app_proto”:“failed”
Could this be the case?
Could you do a pcap test run as well, use the -r option to do that. Just to make sure that it would be seen and it’s related to your netmap or packet forwarding.
Well at least something about your setup seems to be the issue. It’s netmap IPS mode right?
If you don’t run Suricata on the em0 interface but rather tcpdump, do you see the http traffic you mentioned?
Just to make sure the actual forwarding is working.
I don’t know how easy it would be, but could you run a pure IDS mode on just one of the interfaces and see if it would show up the http flow there?
The best you can narrow it down, the easier it could be to fix it. We already know that the pcap mode is fine, so if we see it working in IDS mode this could help as well.
Maybe, this should be a setup without using copy-mode? Sorry, in this case I have no idea how I should implement this on my test host.
I’m just losing access to the system…
I would add a dedicated interface for the management and use another interface for the capture. Start with IDS mode before going into IPS mode would also make it easier to test without loosing access.
I had to roll back to version 6 and only now I returned to the issue regarding version 7. Finally, I found what the problem was. It was affected by the livedev.use-for-tracking parameter, which must be set to false.