I'd like to wake-on-lan from wan, but can't seem to get it working. It works from lan, ie. from my laptop, where I've set MAC to the mac address of the sleeping computer, I can do
$ wol $MAC
and it starts up. It also starts up with the broadcast IP specified, like so:
$ wol -i 192.168.1.255 $MAC
I've tried translating the DD-WRT tutorial at http://www.dd-wrt.com/wiki/index.php/WO … Forwarding into OpenWRT terms. I added the following firewall redirects in luci:
UDP wan:0.0.0.0/0:* Device:0.0.0.0/0:9 lan:192.168.1.254:9 DNAT UDP wan:0.0.0.0/0:* Device:0.0.0.0/0:7 lan:192.168.1.254:7 DNAT
and used the following /etc/rc.local:
# Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. 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 exit 0
After installing the ip package so those commands would work, and rebooting, the command "arp" shows a new entry
192.168.1.254 0x1 0x6 ff:ff:ff:ff:ff:ff * br-lan
so it seems the ip commands did work. But still wake-on-lan does not.
Anyone have a clue how to fix/debug this?
Running Backfire (10.03.1-RC5, r27608) on a Netgear WNDR3700v2, if it matters.
(Last edited by unhammer on 11 Dec 2011, 16:10)