目前,我正在与Ubuntu机顶盒的WOL设置进行斗争。这个想法是让一个HTTP / SVN服务器在不使用时休眠,并在访问它时唤醒。到目前为止,LAN唤醒可以正常工作,并在启动时被激活:
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pg
Wake-on: pg
Current message level: 0x0000003f (63)
Link detected: yes
如您所见,我还设置了wol p
标志(“身体活动唤醒”)。我的假设是,我可以说服设备不仅在魔术包上唤醒,而且在任何网络访问下都唤醒。但是,这似乎是错误的。
那么,这个标志是什么意思,以及:(如何)我可以将其误用于我的邪恶计划?
注意:这个问题是从这里开始的4岁以上的交叉帖子。不知道为什么超过4年后会得到赏金,但可能收到了狼包;-)
该ethtool的手册说:
wol p|u|m|b|a|g|s|d...
Set Wake-on-LAN options. Not all devices support this. The
argument to this option is a string of characters specifying
which options to enable.
p Wake on phy activity
u Wake on unicast messages
m Wake on multicast messages
b Wake on broadcast messages
a Wake on ARP
g Wake on MagicPacket(tm)
s Enable SecureOn(tm) password for MagicPacket(tm)
d Disable (wake on nothing). This option clears all previous
options.
PHY活动是指PHY芯片,它处理OSI模型的物理层上的通信。用外行术语来说:任何直接发送到此网络设备的软件包都应唤醒计算机。
在唤醒PHY工作之前,应满足以下条件:
NETDOWN=no
中/etc/default/halt
)。另请注意,默认arp超时为30秒(另请参见此SU post)。在那之后,目标计算机的IP地址将被您从中发送任何物理包的计算机所忘记。确保在您发送包裹的机器上设置了一个静态arp地址。
现在,任何直接请求(ping,http,ssh,wol软件包等)都可以启动您的计算机。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句