Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 01-19-2005, 08:17 AM   #1
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Whats a magic packet (wake on lan) (in terms of routability, and security)

i have a VNF3-250 motherboard with an onboard realtech network card.

Info gathered from PCI interface
0000:02:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
info gathered from Driver
eth0: RealTek RTL8139 at 0xffffff0000118000, 00:50:70:f5:31:24, IRQ 19
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
I cant find a Wake On Lan socket, to plug the onboard ethernet to the motherboard, and there is no mention
of this procedure in my instruction manual, so i assume that the connection is hard wired on the motherboard. (safe asumtion ?)
(it can be enabled / disabled inthe BIOS)

Even when the computer is powerd off, the Router Link light stays lit, so the network card is remaining on
when the pc if off, (as it should be)

Ive turned On the "Wake on magic packet" on the network card with "ethtool"

And ive downloaded a program to generate a magic packet.

So... the magic question...
the magic packet sends a message telling the computer to power on... okay..

but what IS it ?
ICMP / TCP / UDG / UGMP / Raw IP frame ?

what protocol ?

and will i be able to set my router to forward this packet from the internet oto my machine ?
(my router supports UDP / TCP port forwarding, and DMZ)

am i correct in thinking that if the magic packet is not a standard TCP / UDP packet, it will still get forwarded through DMZ if i set my machine as the DMZ taret ?

ALSO... my network card does not support passwords on the magic packet... how secure is this ?
are there many "magic packets" being flung arount the internet ?

i sometimes get port scanned... do virii / script kiddies often send magic packets to random machines ?

Old 01-28-2005, 06:52 PM   #2
LQ Newbie
Registered: Sep 2004
Location: au.vic.melb
Distribution: Fedora 7 x3, FC6, FC3.
Posts: 27

Rep: Reputation: 15
mini howto on wakeonlan


the magic is that no matter where it appears, it should still activate WOL, ie it is protocol-less. It seems various tools authors encapsulate it in any easy method, eg udp+port no. though this appears to be necessary only to get it through standard IP protocols.

For your card then: if it received:
then it should turn on.

However, on the internet, only IP is transferred. Also, TCP is no good because it requires setting up a connection (including response from the receiver - wake on lan is one way) before sending the payload. So UDP seems like the answer, as long as you pass it through your firewall.

An attacker would need to know your MAC address to be successful, and which port you decided to use. Probably be wise to limit incoming WOLs to IP address you xpect to be at.


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 DennyB Linux - Hardware 1 08-21-2007 07:27 AM
wake on lan upload-3 Linux - Networking 2 06-12-2006 01:00 PM
Wake on LAN tommyknocker Linux - Networking 4 07-26-2005 01:26 PM
wake on lan?? alaios Linux - Hardware 2 08-10-2004 01:04 PM
wake on lan Stex Linux - Networking 7 06-25-2003 11:38 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:27 PM.

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