1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wake on lan over OpenVPN

Discussion in 'Tomato Firmware' started by M_ars, Nov 5, 2011.

  1. M_ars

    M_ars LI Guru Member

    Hi,
    i am having problems to wake up my remote computers. Right now i wake up the computers via the tomato gui (under tools --> wol). That is working. But i would like to do this in windows.
    Can someone tell me a free wake on lan programm/tool ? (layer 3?)
    What settings do i have to use? thx :D
     
  2. lancethepants

    lancethepants Network Guru Member

  3. M_ars

    M_ars LI Guru Member

    I could shh into the router, but i dont want to spread the routers pw. I would like to use the openvpn connection to wake up my clients. Is there some way to trigger wol of the router itself?
     
  4. lancethepants

    lancethepants Network Guru Member

    Yes

    echo "/usr/bin/ether-wake 01:23:45:67:89:AB" > /tmp/home/root/wakeup-mycomputer.sh

    You can place this in "Administration" -> "Scripts" -> "init"
    Just replace it with the mac address and call it whatever you want.
    You will need to telnet or ssh into the router to do this however.
    Not sure what you mean by spread the router's password, unless you stored it in a script. You could also setup ssh keys, which wouldn't require your password, and would make everything a little more automated. That second link I put explains how I automated it in windows using cygwin. You could also easily wake all the computers you want at the push of a button on an android phone.
     
  5. M_ars

    M_ars LI Guru Member

    Yes, i dont like the script with pw. Thx for your tipps - i will try that :)

    Yesterday i played around with wake on lan and found out something weird

    1. I turned on the connection plug board, so that the WRT54GL can power up. All other pc are ready to boot but still turned off (The pcs are connected to the connection plug board like the WRT54GL)
    2. If I try to wake up the pc via WOL (Tomato GUI) i does not work
    --> very strange? i dont know why the pc doesnt start

    Moving on
    3. Turning on the pc by pushing the power button --> Pc starts
    4. Shutting down the pc again

    ---> surprisingly
    5. If I try to wake up the pc via WOL (Tomato GUI) i does work now :)

    I can reproduce this every time. So why cant i wake up the pc for the first time it is actullay connected to the power supply? After turning on --> turning off the pc everything works perfect :)

    Can someone explain that??
     

Share This Page