Suppose that you have a NAS in your home network that you would like to power on only when needed, to get some documents you have stored on it, and that you don’t have other devices active on the home network to which you can connect in order to use WOL, wouldn’t it be useful to be able to use WOL from the Internet? How can we produce a broadcast frame on the internal LAN from the public network? You can find more info on WOL on Wikipedia. BTW, I will use UDP port 9 in the examples. Usually the magic packet is an UDP packet with destination port 0, 7 or 9, but this is not mandatory. When the powered off device’s ethernet card detects this special frame, it powers up the device. What does it make this packet magic? The fact that it must contain the Mac Address of the device to be woken up, repeated 16 times. This broadcast frame is processed by all the hosts on the lan segment. WOL is usually done by generating a packet with destination IP address the broadcast address of the network (in a common 192.168.0.0/24 network, it is directed to 192.168.0.255 or 255.255.255.255), which produces an ethernet frame with FF:FF:FF:FF:FF:FF destination mac address. Some network devices and PCs can listen for incoming special packets on their ethernet interfaces even when shutdown, and this is used to allow them to be powered up with a special magic packet, which is used by Wake-On-Lan (from now WOL).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |