Hi,
I’m using suricata as my ids to monitor network traffic. I have installed suricata 6.0.4 on centos 7 from the copr repo.
however, I found that suricata can’t parse http traffic correctly on my machine.
I tried to capture data using tcpdump and save it as pcap files, then analyze http data using wireshark, both wireshark and tcpdump can restore the http data correctly but suricata did not.
i can’t see it in the http.log(using suricata -r test.pcap -c /etc/suricata -l ./, i have enabled the http.log and other settings is default.
futher more, all the extranet http traffic can’t be seen in the http.log.
can anyone help me? what should i do?
decoder.pkts | Total | 84
decoder.bytes | Total | 67779
decoder.ipv4 | Total | 84
decoder.ethernet | Total | 84
decoder.tcp | Total | 84
decoder.vlan | Total | 52
decoder.avg_pkt_size | Total | 806
decoder.max_pkt_size | Total | 1438
flow.tcp | Total | 10
flow.wrk.spare_sync_avg | Total | 100
flow.wrk.spare_sync | Total | 7
tcp.sessions | Total | 2
tcp.syn | Total | 2
tcp.synack | Total | 2
flow.mgr.full_hash_pass | Total | 1
flow.spare | Total | 9300
flow.mgr.rows_maxlen | Total | 1
flow.mgr.flows_checked | Total | 10
flow.mgr.flows_notimeout | Total | 10
tcp.memuse | Total | 14548992
tcp.reassembly_memuse | Total | 2359296
flow.memuse | Total | 7394304
hi,Andreas
thank you for your reply .
i have already solved that problem not long ago.
it was caused by the default setting:
vlan:
use-for-tracking: true
i turned it off, then i found that suricata can parse the http traffic correctly.
It’s a small problem, but it has troubled me for a long time
This issue can be closed. Sorry for wasting your time.
hi, Andreas
after a few days, i found that the problem has not been completely solved.
the http traffic parse exception problem still happens sometimes.
i caputre the traffic using tcpdump, here is the pcap file. a.pcap (1.2 KB)
wireshark can restore the http data correctly
but i can’t restore it using suricata.
using
haven’t yet. i guess it might be libhtp does not parse correctly .
In addition, i found that if you close the checksum-validation might show you more http logs, but still not all. Set the stream.memcap and stream.reassembly.memcap also useful,But none of the above can completely solve the problem.
If you have solved this problem,please let me know. thx