Re: WakeOnLAN across WAN



In article <6ep8fgF835n8U1@xxxxxxxxxxxxxxxxxx>,
Adrian C <email@xxxxxxxxxxxx> wrote:

David Sankey wrote:

If your router remembers where the relevant machine is (which is what
you circumvent by going to a broadcast packet).


Nope and yeah :-)

The magic packet by definition has a broadcast frame* and is carried
over the internet as such to the external IP of the router. The router
can direct "port forward" this broadcast packet to the specific
interface. Hence "Subnet Directed Broadcast".

It does not mean the need to broadcast it to every machine on the subnet
- it's just a packet which looks like a broadcast!

* - http://en.wikipedia.org/wiki/Wake_on_lan

Well, as that wikipedia page says: "The Magic Packet is a broadcast
frame containing anywhere within its payload 6 bytes of ones FF FF FF FF
FF FF followed by sixteen repetitions of the target computer's MAC
address."

The important thing is this payload. What you need is that a packet is
visible on the network interface of the machine which you wish to wake
which contains (somewhere) this specific data.

You achieve this either by having the switch in your router remember
which LAN port this machine had been on, or by broadcasting it to all
ports.

That at the time it is woken the machine has no IP address is not
important, what is important is the network activity on its network port.

If you have port forwarding already defined, I would certainly try a WOL
packet sent to this port on the router's WAN interface. Given the lack
of activity on the LAN there is a chance that the switch remembers which
port previously corresponded to the machine in question (or it might be
possible to disable the flushing of this information).

Or you can see if you can trick your router into broadcasting, by
forwarding any port you like on your external interface to any port you
like on the broadcast address for your LAN (i.e. something like
192.168.0.255).

A final way to frig this with a directed packet is if you have a machine
that is always on on your LAN (in my case, a networked all-in-one). If
you put this machine on a hub (NOT switch) and have the machine to be
woken connected to this hub, it will see the magic packet sent to the
known machine.

Good luck,

Dave
.



Relevant Pages

  • Re: WakeOnLAN across WAN
    ... You don't need to broadcast to the subnet (you just need the machine to ... see the magic packet). ... You don't need to use the 'standard' port (you just need the machine to ... If your router remembers where the relevant machine is (which is what ...
    (uk.comp.sys.mac)
  • RE: Running Ethernet without ARP
    ... This is the overly-short version of how things like the arp ... Again you could use the IP broadcast address and ... and without hand-coded MAC address limiting peer tables, ... receiver endpoint/processor on the public machine, wrap the *entire* packet into ...
    (Linux-Kernel)
  • Re: Newbie help - DHCP
    ... > DISCOVERY packet to UDP port 67. ... Broadcast is needed because the ... > address of the server. ... > the DHCP client daemon is listening. ...
    (comp.os.linux.networking)
  • Re: ipchains log
    ... >explain that the packet was DENYed on interface ppp0. ... >in the TCP header; mostly you can ignore them, ... Source IP of 216.190.255.225 is broadcast address but protocol is not ... Rejected boxes respond ICMP to 62.212.97.194. ...
    (comp.os.linux.security)
  • RE: Win2K Srv sending NBSTAT name query broadcasts to Internet IPs
    ... Time delta from previous packet: ... User Datagram Protocol, Src Port: netbios-ns, Dst Port: netbios-ns ... You are right about broadcast packets, something destined for a specific IP ... to random IP addresses outside of my local network. ...
    (microsoft.public.win2000.networking)