OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: sqlstatement on May 20, 2023, 09:35:35 PM

Title: Wake on LAN between subnets
Post by: sqlstatement on May 20, 2023, 09:35:35 PM
Hello,

I've been trying to set up Wake on LAN (via Homebridge) since yesterday and haven't managed to get it working yet.
My setup consists of a Raspberry Pi sitting at 10.0.20.99/24 and a PC sitting at 10.0.10.188/24.
As far as I understand, I need a subnet-directed broadcast to be able to send broadcasts across subnets.
By that logic, 10.0.10.255 should work, it passes through the firewall according to the logs, but does not show up on the PC subnet (validated with Wireshark).
I have tried using udpbroadcastrelay with a few different options, but when I feed it broadcast addresses (attempted with 10.0.10.255 and 255.255.255.255) it refuses to start, so I'm running out of ideas.

I'd appreciate any help with this :)
Title: Re: Wake on LAN between subnets
Post by: Kinerg on May 20, 2023, 10:16:47 PM
Validated with WireGuard or Wireshark?

Have you tried only entering the Relay Port 7 without the Broadcast Address?

If you don't manage to get the broadcast working, you could use static DHCP mappings as a workaround with ARP Table Static Entry enabled, and use the devices' IP address as the WoL target. I used that to get WoL over WireGuard VPN working, since it doesn't support broadcasting.

Title: Re: Wake on LAN between subnets
Post by: sqlstatement on May 20, 2023, 10:24:51 PM
Validated with Wireshark, sorry for the typo

I'm seeing port 9 being used, and yes, I've tried setting just the port without the broadcast, to no avail. (It does seem to run, but nothing is being forwarded according to Wireshark)

I'll definitely look into the solution you proposed and report back, since I've pretty much given up on the broadcast approach by now.
Title: Re: Wake on LAN between subnets
Post by: Kinerg on June 03, 2023, 12:57:50 AM
Quote from: sqlstatement on May 20, 2023, 10:24:51 PM
Validated with Wireshark, sorry for the typo

I'm seeing port 9 being used, and yes, I've tried setting just the port without the broadcast, to no avail. (It does seem to run, but nothing is being forwarded according to Wireshark)

I'll definitely look into the solution you proposed and report back, since I've pretty much given up on the broadcast approach by now.

Have you managed to get this working?
Title: Re: Wake on LAN between subnets
Post by: tiermutter on June 03, 2023, 04:39:39 AM
Here is a how to in german language:
https://www.heimnetz.de/anleitungen/firewall/opnsense/opnsense-wake-on-lan-ueber-vpn/