I have a mini PC (Partaker i5) that I use as a backup router. My goal is to fire this up via WOL if the main router fails. The other issue I have with this system is it won't power on after a power outage thus the need for WOL.
The problem I have. If I do a normal Opnsense shutdown WOL fails. If I remove power then add power, WOL works. If I boot a live Linux version a shutdown then WOL works. It seems like Opnsense is disabling WOL.
My ifconifg -m which shows wol_magic. Any ideas??
ifconfig -m em1
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=81249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER>
capabilities=953d9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,LRO,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,NETMAP>
ether 00:e8:4c:68:48:57
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
supported media:
media autoselect
media 1000baseT
media 1000baseT mediaopt full-duplex
media 100baseTX mediaopt full-duplex
media 100baseTX
media 10baseT/UTP mediaopt full-duplex
media 10baseT/UTP
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Check my solution for this topic. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238411 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238411)
From my perspective it's not an OPNsense issue, it's a FreeBSD issue (I call it bug). With my own adapted & compiled network driver WOL is working like a charm.
kr/m
Thanks for the update. I suspected it was a FreeBSD issue and hope the Opnsense maintainers will implement the fix until FreeBSD does.
My system doesn't use an i210..
# pciconf -lbcevV em0@pci0:1:0:0
em0@pci0:1:0:0: class=0x020000 card=0x6c401462 chip=0x10d38086 rev=0x00 hdr=0x00
vendor = 'Intel Corporation'
device = '82574L Gigabit Network Connection'
class = network
subclass = ethernet
bar [10] = type Memory, range 32, base 0xf7e00000, size 131072, enabled
bar [18] = type I/O Port, range 32, base 0xe000, size 32, enabled
bar [1c] = type Memory, range 32, base 0xf7e20000, size 16384, enabled
cap 01[c8] = powerspec 2 supports D0 D3 current D0
cap 05[d0] = MSI supports 1 message, 64 bit
cap 10[e0] = PCI-Express 1 endpoint max data 128(256) NS
link x1(x1) speed 2.5(2.5) ASPM disabled(L0s/L1)
cap 11[a0] = MSI-X supports 5 messages, enabled
Table in map 0x1c[0x0], PBA in map 0x1c[0x2000]
ecap 0001[100] = AER 1 0 fatal 0 non-fatal 3 corrected
PCI-e errors = Correctable Error Detected
Corrected = Receiver Error
Bad TLP
Replay Timer Timeou