Wake-on-LAN from WAN (mobile)

On my previous router (Linksys WRT3200ACM running OpenWRT) I had configured Wake-on-LAN so that I can wake up the device remotely when I’m on the road, i.e. WoL from WAN.

If I recall correctly all steps what I needed to do on OpenWRT I had to:

  • static lease for the machine
  • make a port forward (port X forwarded into IP Y port Z)
  • add into /etc/rc.local (requires ip-full package):
    ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br-lan
    ip neigh add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br-lan
    

On my RUTX50 I have already configured:

  • static lease
  • port forward
  • added into the Custom scripts the same as in /etc/rc.local above

with this setup the WoL works from WAN but only few hours after the target machine has been powered off.

So far I have found out that as long Status -> Routes -> Static page shows a MAC address for the target machine the WoL works but when MAC address is shown just as - then it does not work.

I tried to add into Custom Scripts (IP and MAC redacted):

ip neigh change 192.168.1.xxx lladdr xx:xx:xx:xx:xx:xx nud permanent dev br-lan
ip neigh add 192.168.1.xxx lladdr xx:xx:xx:xx:xx:xx nud permanent dev br-lan

But still the Status -> Routes -> Static page after some hours shows the MAC just as - and WoL does not work.

How can I configure a static ARP entry?

You could just set up an sms rule, such as …

1 Like

I could use that as a workaround. But your reply gave me a idea for better workaround: cron. So I added the ip neigh change ... command to crontab and so far so good. But I don’t consider these as solution.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.