Wake on WAN work around issue
-
After Reading this topic. https://forum.pfsense.org/index.php?topic=33018
This was the last message…
Ok, I was able to figure it out. It looks like other people have tried this before, and were unable to get it to work due to the fact that FreeBSD doesn't allow directed broadcasts. What you need to do is install the ShellCmd package and add a command to add at bootup for a static ARP entry for the machine you want to wake up.
The command is:
arp -s IP Address MAC Address
Then setup a UDP port forward for the WOL packet. The destination IP should be the IP address of the machine you are waking up. The destination port should be the port your WOL client uses.
Thanks to the following sources for helping me figure it out. Hope this helps others.
I don't quite understand his instructions. Did I miss something?
1. Install ShellCMD Package.
2. arp -s IP Address MAC Address
3. In Firewall > Nat > Add
4. UDP, Redirect Target IP > LAN IP of PC, Destination Port Range & Direct Target Port > Port that is forwarded. Which is the port my phone app uses.
What else did I miss? When he says destination IP, is that different than Redirect Target IP?
Has anyone actually tried this?
-
So did you verify on pfsense that is lists this mac in your arptable and and its on the correct interface?
You know another option would be to just vpn to your pfsense and then using the gui of pfsense send a WOL.
-
So did you verify on pfsense that is lists this mac in your arptable and and its on the correct interface?
Yes, it's on my ARP Table. IP Listed and the mac address is on the LAN interface.
You know another option would be to just vpn to your pfsense and then using the gui of pfsense send a WOL.
Got a step by step instructions on how to do so?
-
Did you setup vpn into pfsense?
You can click on any device that ever got a dhcp from pfsense and make wol entry - just click the button.
Do you really need a step buy guide for clickity clickity? Both in the vpn setup and the add WOL..
Run the wizard on openvpn. click the wol button in your leases.. Do you need a guide for how to connect to the webgui?
-
It is so much easier than all that.
Part 1:
Go to Services DHCP Server and scroll to the bottom.Add a DHCP Static Mapping for the device. While doing so, in the Edit static mapping page select the "ARP Table Static Entry" option. Not to be confused with the "Static ARP" option on the main Services DHCP Server page.
That will cause an ARP table static entry to be created and will survive reboots, updates, etc. because it is saved in the config.
Part 2: (optional)
To forward WoL packets through the NAT from the outside. Create a static mapping for MAC FF:FF:FF:FF:FF:FF with an IP address of something like maybe 192.168.1.254 for example. Because *.255 (broadcasts) won't be forwarded. But *.254 will be.See screen capture attachments.
With this set up WoL magic packets sent to the WAN address on the specified UDP port are forwarded as a broadcast on the LAN.
Restriction to trusted source addresses and networks is highly recommended.