Since I may not be successful with my WOL project using ASUSWRT (http://forums.smallnetbuilder.com/showthread.php?t=19403) i'm considering installing ASUSWRT-merlin instead.
The WIKI has a WOL script (https://github.com/RMerl/asuswrt-merlin/wiki/WOL-Script-Wake-Up-Your-Webserver-On-Internet-Traffic), but as far as I can tell, that script would wake the PC on any traffic to the PC (even a port-scan). I would still want to require the WOL magic packet for waking my PC.
The static ARP entry still seems to be the best solution. I imagine that this would be much easier on the ASUSWRT-merlin. I.e. a script could be put in jffs/scripts/ to setup the ARP entry on power-up.
So. An ARP script is needed. I think the best place to put it would be in nat-start. Or is there a better place?
How do i execute arp from the script? Could I just put:
#!/bin/sh
arp -s <IP> <MAC>
..in the nat-start and done?
Thank you.
Edit: I'm having another thought: Is it possible with ASUSWRT-merlin to make a NAT entry that would cause the incoming magic packet to be broadcastet on the LAN? In this way I wouldn't have the need for a static ARP entry and static IP address of the target PC. My attempts to do this with ASUSWRT has been unsuccessful, but there may be a way with ASUSWRT-merlin?
The WIKI has a WOL script (https://github.com/RMerl/asuswrt-merlin/wiki/WOL-Script-Wake-Up-Your-Webserver-On-Internet-Traffic), but as far as I can tell, that script would wake the PC on any traffic to the PC (even a port-scan). I would still want to require the WOL magic packet for waking my PC.
The static ARP entry still seems to be the best solution. I imagine that this would be much easier on the ASUSWRT-merlin. I.e. a script could be put in jffs/scripts/ to setup the ARP entry on power-up.
So. An ARP script is needed. I think the best place to put it would be in nat-start. Or is there a better place?
How do i execute arp from the script? Could I just put:
#!/bin/sh
arp -s <IP> <MAC>
..in the nat-start and done?
Thank you.
Edit: I'm having another thought: Is it possible with ASUSWRT-merlin to make a NAT entry that would cause the incoming magic packet to be broadcastet on the LAN? In this way I wouldn't have the need for a static ARP entry and static IP address of the target PC. My attempts to do this with ASUSWRT has been unsuccessful, but there may be a way with ASUSWRT-merlin?
Last edited: