Skip to content

Instantly share code, notes, and snippets.

@mpurzynski
Created April 14, 2016 15:21
Show Gist options
  • Save mpurzynski/ac15b8126c924ca3d7ac3a276199a271 to your computer and use it in GitHub Desktop.
Save mpurzynski/ac15b8126c924ca3d7ac3a276199a271 to your computer and use it in GitHub Desktop.
Suricata with Netmap on FreeBSD 10
Build and install your kernel with netmap support
FreeBSD nsm1 10.2-RELEASE-p12 FreeBSD 10.2-RELEASE-p12 #1: Sat Feb 6 11:12:43 UTC 2016 michal@nsm1:/usr/obj/usr/src/sys/NETMAP amd64
cat interfaces_setup.sh
ifconfig em0 -arp promisc -rxcsum -txcsum -rxcsum6 -txcsum6 -tso -tso4 -tso6 -lro -vlanmtu -vlanhwtag -vlanhwfilter -vlanhwtso
ifconfig em1 -arp promisc -rxcsum -txcsum -rxcsum6 -txcsum6 -tso -tso4 -tso6 -lro -vlanmtu -vlanhwtag -vlanhwfilter -vlanhwtso
ifconfig em0 mtu 1524 up
ifconfig em1 mtu 1524 up
/opt/suricata/bin/suricata -c /etc/nsm/suricata.yaml --netmap=em0 --runmode workers -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment