I had the WAN flapping issue with mac spoofing and have resolved by installing the updated FreeBSD 13 em driver, though I don't know if you have intel nics as well?To generate the driver file I spun up a FreeBSD vm then pkg search intel-em-mod and install. Copied the if_em_updated.ko driver to /boot/modules/ as per Franco's reply in this post https://forum.opnsense.org/index.php?topic=20905.0. I also disabled suricata on the wan interface and turned off flow control on all NICs. Now running on a non flapping OPNsense 22.1.3 with WAN DHCP and mac spoofing.@Franco - can this driver be added to OPNsense as it seems to resolve a number of stability issues.
# pciconf -lvhostb0@pci0:0:0:0: class=0x060000 rev=0x0b hdr=0x00 vendor=0x8086 device=0x5af0 subvendor=0x0000 subdevice=0x0000 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series Host Bridge' class = bridge subclass = HOST-PCIvgapci0@pci0:0:2:0: class=0x030000 rev=0x0b hdr=0x00 vendor=0x8086 device=0x5a85 subvendor=0x19da subdevice=0xb325 vendor = 'Intel Corporation' device = 'HD Graphics 500' class = display subclass = VGAhdac0@pci0:0:14:0: class=0x040300 rev=0x0b hdr=0x00 vendor=0x8086 device=0x5a98 subvendor=0x0000 subdevice=0x0000 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster' class = multimedia subclass = HDAnone0@pci0:0:15:0: class=0x078000 rev=0x0b hdr=0x00 vendor=0x8086 device=0x5a9a subvendor=0x0000 subdevice=0x0000 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series Trusted Execution Engine' class = simple commsahci0@pci0:0:18:0: class=0x010601 rev=0x0b hdr=0x00 vendor=0x8086 device=0x5ae3 subvendor=0x19da subdevice=0xb325 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series SATA AHCI Controller' class = mass storage subclass = SATApcib1@pci0:0:19:0: class=0x060400 rev=0xfb hdr=0x01 vendor=0x8086 device=0x5ad8 subvendor=0x19da subdevice=0xb325 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A' class = bridge subclass = PCI-PCIpcib2@pci0:0:19:2: class=0x060400 rev=0xfb hdr=0x01 vendor=0x8086 device=0x5ada subvendor=0x19da subdevice=0xb325 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A' class = bridge subclass = PCI-PCIpcib3@pci0:0:19:3: class=0x060400 rev=0xfb hdr=0x01 vendor=0x8086 device=0x5adb subvendor=0x19da subdevice=0xb325 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A' class = bridge subclass = PCI-PCIpcib4@pci0:0:20:0: class=0x060400 rev=0xfb hdr=0x01 vendor=0x8086 device=0x5ad7 subvendor=0x19da subdevice=0xb325 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port B' class = bridge subclass = PCI-PCIxhci0@pci0:0:21:0: class=0x0c0330 rev=0x0b hdr=0x00 vendor=0x8086 device=0x5aa8 subvendor=0x19da subdevice=0xb325 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series USB xHCI' class = serial bus subclass = USBsdhci_pci0@pci0:0:28:0: class=0x080501 rev=0x0b hdr=0x00 vendor=0x8086 device=0x5acc subvendor=0x19da subdevice=0xb325 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series eMMC Controller' class = base peripheral subclass = SD host controllersdhci_pci1@pci0:0:30:0: class=0x080501 rev=0x0b hdr=0x00 vendor=0x8086 device=0x5ad0 subvendor=0x0000 subdevice=0x0000 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series SDIO Controller' class = base peripheral subclass = SD host controllerisab0@pci0:0:31:0: class=0x060100 rev=0x0b hdr=0x00 vendor=0x8086 device=0x5ae8 subvendor=0x19da subdevice=0xb325 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series Low Pin Count Interface' class = bridge subclass = PCI-ISAnone1@pci0:0:31:1: class=0x0c0500 rev=0x0b hdr=0x00 vendor=0x8086 device=0x5ad4 subvendor=0x19da subdevice=0xb325 vendor = 'Intel Corporation' device = 'Celeron N3350/Pentium N4200/Atom E3900 Series SMBus Controller' class = serial bus subclass = SMBusiwm0@pci0:1:0:0: class=0x028000 rev=0x81 hdr=0x00 vendor=0x8086 device=0x3165 subvendor=0x8086 subdevice=0x4010 vendor = 'Intel Corporation' device = 'Wireless 3165' class = networkre0@pci0:2:0:0: class=0x020000 rev=0x0c hdr=0x00 vendor=0x10ec device=0x8168 subvendor=0x10ec subdevice=0x0123 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller' class = network subclass = ethernetre1@pci0:4:0:0: class=0x020000 rev=0x0c hdr=0x00 vendor=0x10ec device=0x8168 subvendor=0x10ec subdevice=0x0123 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller' class = network subclass = ethernet
2022-04-29T02:35:36 Notice configd.py [9a0eae11-df9a-417b-b714-eb723d44fd0a] Linkup stopping igb0 2022-04-27T09:05:55 Notice configd.py [64f504d3-3e5d-4b62-9976-f2316296d9d9] Linkup stopping igb0 2022-04-25T01:19:10 Notice configd.py [e164f86e-bc77-426c-886c-d01f40b3da50] Linkup stopping igb0
The em(4) driver supports Gigabit Ethernet adapters based on the Intel 82540, 82541ER, 82541PI, 82542, 82543, 82544, 82545, 82546, 82546EB, 82546GB, 82547, 82571, 82572, 82573, 82574, 82575, 82576, and 82580 controller chips: Intel Gigabit ET Dual Port Server Adapter (82576) Intel Gigabit VT Quad Port Server Adapter (82575) Intel Single, Dual and Quad Gigabit Ethernet Controller (82580) Intel i210 and i211 Gigabit Ethernet Controller Intel i350 and i354 Gigabit Ethernet Controller Intel PRO/1000 CT Network Connection (82547) Intel PRO/1000 F Server Adapter (82543) Intel PRO/1000 Gigabit Server Adapter (82542) Intel PRO/1000 GT Desktop Adapter (82541PI) Intel PRO/1000 MF Dual Port Server Adapter (82546) Intel PRO/1000 MF Server Adapter (82545) Intel PRO/1000 MF Server Adapter (LX) (82545) Intel PRO/1000 MT Desktop Adapter (82540) Intel PRO/1000 MT Desktop Adapter (82541) Intel PRO/1000 MT Dual Port Server Adapter (82546) Intel PRO/1000 MT Quad Port Server Adapter (82546EB) Intel PRO/1000 MT Server Adapter (82545) Intel PRO/1000 PF Dual Port Server Adapter (82571) Intel PRO/1000 PF Quad Port Server Adapter (82571) Intel PRO/1000 PF Server Adapter (82572) Intel PRO/1000 PT Desktop Adapter (82572) Intel PRO/1000 PT Dual Port Server Adapter (82571) Intel PRO/1000 PT Quad Port Server Adapter (82571) Intel PRO/1000 PT Server Adapter (82572) Intel PRO/1000 T Desktop Adapter (82544) Intel PRO/1000 T Server Adapter (82543) Intel PRO/1000 XF Server Adapter (82544) Intel PRO/1000 XT Server Adapter (82544)