D-Link Forums

The Graveyard - Products No Longer Supported => Routers / COVR => DIR-655 => Topic started by: mazman on December 29, 2008, 12:39:01 PM

Title: Wake on Lan issues
Post by: mazman on December 29, 2008, 12:39:01 PM
I having an issue using WOL with the DIR655. It seems that sending the magic packet will only wake the pc if it has been asleep just a few minutes. If it's been asleep for 10+ minutes or so, the pc won't wake. I'm running the 1.21 firmware version. Any thoughts on what's up?
Title: Re: Wake on Lan issues
Post by: Fatman on December 29, 2008, 12:50:30 PM
Yes, you can only forward a port to a unicast address.  That address can not be resolved if it has fallen out of the ARP table.  Your only solution is to have to set up some sort of WOL forwarder on your LAN that can send the traffic to a broadcast address, or to manually publish that address on your network.  Neither of which D-Link can really help you with.
Title: Re: Wake on Lan issues
Post by: mazman on December 29, 2008, 04:04:52 PM
Yes, you can only forward a port to a unicast address.  That address can not be resolved if it has fallen out of the ARP table.  Your only solution is to have to set up some sort of WOL forwarder on your LAN that can send the traffic to a broadcast address, or to manually publish that address on your network.  Neither of which D-Link can really help you with.
You explanation is a bit over my head. I am forwarding the WOL packet to a specific pc/ip address. Are you saying that this won't work at with this router?
Title: Re: Wake on Lan issues
Post by: Fatman on December 29, 2008, 04:22:35 PM
Correct, it won't work without at least 1 PC on the LAN with some software designed to get around this problem.

Sorry if I nerded it up a bit much the first time.
Title: Re: Wake on Lan issues
Post by: mazman on December 30, 2008, 03:52:24 PM
Correct, it won't work without at least 1 PC on the LAN with some software designed to get around this problem.

What kind of software is needed?
Title: Re: Wake on Lan issues
Post by: Fatman on December 30, 2008, 04:09:59 PM
Something like a script that takes all incoming traffic on port x and redistributes it as Ethernet traffic to broadcast.  That would be a massive security hole though, a better bet would be searching around online for dedicated remote WOL suites.
Title: Re: Wake on Lan issues
Post by: hackztor on January 02, 2009, 01:06:41 AM
go back to firmware 1.11. Works in there. Under virtual server   port foward  to ip address 192.168.0.255  port 7 or 9 udp depending which one u want to use
Title: Re: Wake on Lan issues
Post by: mazman on January 04, 2009, 08:30:52 AM
go back to firmware 1.11. Works in there. Under virtual server   port forward  to ip address 192.168.0.255  port 7 or 9 udp depending which one u want to use
Thanks for the info but I have a few questions:
1) where to I find firmware 1.11
2) shouldn't I forward to the IP address of the pc I want to wake? What does forwarding to 192.168.0.255 do?
3) Is Dlink going to fix this issue in an upcoming firmware release?
Title: Re: Wake on Lan issues
Post by: funchords on January 04, 2009, 10:21:15 AM
Thanks for the info but I have a few questions:
1) where to I find firmware 1.11
2) shouldn't I forward to the IP address of the pc I want to wake? What does forwarding to 192.168.0.255 do?
3) Is Dlink going to fix this issue in an upcoming firmware release?

#1 ftp://ftp.dlink.com/Gateway/dir655/Firmware/

#2 With 1.21, I tried this 3 ways.  Using the pre-coded entry in Virtual Server, I tried forwarding to a unicast address, which failed after a few minutes (the DIR-655 sent ARP "WHO HAS" messages which is not answered and so the packet dies unforwarded and unlogged!).  Broadcast to 192.168.0.255, which worked every time.  And Broadcast to 255.255.255.255 which failed like unicast did.  (The setting was accepted, even though Javascript complained about the range.)

If you're sticking with 1.21, I would try it using your subnet's broadcast address of 192.168.0.255.  This way the WOL packet is broadcast to MAC FF:FF:FF:FF:FF:FF without any previous ARP "WHO HAS" stuff, so it won't matter if the IP address answers or not or has dropped from the DIR-655's ARP table.   

I didn't try it with 1.11.

#3 I don't work for D-Link, so I can't answer that. 
Title: Re: Wake on Lan issues
Post by: Fatman on January 05, 2009, 08:48:38 AM
It is important that you understand funchords answer to number 2 if you do not please ask for clarification because my answer to number 3 is going to rely on it.

#3 Well my understanding was that we did not currently allow forwarding traffic to a network broadcast address, now I am hearing differently from funchords (who I would bet uses a DIR-655 more than me).  Will this functionality change in the future, probably, the global D-Link trend has been to limit the number of products with this functionality.  Could I give you a definitive answer either way on its future, nope!

If you insist on taking advantage of a security flaw do me a favour though and don't use a well known port for it.  Pick something in the 49152-65535 range.  I don't want to be one of the jerks who sits in forums and tells you people are out to get you, but in this case I would be acting as ill council if I did not tell you this is a bad idea.
Title: Re: Wake on Lan issues
Post by: mazman on January 05, 2009, 04:58:21 PM
But if I use firmware version 1.11, there are no security issues?
Title: Re: Wake on Lan issues
Post by: Fatman on January 06, 2009, 08:38:51 AM
Any time you forward external traffic to a network broadcast address it is a security concern.
Title: Re: Wake on Lan issues
Post by: mazman on January 06, 2009, 01:01:53 PM
Is there still a security concern if I forward to a specific PC's IP address?
Title: Re: Wake on Lan issues
Post by: Fatman on January 06, 2009, 01:17:22 PM
No, but that won't work because that PC will fall our of the ARP table after a specified period (usually like 10 minutes)
Title: Re: Wake on Lan issues
Post by: funchords on January 06, 2009, 03:32:53 PM
Is there still a security concern if I forward to a specific PC's IP address?
The security concern is that a WAN attacker can use WOL to brute-force wake up your LAN machines simply by running through some easily guessed ranges of modern NICs.  On a wireless network, the attacker doesn't need to guess -- they can just sniff (MAC addresses are never encrypted).  Otherwise, the broadcast is simply sent and ignored by the hosts on your machine who aren't listening to the port or who have a different MAC address.  This will take bandwidth, and there might be undiscovered ways to abuse that opening by sending malformed packets. 

If those risks are important to you, then you can mitigate risks like these by knowing what your computer will and won't do when it wakes up in response to a WOL packet (will it require you to log in using a password, will it shut down if you fail to log in, for examples).  You can set the Schedule and Inbound Filter for your virtual server to restrict the acceptance of the magic packet (but be advised that it's UDP and so it's easily spoofed). 

It would probably help people give you advice if we knew what your planned use of WOL is going to be.  For example, if you always keep one machine on in your office or home, it might be more secure to carefully expose a Remote Desktop or SSH port on that machine to the WAN to which you can securely log in and then run WOL software to wake up other machines on the premise from the inside.
Title: Re: Wake on Lan issues
Post by: mazman on January 06, 2009, 07:53:37 PM
funchords,

Thanks for the great explanation.

I often travel, so my intention is to RDP into my "main" desktop computer. With my previous (no deceased) Linksys router, I used WOL to wake the desktop machine and then RDP'd into it. I'm trying to duplicate this with the Dlink router.
Title: Re: Wake on Lan issues
Post by: funchords on January 06, 2009, 10:33:22 PM
You're welcome.  Have you been able to make it work with 192.168.0.255?
Title: Re: Wake on Lan issues
Post by: hackztor on January 08, 2009, 03:31:07 PM
I use version 1.11 because my 1.21 will not let me put in 192.168.0.255 due to some extra html code dlink put in to check addresses.
Title: Re: Wake on Lan issues
Post by: Nnyan on May 29, 2009, 02:21:56 PM
I've reverted back to 1.20 so that I can get WOL working again.  I setup this Virtual Server Rule to wake all my PC's

IP Address:  to 192.168.1.255
Public Port: 9
Private Port: 9
Protocol:  UDP / 17

This one (one per PC) to wake up individual PCs

IP Address:  to 192.168.1.10
Public Port: 4000
Private Port: 9
Protocol:  UDP / 17



I found that http://www.wakeonlan.me/index.php consistently works where others do not.

Title: Re: Wake on Lan issues
Post by: hackztor on May 30, 2009, 12:18:08 AM
Have you tried the one in the tool section on betanews.com .   I created an account their free and it lets u store the mac address and tie it to an alias. This way you dont have to remember the mac address.