Sniffing packets on the Raspberry Pi 3 with FreeBSD, Netmap, and Suricata
I run Suricata on a Raspberry Pi 3 at home. Suricata is in af_packet mode, cluster type is cpu, and I have the ring size dialed in to consume most of the system’s memory. The source network isn’t of interest. Browsing traffic of a few people, mobile devices, streaming services, cat videos and garbage devices that clog up the tubes. The pi 3 surprisingly holds up well, for a device with a usb nic. Suricata drops < 3% of packets on average. It works. That’s fine and all, but I’ve been wondering how netmap on FreeBSD would function on restrictive and unsupported hardware. FreeBSD can run on the Raspberry Pi 3. Guess it’s time to find out.