WRT54GL/Tomato 1.28 WOL Issues

Discussion in 'Tomato Firmware' started by AA280213, Apr 14, 2013.

  1. AA280213

    AA280213 Serious Server Member

    I ask for assistance because I failed to find any satisfactory solution to my - seemingly simple - problem.

    I have:
    Win XP Home SP3 on 2 desktop PCs, Ethernet connected w/WRT54GL 1.1, running DD-WRT but currently Tomato 1.28, one laptop PC from which I used to WoW (not Wake-on-LAN; all is OK inside my tiny LAN but of no practical use to me) controlled one of the desktops over the Internet using an application - from wherever I've been i Europe.
    I also have semi-static IP - my ISP changes it once every ~ 12 months.

    The after re-installation of my XP and loading SP3, my router fails to wake my PC on WAN.

    I tried:
    All I can imagine - removing SP3, switching to Linksys' firmware, different DD-WRTs and now Tomato 1.28 - this is the "biggest" Tomato that WRT54GL can handle.
    I also - obviously - forwarder a port for WoN and 2 ports for my remote control application plus set this:

    MAC Address IP Address Status Name
    MY:NIC's:MAC Active (In ARP) MY PC'S-NAME

    in the TOOLS/WOL section of my Tomato 1.28.

    The real problem: Magic Packet sent from my laptop (over the Internet) does not wake my desktop few minutes after putting it to sleep/hibernate/OFF and all advises I found push me into blind (for me -:)) alleys, into areas I am not competent in - lots of unknown (to me) terms, typing scripts in places often obvious to higher priests of networking but not to me.

    So, is there a simple step-by-step method of setting-up my duo "WRT54GL & Tomato 1.28" that prevents it from forgetting that my sleeping target PC NIC's IP and MAC are paired?

    I enclosed a text file - relevant part of the router's log, formatted for better reading and with my remarks - though all I can understand in it is my NIC's MAC - which replaced - explained in the file.

    Thank you all,

    Vladek (Wladyslaw Moroz) NIC: AA280213

    Attached Files:

  2. koitsu

    koitsu Network Guru Member

    There are multiple methods/models of Wake On LAN that can be used, and it's dependent upon the NIC used within the device which you wish to wake up (e.g. your desktop). Some support "magic packets" that can be destined to the broadcast address on a network, others require "magic packets" that have to be sent to either the NIC's specific MAC address or the special MAC address ff:ff:ff:ff:ff:ff. Furthermore, the syntax/format of the "magic packet" is also variable, and also depends upon the NIC used. Finally, it's also very common for WoL capability to be enabled in a system BIOS -- if you can't find something that talks about WoL capability, you will need to ask your motherboard manufacturer for details (or if you do not know the motherboard manufacturer, then the system vendor/manufacturer).

    If the NIC vendor does not disclose all of this information, then that's bad. You need to contact them to get details. Sometimes there are hidden details within the Advanced tab of the NIC itself in Windows. I can show you an example if you want, but there is never documentation there, just pulldowns that don't give you enough information.

    It is generally not possible to forward packets of this type across the Internet, or through a router, and have them work, given the nature of how the WoL protocol works and the security implications. Wake On LAN does not always use a "port number" -- it's NIC vendor-dependent upon how they choose to implement it.

    My recommendation for solving your problem is to SSH into your router, then initiate a Wake On LAN request from there (you can install Entware and use some third-party utilities to accomplish this -- there are a couple WOL utilities that support lots of the above methods/implementations I described). My personal favourite is the utility called wol: http://ahh.sourceforge.net/wol/ but sadly wol is not a package on Entware.

    Attached is the documentation that comes with wol. I've included it as a way to verify my statements -- hopefully you'll understand that WoL is not something as simple/black-and-white as you might think.

    Entware offers a package called etherwake that supposedly can do this: http://man.cx/etherwake(8)

    There is also highly technical information here: http://wiki.wireshark.org/WakeOnLAN

    Good luck.

    P.S. -- Your Subject line of this thread is so incredibly misleading that I'm considering asking a moderator to change it; nothing is "forgetting ARP", even in your own log example. Nothing is forgetting ARP. Period.

    Attached Files:

  3. gfunkdave

    gfunkdave LI Guru Member

    What about just using ether-wake from the ssh terminal? It's built in to Tomato (at least, TOastman's version).

    ether-wake [-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC
  4. Monk E. Boy

    Monk E. Boy Network Guru Member

    A slightly more "friendly" method (at least if you find GUIs more friendly than CLIs) would be to enable the web server on the WAN port (be sure to use a strong password for the admin account!) and use it to send a WOL packet to the sleeping/powered off system.

    More than likely when you reinstalled XP you failed to configure the "allow this device to bring the computer out of standby" value in your network card driver.
  5. gfunkdave

    gfunkdave LI Guru Member

    More friendly but a lot less secure. Far far better to use key-based SSH to connect over the internet and port forward a local port to port 80 on the router's LAN interface.
  6. Monk E. Boy

    Monk E. Boy Network Guru Member

    Indeed, but I have a sneaking suspicion OP needs to use a GUI for everything. I may be wrong.

    Er, wait a minute, can a key-based ssh be configured from the Tomato website? I've never tried...
  7. gfunkdave

    gfunkdave LI Guru Member

    Yup. You need to generate the key using something besides Tomato, but the GUI has a space for pasting the public key in and disabling password auth.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice