OPNsense Forum

English Forums => General Discussion => Topic started by: Nekromantik on January 18, 2023, 04:33:25 PM

Title: WOL Over Different Subnets
Post by: Nekromantik on January 18, 2023, 04:33:25 PM
Hello

I have 2 LANs in my home one for Wired and one for wireless.
I want to use a client on my wifi device to send WOL packet to a device on the wired network.
Is there any relay or proxy on opnsense that will work for this?

Thanks
Title: Re: WOL Over Different Subnets
Post by: bartjsmit on January 18, 2023, 06:05:58 PM
Only if you bridge them. A WoL magic packet works on layer 2 while firewalls and routers are layer 3 devices
Title: Re: WOL Over Different Subnets
Post by: tiermutter on January 18, 2023, 06:13:38 PM
I created a german tutorial to send WOL over VPN to LAN subnet. Should work for you too: https://www.heimnetz.de/anleitungen/firewall/opnsense/opnsense-wake-on-lan-ueber-vpn/
Title: Re: WOL Over Different Subnets
Post by: spooner.arthur on July 27, 2024, 11:30:40 AM
Hello,
I read your instruction and I have two questions:
I only want WoL in the OpenVPN Tunnel, then I only need the Interface OpenVPN and no WAN, right?
I send the Magic Packets with a PowerShell Script.
What do you mean with local network and remote network?
My VPN Network is 10.8.0.x, my Client is in local Network 192.168.0.x
In the VPN Tunnel I have to send the Magic Packet to 192.168.0.255, right?

Thanks, Regards
Arthur
Title: Re: WOL Over Different Subnets
Post by: tiermutter on July 27, 2024, 02:23:17 PM
I don't understand the first question...
Second question:
Normally, wol tools will send magic packets / Broadcasts only to their LAN but not VPN. To do so, the tool must be instructed to send it to the remote network, in your case 192.168.0.255 if this is a /24 subnet, yes.
I have never sent wol via PS... It needs an option to define the remote remote network, then it will sent through VPN according to the routing table.
Title: Re: WOL Over Different Subnets
Post by: spooner.arthur on July 27, 2024, 06:14:28 PM
Hi,
I finished the configuration and test it.
Everything works.
Thank you very much.