Networking Forums

Networking Forums > Computer Networking > Linux Networking > catch magic packet

Reply
Thread Tools Display Modes

catch magic packet

 
 
IS
Guest
Posts: n/a

 
      10-17-2006, 08:00 PM
Hello,

I probably have in my network a machine who is sending a magic packet
to power on a machine.
To stop this problem I turn off the WOL in this machine.
But I would like to know who is sending this "magic packet".

How can I find the magic packet sender ?


 
Reply With Quote
 
 
 
 
ipnwsec
Guest
Posts: n/a

 
      10-17-2006, 11:19 PM

hi,

put an ethernet sniffer, and also try connecting all the machines to a
hub and watch the packet on siffer.

thanks,
http://geocities.com/sunil3112000

On Oct 17, 1:00 pm, IS <isimoes.no...@laposte.net> wrote:
> Hello,
>
> I probably have in my network a machine who is sending a magic packet
> to power on a machine.
> To stop this problem I turn off the WOL in this machine.
> But I would like to know who is sending this "magic packet".
>
> How can I find the magic packet sender ?


 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      10-18-2006, 07:56 PM
On Tue, 17 Oct 2006, in the Usenet newsgroup comp.os.linux.networking, in
article <(E-Mail Removed)>, IS wrote:

>How can I find the magic packet sender ?


A "Magic Packet" is any Ethernet packet that contains at least sixteen
repeats of the 'target' MAC address. If the Ethernet address of a target
computer is 01:02:03:04:05:06 (6 bytes), then the LAN controller of that
machine should be looking for the following sequence
FFFFFFFFFFFF01020304050601020304050601020304050601 0203040506
01020304050601020304050601020304050601020304050601 0203040506
01020304050601020304050601020304050601020304050601 0203040506
010203040506010203040506
inside the frame. Do you have 'ngrep' on your system?

[compton ~]$ whatis ngrep
ngrep (8) - network grep
[compton ~]$

If not, use any packet sniffer you have, and save the data to a file which
you can then 'grep' for the sequence of several repetitions of the MAC
address. Once you find that, look at the source MAC address, and then in
your ARP cache to see which computer is the source.

Note that the "Magic Packet" may be a packet with _any_ protocol (TCP,
UDP, ICMP, IPX, Appletalk, XNS - it doesn't matter). Most of the current
implementations use either ICMP or UDP because other protocols require a
handshake before data transfer. If you are using a packet sniffer, I
would not specify a protocol, but would look for packets with a destination
address of the "target" system (although the "Magic Packet" format does not
require that the Ethernet packet destination be that of the target - the
packet need only be seen on the wire).

Old guy
 
Reply With Quote
 
IS
Guest
Posts: n/a

 
      10-19-2006, 05:35 PM
Thanks a lot for this documentation!
I'm going to test this week!

>>How can I find the magic packet sender ?

>
>A "Magic Packet" is any Ethernet packet that contains at least sixteen
>repeats of the 'target' MAC address. If the Ethernet address of a target
>computer is 01:02:03:04:05:06 (6 bytes), then the LAN controller of that
>machine should be looking for the following sequence
> FFFFFFFFFFFF01020304050601020304050601020304050601 0203040506
> 01020304050601020304050601020304050601020304050601 0203040506
> 01020304050601020304050601020304050601020304050601 0203040506
> 010203040506010203040506
>inside the frame. Do you have 'ngrep' on your system?
>
>[compton ~]$ whatis ngrep
>ngrep (8) - network grep
>[compton ~]$
>
>If not, use any packet sniffer you have, and save the data to a file which
>you can then 'grep' for the sequence of several repetitions of the MAC
>address. Once you find that, look at the source MAC address, and then in
>your ARP cache to see which computer is the source.
>
>Note that the "Magic Packet" may be a packet with _any_ protocol (TCP,
>UDP, ICMP, IPX, Appletalk, XNS - it doesn't matter). Most of the current
>implementations use either ICMP or UDP because other protocols require a
>handshake before data transfer. If you are using a packet sniffer, I
>would not specify a protocol, but would look for packets with a destination
>address of the "target" system (although the "Magic Packet" format does not
>require that the Ethernet packet destination be that of the target - the
>packet need only be seen on the wire).
>
> Old guy


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Magic packet technology, router aging muthusnv@gmail.com Network Routers 0 02-07-2008 03:22 PM
Domain with catch-all forwarding Joe Soap Broadband 27 11-11-2006 08:59 AM
Catch-22: DNS <=> Comcast registration J Krugman Linux Networking 3 05-16-2004 04:31 AM
magic packet Chris Home Networking 4 01-30-2004 10:31 PM
Sending wake on lan magic packet through adsl router Graham Russell Broadband 6 10-24-2003 02:55 PM



1 2 3 4 5 6 7 8 9 10 11