WOL réveil a distance

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:40, 23 March 2018 (edit)
Ian5142 (Talk | contribs)
(Page Moved.)
← Previous diff
Revision as of 23:40, 23 March 2018 (edit) (undo)
Ian5142 (Talk | contribs)
(Page Moved.)
Next diff →
Line 8: Line 8:
-==WOL Methods== 
-===WOL through Telnet/SSH=== 
-'''Note:''' This is the preferred method to send WOL magic packets remotely. 
-If you have local or remote Telnet/SSH access to your router, you can wake up a machine on the LAN by using the following command: 
- /usr/sbin/wol -i 192.168.1.255 -p PP AA:BB:CC:DD:EE:FF 
- 
-Note that the full path to "/usr/sbin/wol" is important. Simply "wol" will not work. 
- 
-Substitute ''AA:BB:CC:DD:EE:FF'' with the actual MAC address of the computer which you wish to boot remotely. Likewise, replace ''192.168.1.255'' with the actual broadcast address of the network (192.168.1.255 is the broadcast address when the machine has an IP of 192.168.1.x and subnet mask of 255.255.255.0). Replace "PP" with the port number your machine listens on (usually 7 or 9). 
- 
-===Remote Wake On LAN via Port Forwarding=== 
-To remotely wake up a computer over the Internet using ''Wake On LAN''- follow these instructions: 
- 
-1 - Create a [[Port_Forwarding#Configuring_Port_Forwarding|port forward]] rule on the [[Web Interface]] (''Applications & Gaming'' -> ''Port Range Forward'') to the chosen ip: 
- wol | '''9''' | 9 | udp | 192.168.1.254 | x 
-* Here, '''9''' is the default, but you can use any port number so long as your client wake-up application can talk to a port other than 9. Most WOL services will use either UDP port 7 or 9. 
-* 192.168.1.254 is just an IP address in your LAN's subnet; it can be any IP, '''as long as it is not assigned to any device on your network'''. 
- 
-2 - Add a static ARP entry by typing the following line into the ''Administration'' -> ''Commands'' section of the Web Interface and then saving with ''Save Startup''. 
- 
- <tt>arp -i br0 -s 192.168.1.254 FF:FF:FF:FF:FF:FF</tt> 
-* Do '''not''' change the FF:FF:FF:FF:FF:FF MAC address; this is a special MAC address used when broadcasting. WOL magic packets are ''constructed'' using the MAC address of the target computer, but should be and almost always are ''sent'' via broadcast; the MAC address used here controls with how the packet is sent, ''not'' how it is formed. 
-* The 192.168.1.254 IP address should correspond with the IP address you used in the previous step. Again, this IP should be in your LAN's subnet, and you must not assign this IP address to any actual device on your network. 
-* 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. 
-* As an '''''optional''' alternative'', instead of '''<tt>arp</tt>''', you can use '''<tt>ip neigh</tt>''' (which does the exact same thing as <tt>arp</tt>). Support for <tt>ip neigh</tt> was removed from DD-WRT starting with build 17650, and <tt>arp</tt> is unavailable in DD-WRT builds ''older'' than 5672. 
- <tt>ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0</tt> 
- <tt>ip neigh add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0</tt> 
- 
-3 - Reboot the router, or execute the startup commands manually. 
- 
-* To wake your computer from the internet using the DD-WRT device DynDNS name (or if you know it, the public IP of the router), try one of the following services; 
-#[http://stephan.mestrona.net/wol/ Mestrona's online WOL]. You need to forward port 9 udp in step one, to use this service. 
-#[http://www.wakeonlan.me Wake-On-LAN Online]. It works both on ports 7 and 9 and allows WOL by a single URL of the form: http://mobile.wakeonlan.me/?ip=HOSTNAME&mac=MACADDRESS. It also allows for scheduled wakeup over the internet. 
-#To use the WOL Magic Packet application from a second PC: 
-##Host Name: DynDNS name of your DD-WRT device. 
-##Subnet Mask: 255.255.255.255 
-##MAC Address: '''WOL computer MAC address''', not the DD-WRT MAC. 
-##Click the green Send button. 
- 
-===Automatic Wake-On-LAN Daemon=== 
-The Automatic WOL daemon will send out a periodic wake on lan packet at the intervals you specify. This may be useful to keep a system online most of the time even if it is turned off. (eg: A Media Center PC). 
- 
-For Interval you can enter a value in seconds as low as 15 seconds and as high as 86400 seconds (1 day). 
-Host name should be the broadcast address for your LAN. eg: 255.255.255.255 or 192.168.1.255. 
-SecureON Password is computers that have a BIOS feature that secures the WOL function. If you do not have a BIOS that requires this form of password then you can leave the box blank or type in 00-00-00-00-00-00. 
-MAC Address(es) should contain the MAC address of the networked machines you want a WOL to be sent to on your LAN.  
- 
-The packets generated by the WOL daemon are sent to UDP port 40000. You likely will not need to worry about this unless the system you are attempting to send the WOL packet is on another subnet or you are trying to monitor the packets. 
- 
-note: the UI says that the Interval accepts a range of 1-86400 seconds but it will only send out a WOL packet at a minimum of 15 second intervals. All values below 15 are accepted but the interval will still be every 15 seconds. 
- 
-A useful tool for watching the WOL packets on a Windows computer is available at [http://www.depicus.com/wake-on-lan/wake-on-lan-monitor.aspx www.depicus.com/wake-on-lan] (use port 40000 when monitoring) Or you can use a more generic protocol analyzer tool like [http://www.wireshark.org/ Wireshark]. 
- 
-===WOL Scripts=== 
-# Wake up a specific host when triggered from the internet: [[Useful_Scripts#Web_Server_Wake-up|Web Server Wake-up]]. 
-# To wake by name: [[Useful_Scripts#Name-based_WOL_.28wake.sh.29|Name-based WOL]]. 
==See Also (forum discussions)== ==See Also (forum discussions)==

Revision as of 23:40, 23 March 2018

Introduction

Voir ici: Wake-on-LAN_(tutorial)/fr





See Also (forum discussions)

References