LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-19-2007, 08:21 AM   #1
matthias_k
LQ Newbie
 
Registered: Nov 2004
Posts: 16

Rep: Reputation: 0
Sending a wake-on-lan packet over the internet


Hi,

I couldn't find any instructions how to use e.g. ether-wake to wake up my server over the internet. The command expects only a MAC address.

Any ideas?

Thanks,
Matthias
 
Old 11-19-2007, 09:39 AM   #2
KrahnacK
Member
 
Registered: Nov 2007
Location: /dev/volcano
Posts: 70

Rep: Reputation: 15
Hi

ether-wake and others need a MAC address cause this must appear in the "magic packet" they will send, i think you can find more info about this on wikipedia (search for WakeOnLan & WakeOnWan)

to find out what's the MAC address of your server, take a look over its network config (with a "ifconfig eth0", for example)

be aware that if connect your server via a router, you cannot wake your server over the internet unless your router can be a WOL proxy. This means that your router must be configured to automatically forward the magic packet to your server, otherwise your server will not wake over the internet (but this will work inside your LAN, if you have one)

hope this helps,
if my explications aren't clear, so don't hesitate to tell me.
 
Old 11-19-2007, 11:38 AM   #3
matthias_k
LQ Newbie
 
Registered: Nov 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Hi,

a friend of mine sent me this link: http://www.dslreports.com/faq/6790

To use WOL over the internet, you will have to forward UDP port 9 to the broadcast address of your local subnet. Because any requests incoming on port 9 are broadcasted, each client in the network (including the server) will receive the UDP packet and inspect the ARP frame it is wrapping. The MAC in the ARP packet then only matches that of the server, and the server's NIC can interpret the WOL request.

This is how it's supposed to work. However, I am not sure if my router allows me to forward ports to a broadcast address. Gotta check that out when I'm back home.
 
Old 11-19-2007, 11:40 AM   #4
matthias_k
LQ Newbie
 
Registered: Nov 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Oh and, of course you need a tool other than ether-wake, because ether-wake cannot send the WOL magic packet as a UDP packet to a designated host. It's ethernet-only. There are programs, scripts and even website that do this however (e.g. http://www.dslreports.com/wakeup).
 
Old 11-19-2007, 06:45 PM   #5
KrahnacK
Member
 
Registered: Nov 2007
Location: /dev/volcano
Posts: 70

Rep: Reputation: 15
i can see you know the drill

can't remember properly of ether-wake, but there are programs (like wake-on-lan), which create directly the UDP magic packet
or, as you said, there are websites that allow people to send this packet

the port 9 is a standard for this use, however you can choose any which is more comfortable for you (the port number is only used by the OS, and at this state, there is no OS running yet). So in conclusion what you have to check is if your router support WOW...

mine, for example, doesn't () because it considers that for a packet to be forwarded, there must be a service running behind the scene, listenning to the port the packet is designed to. In the WOW case, there isn't such a service cause there isn't any software running behind the router (this is the point of Wake On Wan, after all)...so even if i can make a rule that forwards packets from port 9 to local broadcast, the router doesn't forward the packet cause it can't see any service listening to this port (dummy thing...)

good luck with yours
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wake on lan magic packet does not wake. albean Linux - Networking 1 06-30-2007 04:57 PM
Any success with Wake On Lan over the internet? Maverick1182 Linux - Networking 24 12-06-2006 01:28 AM
Boot up (wake on lan) and shut down PC over internet - how? arrenlex Linux - Networking 2 03-27-2006 08:22 PM
Whats a magic packet (wake on lan) (in terms of routability, and security) qwijibow Linux - Hardware 1 01-28-2005 07:52 PM
wake-on-lan PlatinumRik Linux - Hardware 1 04-09-2003 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration