Hello Everyone,
So I have run into a snag with port mirroring, and I think I don’t understand how it actually works on my mikrotik device.
I currently have a CCR-2004 as my router.
I currently use ethernet1 as the wan connection, since I want to mirror all traffic going to and from that port to a suricata vm.
I have set mirror ingress and egress on port1 and the target is port8 (this is where suricatas listening interface is connected)
0 R name="ether1" switch=switch1 mirror-ingress=yes mirror-egress=yes
mirror-ingress-target=ether8
Firstly, why is there no “mirror-egress-target” ? where is the egress traffic going?
- I have tried to tcpdump the traffic on the suricata device, and for example, if I look at dns traffic, I only see query responses, but not the actual query, so something gets lost somewhere.
Also, is the mikrotik encapsulating the mirrored traffic somehow? Because there is a lot missing in the suricata logs when running towards traffic on the mirrored port, ie suricata can’t for example detect any dns traffic in the pcaps taken on the incoming mirrored traffic, not even the query responses that I know are there gets picked up. But it detects dns just fine if I analyze a pcap taken from the dns servers interface directly.
So suricata absolutely seems work ok, just not on the mirrored traffic….so now I am trying to figure out whats wrong with the mirror.
Anyone got any ideas on where to start?