Hi Michael,
I’m using FreeBSD 12.1 and Zeek 3.0.5 (ver. 3.0.6 available in ports has compilation problems), with 2 NICs without ip, em0 and vtnet1 (em0 is Intel e1000) but the problem is that zeek plugin is not updated. (API mismatch)
#ifconfig
vtnet1: flags = 8802 <BROADCAST, SIMPLEX, MULTICAST> metric 0 mtu 1500
options = c00b8 <VLAN_MTU, VLAN_HWTAGGING, JUMBO_MTU, VLAN_HWCSUM, VLAN_HWTSO, link-state routing protocol>
ether something
media: Ethernet 10Gbase-T
status: active
nd6 options = 29 <PERFORMNUD, IFDISABLED, AUTO_LINKLOCAL>
em0: flags = 8802 <BROADCAST, SIMPLEX, MULTICAST> metric 0 mtu 1500
options = 812,098 <VLAN_MTU, VLAN_HWTAGGING, VLAN_HWCSUM, WOL_MAGIC, VLAN_HWFILTER>
ether something
media: Ethernet autoselect (1000baseT )
status: active
nd6 options = 29 <PERFORMNUD, IFDISABLED, AUTO_LINKLOCAL>
on zeekctl start
starting workers …
Error: worker-1-1 terminated immediately after starting; check output with “diag”
Error: worker-1-2 terminated immediately after starting; check output with “diag”
#in dmesg
173.973686 [376] netmap_ioctl_legacy Minimum supported API is 14 (requested 11)
173.973712 [376] netmap_ioctl_legacy Minimum supported API is 14 (requested 11)
#from zeekctl diag
Zeek 3.0.5
FreeBSD 12.1-RELEASE
Zeek plugins:
Bro :: Netmap - Packet acquisition via Netmap (dynamic, version 1.0.0)
==== stderr.log
292.768100 nm_open [920] NIOCREGIF failed: Invalid argument vtnet1} 1
fatal error: problem with interface netmap :: vtnet1} 1 (Invalid argument)
The netmap tools in kernel sources seems ok, lb start and the network interface switch in netmap mode.
I think the latest working version of plugin is compatible with netmap release available in FreeBSD 11.2, but there are performance issues with vtnets.
Also tcpreplay doesn’t work when i try to send traffic in netmap mode to a NIC sniffed by zeek (in FBSD 11.2)
Thanks,
Anthon