Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (2025)

N

Nesalex

Regular Contributor
  • Jan 26, 2022
  • #1

Hi

I need an advice. I was recently looking for a way to run a NAS over WOL based on a port connection request:

https://www.snbforums.com/threads/wol-with-request-from-internet-rt-ac68u.76595/#post-736425 - Big thanks to eibgrad for creating a working script ...

This time I try to send a magic packet via the WakeOnLan application from DEPICUS.Everything works in the local network. Also an android application and also a program on a PC. I have a problem with waking up over the internet. I found a thread where it is solved but it's older:

Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (1)

Help with wake on lan - WOL

Hi, I've got a problem with the wake on lan feature. I can't wake up my PC, with a static IP on my network, on my LAN with any apps available (iOS & Android) (I've tried about 20 different apps) But, within the router RT-AC86U WOL interface I'm able to wake the PC. And, yes, every device are...

Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (2)www.snbforums.com

There is information on the depicus page about possible blocking of packets for waking up, but I did not find it in the router :

Welcome To Depicus - Home of the Geek

depicus is home to the computer nerd who is now cool, ably assisted by mara and mimi and mia

Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (3)www.depicus.com

And here it is written about arp but I don't understand it Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (4) :

Welcome To Depicus - Home of the Geek

depicus is home to the computer nerd who is now cool, ably assisted by mara and mimi and mia

Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (5)www.depicus.com

Can anyone advise me what I could try? well thank you

G

GSpock

Senior Member
  • Jan 26, 2022
  • #2

Have you forwarded the port to the local IP address ? and what is it that you do not understand about ARP ?

E

eightiescalling

Senior Member
  • Jan 26, 2022
  • #3

I can't find the original config I had for this but simply forwarding to an IP won't work as the host isn't awake to own it.

Last time I did this, I reserved an IP address to forward all packets received on port 9 to and then had an additional arp command added as part of router start up that took anything considered for that IP and turned it to a local broadcast.

I'll come back with the config if I can find it.

Edit: Its for DD-WRT but the basic command arp or ip neigh commands used are at https://wiki.dd-wrt.com/wiki/index.php/WOL#Remote_Wake_On_LAN_via_Port_Forwarding.

One word of warning from another RMerlin post though - apparently some NICs/Mobos are reported to not be too picky over the MAC address the magic packet contains so start to randomly wake up when WOL is exposed to the internet. Not something I've seen personally but just in case you get some odd behaviours.

Last edited:

N

Nesalex

Regular Contributor
  • Jan 26, 2022
  • #4

GSpock said:

Have you forwarded the port to the local IP address ? and what is it that you do not understand about ARP ?

Yes, I set up redirects. ARP already know what it is.

N

Nesalex

Regular Contributor
  • Jan 26, 2022
  • #5

eightiescalling said:

I can't find the original config I had for this but simply forwarding to an IP won't work as the host isn't awake to own it.

Last time I did this, I reserved an IP address to forward all packets received on port 9 to and then had an additional arp command added as part of router start up that took anything considered for that IP and turned it to a local broadcast.

I'll come back with the config if I can find it.

Edit: Its for DD-WRT but the basic command arp or ip neigh commands used are at https://wiki.dd-wrt.com/wiki/index.php/WOL#Remote_Wake_On_LAN_via_Port_Forwarding.

One word of warning from another RMerlin post though - apparently some NICs/Mobos are reported to not be too picky over the MAC address the magic packet contains so start to randomly wake up when WOL is exposed to the internet. Not something I've seen personally but just in case you get some odd behaviours.

thx for respond..

In this :

2 - Add a static ARP entry by typing the following line into the Administration -> Commands section of the Web Interface and then saving with Save Startup.

arp -i br0 -s 192.168.1.254 FF:FF:FF:FF:FF:FF

  • Do not change the FF:FF:FF:FF:FF:FF MAC address; this is a special MAC address used when broadcasting. WOL magic packets are constructed using the MAC address of the target computer, but should be and almost always are sent via broadcast; the MAC address used here controls with how the packet is sent, not how it is formed.
  • The 192.168.1.254 IP address should correspond with the IP address you used in the previous step. Again, this IP should be in your LAN's subnet, and you must not assign this IP address to any actual device on your network.
  • Explanation/rationale for this setup: Normally, WOL magic packets are sent to a special broadcast IP--to the final .255 in a subnet or to 255.255.255.255. Since port-forwarding to these special dedicated broadcast IPs does not work, what we need to do is create our own broadcast IP by taking an unused IP and assigning it a broadcast MAC and then port-forward to that.
  • As an optional alternative, instead of arp, you can use ip neigh (which does the exact same thing as arp). Support for ip neigh was removed from DD-WRT starting with build 17650, and arp is unavailable in DD-WRT builds older than 5672.

ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0
ip neigh add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0

In RT-AC68U i dont have Commands section.. I didn't find the command section anywhere in the menu. Do you think it could work via putty - SSH?
For arp -i br0 -s 192.168.1.254 FF:FF:FF:FF:FF:FF or ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0

Port forward is active on UDP/ 9/ 192.168.1.254

E

eightiescalling

Senior Member
  • Jan 26, 2022
  • #6

Couple of stupid questions first.... Subnet the router is configured for as DHCP is 192.168.1.x and the DHCP pool is limited to not hand out 192.168.1.254 - correct? If you're using a different IP range for your LAN then update the IP accordingly.

If that's the case and the port forward is in place you should be able to run the arp command logged in via ssh and then test. Note that this will need to be re-done after a reboot so a start-up script to wrap it.

N

Nesalex

Regular Contributor
  • Jan 26, 2022
  • #7

eightiescalling said:

Couple of stupid questions first.... Subnet the router is configured for as DHCP is 192.168.1.x and the DHCP pool is limited to not hand out 192.168.1.254 - correct? If you're using a different IP range for your LAN then update the IP accordingly.

If that's the case and the port forward is in place you should be able to run the arp command logged in via ssh and then test. Note that this will need to be re-done after a reboot so a start-up script to wrap it.

The DHCP range is 192.168.1.2 to 192.168.1.254

Sorry I don't quite understand this sentence - Note that this will need to be re-done after a reboot so a start-up script to wrap it.

I'm a layman inexperienced and I don't understand some obvious things...

Now I will try to use the command arp -i br0 -s 192.168.1.254 FF:FF:FF:FF:FF:FF or this if the previous one will not work ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0

E

eightiescalling

Senior Member
  • Jan 26, 2022
  • #8

Nesalex said:

The DHCP range is 192.168.1.2 to 192.168.1.254

Sorry I don't quite understand this sentence - Note that this will need to be re-done after a reboot so a start-up script to wrap it.

I'm a layman inexperienced and I don't understand some obvious things...

Now I will try to use the command arp -i br0 -s 192.168.1.254 FF:FF:FF:FF:FF:FF or this if the previous one will not work ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0

OK, reduce the DHCP range so it only goes up to 192.168.1.253 - you don't want the router allocating out the .254 address otherwise it will start broadcasting all traffic destined for that machine to the whole network.

The arp command should do the job - it won't make a permanent change to the configuration though and will be lost whenever the router reboots. Others will be better placed than me to suggest the best point to add the line in to make sure it kicks in on start up - the last time I did this I was able to use the web UI to add the line (which doesn't look like an option now) but can't remember if I was on ASUS/Merlin firmware at the time or not.

N

Nesalex

Regular Contributor
  • Jan 26, 2022
  • #9

After enter. Can I check if this has been applied? Or I will use ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0 ?

Attachments

  • ARP.jpg

    43.9 KB· Views: 148

E

eightiescalling

Senior Member
  • Jan 26, 2022
  • #10

You can check using

Code:

arp -a

You should see an entry for 192.168.1.254

N

Nesalex

Regular Contributor
  • Jan 26, 2022
  • #11

ouuuuuuu. It works. Big thanks. As you write, just need to make it work even after the restart Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (7)

someone some solution?

J

Jeffrey Young

Very Senior Member
  • Jan 26, 2022
  • #12

EDIT: Forgot to mention, this is for Merlin users.

You will need to enable scripts and then make a /jffs/scripts/services-start script.

You may have to put the arp commands in the /jffs/scripts/firewall-start script if you find that the arp table is flushed on a firewall restart. You will have to experiment with this one;

Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (8)

User scripts

Third party firmware for Asus routers (newer codebase) - RMerl/asuswrt-merlin.ng

Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (9)github.com

N

Nesalex

Regular Contributor
  • Jan 26, 2022
  • #13

Jeffrey Young said:

EDIT: Forgot to mention, this is for Merlin users.

You will need to enable scripts and then make a /jffs/scripts/services-start script.

You may have to put the arp commands in the /jffs/scripts/firewall-start script if you find that the arp table is flushed on a firewall restart. You will have to experiment with this one;

Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (10)

User scripts

Third party firmware for Asus routers (newer codebase) - RMerl/asuswrt-merlin.ng

Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (11)github.com

uffSolved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (12) ... I can experiment just in bed only Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (13). In the first link of this thread I put a link where eibgrad created the script and I knew how to do everything automatically. If someone wrote a similar script .... Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (14)

N

Nesalex

Regular Contributor
  • Jan 27, 2022
  • #14

Anyone know to create the above script? Or modify this working script which works on my RT-AC68U to create a services-start script with the necessary arp -i br0 -s 192.168.1.254 FF:FF:FF:FF:FF:FF ?

Something like this http://www.snbforums.com/threads/wol-with-request-from-internet-rt-ac68u.76595/post-735310

N

Nesalex

Regular Contributor
  • Jan 28, 2022
  • #15

Many thanks to EIBGRAD for resolving my request.

In the original script: http://www.snbforums.com/threads/wol-with-request-from-internet-rt-ac68u.76595/post-735310

Need to add arp -i br0 -s 192.168.1.254 FF:FF:FF:FF:FF:FF

Right behind this command:

# wait for *reliable* internet connection
until ping -qc1 -W3 8.8.8.8 &>/dev/null; do sleep 10; done

Now it works wonderfully. Launch the device from the Internet via WOL based on a request for access via a specified port or by sending a magic packet using one of the WOL services. Excellent. Big thanks...

You must log in or register to reply here.

Solved - WOL - Wake on Lan over the Internet - magic packet RT-AC68U 386.4 (2025)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Ms. Lucile Johns

Last Updated:

Views: 6118

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Ms. Lucile Johns

Birthday: 1999-11-16

Address: Suite 237 56046 Walsh Coves, West Enid, VT 46557

Phone: +59115435987187

Job: Education Supervisor

Hobby: Genealogy, Stone skipping, Skydiving, Nordic skating, Couponing, Coloring, Gardening

Introduction: My name is Ms. Lucile Johns, I am a successful, friendly, friendly, homely, adventurous, handsome, delightful person who loves writing and wants to share my knowledge and understanding with you.