Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: mac match
Date: Sat, 24 Apr 2004 09:18:45 +0100	[thread overview]
Message-ID: <200404240918.46402.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <BAY12-F64endgjvM9Kf000022d7@hotmail.com>

On Saturday 24 April 2004 1:02 am, Robert Gil wrote:

> when using the -m mac match.... does it match the mac address based on the
> last hop... or the source of the sender's mac?

MAC addresses are always the last hop.

> is the mac address stored in
> the header of a packet from the original sender?

No - it is in the ethernet frame header, which only exists between two 
machines directly connected using ethernet.

If two machines A and B are connected via a router, then the router will know 
the MAC addresses for A and B, and A will know the MAC address of the router, 
but not the MAC address of B.

If you don't have an ethernet link (or something very similar, such as 
802.11b) then there aren't any MAC addresses at all (eg: PPP).

Regards,

Antony.

-- 
"I estimate there's a world market for about five computers."

 - Thomas J Watson, Chairman of IBM

                                                     Please reply to the list;
                                                           please don't CC me.



      reply	other threads:[~2004-04-24  8:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-24  0:02 mac match Robert Gil
2004-04-24  8:18 ` Antony Stone [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200404240918.46402.Antony@Soft-Solutions.co.uk \
    --to=antony@soft-solutions.co.uk \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox