The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    WOL behind 2 routers

    Discussion in 'Networking and Wireless' started by CrappyAlloy, Mar 10, 2011.

  1. CrappyAlloy

    CrappyAlloy Notebook Evangelist

    Reputations:
    73
    Messages:
    675
    Likes Received:
    0
    Trophy Points:
    30
    Hey guys I hope this is the right place for this, as Ive been having some troubles recently with a new setup.

    Well I decided to turn my custom desktop into a server/remotedesktop for me and my family to use. I have a Verizon FIOS router as the main that leads to a D-Link 825 that most everything else (including this desktop) is connected to.

    Now I had to port forward twice to get the remote desktop and server connections to work (first from the FIOS router, then to the Dlink, finally reaching the desktop). However the problem of course is that this only works when the computer is on, and I dont want to leave it on.

    Yes, I do have WOL enabled in the BIOS and my network adapter is configured correctly (in fact I had it setup so ANYTHING could wake it up, instead of just a magic packet, the result was the computer would wake up intermittently, I solved it by allowing only magic packets to wake it up, but since the change I cant wake it at all, all virus/firewalls are set to full allow for these ports/rules)

    I would prefer to wake it from OFF (hibernate) but from SLEEP will do just fine as well.

    Anyways this is what I have so far. I created a port forwarding rule on the FIOS router to set it to forward, using the UDP policy/command from any port to port 2727 (wanted to get away from the standard port 9 for WOL) to the D link router, then another rule on the Dlink router to forward from port 2727, to 2727 again using UDP to my desktop (correct IP and MAC address)

    When I go to send the packet from say my laptop or phone, I use my IP address (in my mind, visually, this means it (the magic packet) is trying to enter first from the FIOS router as its first in the chain) but what Im also not clear on is: do I use the MAC address of the D link router when I send the packet or the MAC of the desktop? Ive tried both and neither wake the computer. Port 2727

    Ive searched the internet plenty and Ive tried everything I can think of. This is the first time Ive done quite a bit of tinkering network-wise, as well as setting up any sort of server/remote desktop, so any help would be appreciated :)

    Oh and pardon the long read :eek:
     
  2. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    I have set this up before (err actually not behind 2 routers... lol) with a box on the LAN (ideally the router) that has etherwake on it, it's available in certain builds of busybox or as a standalone ipkg for various platforms. This requires ssh access though. If you want to go a step further you can make a php or cgi script that will run the necessary command so that you just need to visit a webpage instead of ssh. Ideally you have this web server set up on the router too.

    The MAC addy has to be for the machine to wake, since this is the only way the magic packet is going to reach it.
     
  3. leslieann

    leslieann Notebook Deity

    Reputations:
    830
    Messages:
    1,308
    Likes Received:
    11
    Trophy Points:
    56
    WOL doesn't support forwarding for security reasons.
    I'm not saying it can't be done in a roundabout way, but it will not work just by port forwarding.

    You need a subnet directed broadcast, and I would imagine, most consumer level routers will not support it.