Announcement

Collapse
No announcement yet.

[SOLVED] - wake on lan/via the internet

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] - wake on lan/via the internet

    Right,

    since the plethora of replies to my previous attempt at getting help only served to confuse me here another try.

    Has anybody got wake on lan or preferably wake via the internet working? If so, would you like to share your experiences? I'm just trying to set it up and need all the help I can get. If anybody else is the same position we could work together...

    Cheers
    Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

    #2
    Re: wake on lan/via the internet

    http://packages.debian.org/stable/net/etherwake

    any use to you?
    Using:<br />Mint Kubuntu 7.10 (kde4 dual core 2.2ghz 4gb)<br />Freenas (nx6325 hp laptop)<br />Mint Gnome 7.10 (EEE Pc 4g white 1 gb ram)

    Comment


      #3
      Re: wake on lan/via the internet

      Cheers eggbanjo,

      packages I have installed so far:

      ethtool - server side
      wakeonlan - client side

      Looks like etherwake does the same as wakeonlan.

      Just found out that magic packets, the ones which wake up an enabled computer, are raw packages and can thus only be sent via lan, not the internet. But they can be inserted in these so that they can be sent to a router via the internet.

      Now the router has to adjusted to forward magic packets. Here we can say that blessed are those who own a Linux router. The others either have the capability or have to buy a new router. I belong to the former (Linux is soooooooo cool) and I now have to figure out how to hack the router into submission

      Watch this space...
      Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

      Comment


        #4
        Re: wake on lan/via the internet

        Server side recap

        AFAIK you cannot wake up a wireless box, but a wired box can definitively be woken up by a wireless one.

        You need to make sure that your BIOS supports wake on lan and enable it.

        Also adjust your /etc/network/interfaces so get assigned a stable ip address in your own network. Here is a copy of mine for reference.
        Code:
        # The loopback network interface
        auto lo
        iface lo inet loopback
        address 127.0.0.1
        netmask 255.0.0.0
        
        # The primary network interface
        allow-hotplug eth0
        iface eth0 inet static
        address 192.168.178.25
        netmask 255.255.255.0
        gateway 192.168.178.1
        
        auto eth0
        Everything from "# The primary network interface" onwards makes my router assign this box the ip address 192.168.178.25

        Now for the next stage.

        BIOS works, so I enabled wol on the server side by installing ethtool. Here is how.
        Install ethtool
        Code:
        sudo apt-get install ethtool
        Use ethtool to check whether your network card supports wol.
        Code:
        dicker:~# ethtool eth0
        Settings for eth0:
            Supported ports: [ TP MII ]
            Supported link modes:  10baseT/Half 10baseT/Full
                        100baseT/Half 100baseT/Full
            Supports auto-negotiation: Yes
            Advertised link modes: 10baseT/Half 10baseT/Full
                        100baseT/Half 100baseT/Full
            Advertised auto-negotiation: Yes
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 1
            Transceiver: internal
            Auto-negotiation: on
            Supports Wake-on: pg
            Wake-on: g
            Current message level: 0x000000c5 (197)
            Link detected: yes
        As you can see I'm using eth0, your mileage may vary but you can find out which card you are using by a simple
        Code:
        sudo ifconfig
        Select the if (interface) with a proper IP number next to it. If in doubt, ask.

        From the above the following two lines are important
        Code:
            Supports Wake-on: pg
            Wake-on: g
        If you get a g in them you can proceed.

        Insert the following into your /etc/rc.local to enable wol support even after a reboot
        Code:
        ethtool -s eth0 wol g
        Take care to select the right interface.

        That is it, your computer is ready to be woken up over your internal network.

        More to follow...
        Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

        Comment


          #5
          Re: wake on lan/via the internet

          Congrats...

          And nice 'How to' too
          Using:<br />Mint Kubuntu 7.10 (kde4 dual core 2.2ghz 4gb)<br />Freenas (nx6325 hp laptop)<br />Mint Gnome 7.10 (EEE Pc 4g white 1 gb ram)

          Comment


            #6
            Re: wake on lan/via the internet

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

            There's how to do it from the internet, what i really would like is to be able to do it from a wireless laptop, but doesn't look like it can be done
            Using:<br />Mint Kubuntu 7.10 (kde4 dual core 2.2ghz 4gb)<br />Freenas (nx6325 hp laptop)<br />Mint Gnome 7.10 (EEE Pc 4g white 1 gb ram)

            Comment


              #7
              Re: wake on lan/via the internet

              I'm doing it right now, left home, switched the box off, went to a mate's, logged myself into his wireless via my laptop, went to a web page and sent a magic packet to my dyndns and logged myself in my desktop with nx nomachine as if I were on my desktop

              What you appear not to be able to do is wake up a box at home which is not wired to the router. At the server end you need a cable :P

              But it is all down to your router 'cos that has to know where to forward the packet to.

              As for a howto for routers - hardly possible 'cos they are all proprietary. Even if they run on Linux - documentatihon is hard to come by. Only a solid community of hackers (or an enlightened company) can help you. I had it easy, a good community

              FYI - I've got a fritz.box, a German AVM router which runs on Linux. You can invoke telnet (not normally on for safety reasons) via the telephone (ain't that weird), install a lightweight ssh server called dropbear, kill telnet and you end up with a very basic cli interface including a version of everybody's favourite command line editor, vi 8)

              But info for your own router is best gained from the relevant forum...

              Once the router is properly configured to forward the magic packet to the correct local ip address you're laughing. And yes, the server should not be on dhcp, which I believe I didn't mention beforehand - have modified previous post to make it more comprehensible.

              If you can think of more to put in there or can make it easier to understand please tell.
              Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

              Comment


                #8
                Re: wake on lan/via the internet

                One thing to add to this useful thread:

                when switching NICs, we ran into this issue:

                http://ubuntuforums.org/showthread.p...ht=replace+nic

                ...i.e. we had to wipe the entry/entries in /etc/udev/rules.d/70-persistent-net.rules so the machine could use the new NIC and not stay bound to the previous MAC address. Otherwise the new cards didn't function. (mentioned here since swapping cards is a likely activity when configuring WOL).

                The trouble we're now having is that our 3Com 3c905-TX is workng fine, but ethtool doesn't show either the "Supports Wake-on" or "Wake-on" lines. (I know it supports it because it has a WOL cable attached to our motherboard). Thus we can't turn it on with ethtool. We tried the trick of booting into XP, enabling it, and then yanking the power, etc, but no change. Also tried adding the line "options 3c59x enable_wol=1" to the modprobe options file, no change.

                It's an old thread, but if anyone has any tips, much appreciated... we're still hacking away at it...

                -c

                Comment

                Working...
                X