WOL over internet help

Page 4 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,487
392
126
On one of my Networks I use a different approach.

I leave one computer in deep sleep (it takes less than 10 watts when it sleeps).

This computer has UltraVNC installed as a service with none standard port open to the Internet set with AES encryption and strong PassWord.

The computer 's NIC is set to get it out of sleep On any LAN traffic.

I have the UltraVNC Viewer on Key Chain Flash Drive (no need to remember the PW since it is with the VNC in AES encrypted key).

Sticking the Flash drive to any computer with an Internet connection and starting the VNCviewer would wake the Sleeping computer through the Internet.

Once it is up and running (takes about 10 to 15 sec.) I can do what ever I need on my LAN (including using WOL as a local process) all is done safe through AES encryption from a Flash Drive that does not leave any info on any computer.

P.S. This is what the viewer is consist of.

vncviewer.exe - The VNC Viewr program file
MSRC4Plugin_NoReg.dsm - The AES Encryption Module
rc4.key - The Encrypted Encryption Key

Three files about 1MB in size would run from a flash drive on any Windows based computer, and connects you from any Internet connection in the world.
 

Engineer

Elite Member
Oct 9, 1999
39,230
701
126
Gillbot (and others) that have tried tomato, add this to the custom run command
(go to GUI, <Administration>, <Scheduler>, enable "Custom 1" for every day (I chose Every Minute but may not need but Every Hour, etc) and paste the following)..

ip neigh change YOUR PC IP lladdr YOUR PC MAC nud permanent dev br0
ip neigh add YOUR PC IP lladdr YOUR PC MAC nud permanent dev br0


Change the bolded above to reflect your PC IP (should be a static DHCP entry) as well as the associated PC MAC address (both lines). Make sure to SAVE your entries after entering/changing all of the information.

I selected for this command to run Every Minute but you might be able to change it to a larger number.

Copy and paste as many times necessary for the number of PC's that you wish to enable. This makes the ARP entry permanent for the particular PC MAC / IP combination. I have tested this on one PC and it has worked (using the WOW website in the OP) 10 straight times (where it would be hit or miss before).

You still need the static DHCP entries as well as the port forwarding as before.

--------------------------------------------------------------------------------

Edit: Another possibility is to add the above commands to an "Init" script along with a starting "Sleep 5" command. If this script works properly, there will be no need for the recurring "scheduled" commands above.

Administration
Scripts
Go to the "Init" page.

Sleep 5
ip neigh change YOUR PC IP lladdr YOUR PC MAC nud permanent dev br0
ip neigh add YOUR PC IP lladdr YOUR PC MAC nud permanent dev br0


Save
Reboot the router.

Go to the WOL page (once rebooted) and see if the PC that you're interested in is "Active (ARP)". Click on <Refresh> on the WOL GUI page to make sure the information is up to date.


--------------------------------------------------------------------------------

Edit #2: After getting both of the above solutions working, I did a search for "Permanent ARP DD-WRT" and found a post at DSLReports that is doing what I'm doing above but better...much better.

Add the following to your "init" script (remove everything that was entered previously) and save.

sleep 5
ip neigh change 192.168.0.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0
ip neigh add 192.168.0.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0


The IP (listed) can be any IP in your subnet that you are not going to use (i.e. don't use 192.168.0.254 for any PC in the network).

Now forward ANY UPD port that you like (9 for example) to the same IP listed (192.168.0.254 in the example). Save the forward.

Note: You can also disable any previous forwarded ports that were enabled for all WOL experiments of this thread, lol.

Reboot router.

Go to OP link for sending magic packet. Send magic packet to IP address (from ISP), port used above, MAC of the PC you want to wake up as well as a subnet mask of 255.255.255.255. PC should wake up. You can now wake up ANY pc on your LAN in the same subnet simply by using the forwarded port and MAC address. You no longer need static IP's, static DHCP, or individual forwarded ports. The above commands allow your forwarded port to be "broadcast" to the entire lan. Pretty damn cool, eh?
 

Gillbot

Lifer
Jan 11, 2001
28,830
17
81
Ok, added this to init:
sleep 5
ip neigh change 192.168.123.245 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0
ip neigh add 192.168.123.245 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0

Set a forward for port 2222 to 192.168.123.245, rebooted router.

Went to http://www.depicus.com/wake-on-lan/woli.aspx
entered the desired PC's mac Address
added my dyndns domain to the destination (also tried my raw IP)
set subnet to 255.255.255.255
port set to 2222, magic packet sent, PC did not wake.

EDIT, tried a 2nd time, machine woke!
 

Engineer

Elite Member
Oct 9, 1999
39,230
701
126
Originally posted by: Gillbot
Ok, added this to init:
sleep 5
ip neigh change 192.168.123.245 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0
ip neigh add 192.168.123.245 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0

Set a forward for port 2222 to 192.168.123.245, rebooted router.

Went to http://www.depicus.com/wake-on-lan/woli.aspx
entered the desired PC's mac Address
added my dyndns domain to the destination (also tried my raw IP)
set subnet to 255.255.255.255
port set to 2222, magic packet sent, PC did not wake.

EDIT, tried a 2nd time, machine woke!

Possible that the dyndns hadn't updated yet on the first try (after router reboot)?

For the record, I did not test the last method more than one time. It was late and I was tired and left it at that. I did test method #1 and #2 multiple times (over 15 total) and they worked each and every time but they required a double entry for each PC IP/MAC in the init script section.
 

Gillbot

Lifer
Jan 11, 2001
28,830
17
81
It worked on two machines. I'll let it go and test it through the week and see how it goes.
 

ratchet27

Junior Member
Feb 16, 2009
12
0
0
So what have done incorrectly? Brief history first! I can wake over the internet with Linksys WRT54GS firmware (have now updated to Tomato) until the ARP issue arises (What, like five minutes?). Now that I have installed the Tomato firmware I entered Engineer's script, port forwarded and port triggered, however, no joy. In fact, I normally test this through a VPN on a laptop to mimic being away but just tried it through my network and the Wake On Lan Packet Sniffer doesn't "see" anything. I'm thinking there must be some initial settings that I've missed. Thank You!
 

Gillbot

Lifer
Jan 11, 2001
28,830
17
81
Originally posted by: ratchet27
So what have done incorrectly? Brief history first! I can wake over the internet with Linksys WRT54GS firmware (have now updated to Tomato) until the ARP issue arises (What, like five minutes?). Now that I have installed the Tomato firmware I entered Engineer's script, port forwarded and port triggered, however, no joy. In fact, I normally test this through a VPN on a laptop to mimic being away but just tried it through my network and the Wake On Lan Packet Sniffer doesn't "see" anything. I'm thinking there must be some initial settings that I've missed. Thank You!

Did you set the forward up correctly?

Originally posted by: Gillbot
Ok, added this to init:
sleep 5
ip neigh change 192.168.xxx.xxx lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0
ip neigh add 192.168.xxx.xxx lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0

Set a forward for port x to 192.168.xxx.xxx, rebooted router.

Went to http://www.depicus.com/wake-on-lan/woli.aspx
entered the desired PC's mac Address
added my dyndns domain to the destination (also tried my raw IP)
set subnet to 255.255.255.255
port set to x, magic packet sent, PC did not wake.


You need to set up the script in init and port forward to point to an UNUSED ip on your network.
 

Gillbot

Lifer
Jan 11, 2001
28,830
17
81
Originally posted by: ratchet27
Ah! I set the script IP to .254 instead of the pc IP! Will test again tomorrow, thank you!

NO!

You need to set the script to ANY UNUSED IP.

Edit #2: After getting both of the above solutions working, I did a search for "Permanent ARP DD-WRT" and found a post at DSLReports that is doing what I'm doing above but better...much better.

Add the following to your "init" script (remove everything that was entered previously) and save.

sleep 5
ip neigh change 192.168.0.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0
ip neigh add 192.168.0.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0

The IP (listed) can be any IP in your subnet that you are not going to use (i.e. don't use 192.168.0.254 for any PC in the network).

Now forward ANY UPD port that you like (9 for example) to the same IP listed (192.168.0.254 in the example). Save the forward.


Note: You can also disable any previous forwarded ports that were enabled for all WOL experiments of this thread, lol.

Reboot router.

Go to OP link for sending magic packet. Send magic packet to IP address (from ISP), port used above, MAC of the PC you want to wake up as well as a subnet mask of 255.255.255.255. PC should wake up. You can now wake up ANY pc on your LAN in the same subnet simply by using the forwarded port and MAC address. You no longer need static IP's, static DHCP, or individual forwarded ports. The above commands allow your forwarded port to be "broadcast" to the entire lan. Pretty damn cool, eh?
 

ratchet27

Junior Member
Feb 16, 2009
12
0
0
Ok, so before I mess with this again, I'd appreciate some more guidance with this maddening affair. I've actually been attempting this on and off for probably nine months or better. As I previously stated, I can wake for a short period over the internet with several magic packet senders, including PCnet from AMD and through several websites. Anyway, my router IP (never had this in the mix, but thought I'd check) is 192.168.1.1, Subnet Mask 255.255.255.0 and available IPs 192.168.1.100 to .149 I only want to wake one PC, i.e. (.100). Do I need the routers MAC for anything or just the PCs? Never involved the routers, however, with Tomato I'm not sure if it's IP would be involved or not. Thank You!
 

Engineer

Elite Member
Oct 9, 1999
39,230
701
126
Originally posted by: ratchet27
Ok, so before I mess with this again, I'd appreciate some more guidance with this maddening affair. I've actually been attempting this on and off for probably nine months or better. As I previously stated, I can wake for a short period over the internet with several magic packet senders, including PCnet from AMD and through several websites. Anyway, my router IP (never had this in the mix, but thought I'd check) is 192.168.1.1, Subnet Mask 255.255.255.0 and available IPs 192.168.1.100 to .149 I only want to wake one PC, i.e. (.100). Do I need the routers MAC for anything or just the PCs? Never involved the routers, however, with Tomato I'm not sure if it's IP would be involved or not. Thank You!

Add this...

Add the following to your "init" script (remove everything that was entered previously) and save.

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


Save.

Now go to port forwarding and forward ANY UPD port to 192.168.1.254 (UDP port 9 for example).

Save.

Reboot router.

Test using magic packet sender (need your outside IP address and MAC address of PC trying to wake up).
 

Engineer

Elite Member
Oct 9, 1999
39,230
701
126
Originally posted by: ratchet27
http://img172.imageshack.us/my...e=screenshot001ep8.jpg]
[/URL]
http://img172.imageshack.us/my...e=screenshot003hf8.jpg]
[/URL]
http://img17.imageshack.us/my....e=screenshot004vh2.jpg]
[/URL]
So I can't even get to first base with Tomato. Where have I gone wrong?
Edited PS: I changed all the IP entries to my actual IP (.100) and it worked, however, it remains to be seen if it will work 15, 30, or 60 minutes from now!

From your photos, you have the ip forwarded to 192.168.0.254 and not 192.168.1.254. The IP in the script must be 192.168.1.254 (or any 192.168.1.xxx address that is not used. Also, you must use an internal and external port on the fowrard (you are forwarding an external port but not specifying which internal port to forward it to).

The xxx.xxx.0.254 will not work. You must use xxx.xxx.1.254 for your network to work properly.
 

ratchet27

Junior Member
Feb 16, 2009
12
0
0
1.254 worked! Now it would be a miracle if this is the last set of questions but here goes: Do I need to set a static IP and if so .100 or .254? Do I need to set a lease time, if so how long and I don't see that field in Tomato. Thank you again!
 

Engineer

Elite Member
Oct 9, 1999
39,230
701
126
Originally posted by: ratchet27
1.254 worked! Now it would be a miracle if this is the last set of questions but here goes: Do I need to set a static IP and if so .100 or .254? Do I need to set a lease time, if so how long and I don't see that field in Tomato. Thank you again!

There is no need to set a static IP (unless you want to) for anything. Your PC's will now wake with the magic packet based on the MAC address in the packet. The 1.254 address is a permanent ARP table entry now because of the script placed in the router. That is the reason that it works and the others did not (at least for more than 20 minutes). The ARP tables dropped them out after about 20 minutes or so and the router no longer forwarded a port to them to wake them up.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |