一半君的总结纸

听话只听一半君

如何从”网际网路“远程唤醒Synology NAS ( WOL over internet)

显然在本地局域网 官方的ds finder就可以,或者如果你有tomato / dd-wrt enabled的router也行(登录到webui有带这个菜单的),但是试了下如果在外面,想通过ds finder或是某些工具都不行,所以一直在用登录到tomato的webui,然后填mac地址,再按wakeup的脑残法


其实应该这样,
在tomato的页面Administration -> scripts里的Init页面添加如下内容

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

或者

sleep 5
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

192.168.1.254是一个不会用到的地址,之后只要在port forwarding里把 wol 的 port 指向
192.168.1.254就可以了,之后就可以用任何一个wol软件来wol over internet了

但是如dd-wrt wiki页面所写,视dd-wrt的版本而定,某些版本移除了arp或ip neigh的支持.

人肉备份自WOL over internet help
以及在DSLReports搜索”Permanent ARP DD-WRT”可得到上述方法的解释

edit: 科学解释在此
Remote Wake On LAN via Port Forwarding

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.

自测页面:
depicus – just another nerd on the interweb…

syno

syno1

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: