Results 1 to 3 of 3

Thread: Wake on Lan (over internet)

  1. #1
    Join Date
    Oct 2007
    Location
    San Diego, CA
    Beans
    155
    Distro
    Ubuntu 10.04 Lucid Lynx

    Wake on Lan (over internet)

    Ok i have been searching for a while on how to get WOL over the internet. I have a server which i only use for development and would rather it not be on all the time. But i need to be able to access it when im out

    I have WOL working over the LAN. SO next step is internet.

    Ubuntu 10.04 LTS
    Last edited by ductiletoaster; September 10th, 2010 at 02:33 AM.

  2. #2
    Join Date
    Oct 2007
    Location
    San Diego, CA
    Beans
    155
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Wake on Lan (over internet)

    Ok i figured it out on my own after alot of trial and error.

    Here is my setup:
    Code:
    INTERNET <-> ROUTER <-> WIRELESS BRIDGE <-> SERVER
    
    Server Specs: 
    Ubuntu 10.04 LTS 64bit
    AMD Athlon 3700
    2gb Ram
    
    Router Specs:
    Linksys WRT54G
    Firmware DD-WRT v24 mini
    
    Bridge Specs:
    Linksys WRT54G
    Firmware DD-WRT v24 micro
    Ok so Im goin to keep updating this post with information regarding WAKE ON LAN

  3. #3
    Join Date
    Oct 2007
    Location
    San Diego, CA
    Beans
    155
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Wake on Lan (over internet)

    Wake On Lan Guide:

    Recommended: For Steps Two and Beyond this guide assumes your system is behind a router installed with DD-WRT firmware. However this guide may work for other systems.


    Remote Wake On LAN Local Only

    Step One: Start with this great guide by Chris Tucker
    http://ubuntuforums.org/showthread.php?t=234588

    Summary: This guide works for Wake on Lan (no internet) however if you want to be able to wake on lan from anywhere continue on.

    Remote Wake On LAN via Port Forwarding

    Step Two:
    Login into your router and go to the port forwarding section and input the following.

    Code:
    wol  |  9  |  9  |  udp  |  xxx.xxx.x.xxx  | Enable
    Where the xxx.xxx.x.xxx replace with the static Ip for your computer that you want to wake. Some guides also tell you to put the broadcast IP however I found that didn't work for me.

    Step Three:
    Add a static ARP entry. You will need to add the following lines under the commands section of your router.

    Code:
    ip neigh change xxx.xxx.x.xxx lladdr [MAC ADDRESS] nud permanent dev br0
    ip neigh add xxx.xxx.x.xxx lladdr [MAC ADDRESS] nud permanent dev br0
    Where the xxx.xxx.x.xxx replace with the static Ip for your computer that you want to wake. Replace where it says MAC ADDRESS with the mac address of the machine you want to wake. Be sure to reboot your router before testing.

    Step Three Alternate:
    If after step three you still can't connect then try these alternate cmds.

    Code:
    ip neigh change xxx.xxx.x.xxx lladdr ff:ff:ff:ff:ff:ff  nud permanent dev br0
    ip neigh add xxx.xxx.x.xxx lladdr ff:ff:ff:ff:ff:ff  nud permanent dev br0
    The only difference is that im using the broadcast mac address instead of the machines mac address. This is what I did.

    Reference: http://www.dd-wrt.com/wiki/index.php/WOL

    Step Four:
    If you have a static external IP then you are all set. However, if you are like the rest of us then you probably have a Dynamic Ip. You then need to sign up for a service like that provided by dyndns.com. Once you have either determined that your under a static IP or have signed up for a dynamic service then you can proceed to testing.

    Wake Up with static IP:
    Code:
    wakeonlan -i 12.345.67.890 01:23:45:67:89:ab
    Wake Up with Domain or Dynamic Service (DynDns):
    Code:
    wakeonlan -i domain.dyndns.com 01:23:45:67:89:ab
    Make sure to replace the values.

    Status: Incomplete. I wont consider this complete until I can solve some of connection issues I'm having. The wak on lan works but for some reason it seems to not allow reliable connections on any other port. Now this could be just because of how my system is setup.

    Summary: This guide is no more than a representation of how I managed to some how get wake on lan over the internet working. unfortunately I am having troubles with connections now so obviously i messed something up. Ill continue to update this guide and then re-post it in its completed form when I am finished. Please use the wonderful references I have linked too they will be an essential part of your adventure.
    Last edited by ductiletoaster; September 10th, 2010 at 02:34 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •