From: Michael Thompson <mike@thompsonmike.co.uk>
To: netfilter@lists.netfilter.org
Subject: Filtering on MAC Addresses
Date: Fri, 04 Feb 2005 13:58:21 +0000 [thread overview]
Message-ID: <42037F7D.2070804@thompsonmike.co.uk> (raw)
I am trying to filter on MAC addresses and have alittle problem.
I use a rule like the following
/sbin/iptables -A MACALLOW -p ALL -i eth0 -m mac --mac-source
'MACADDRESS' -j ACCEPT
Where MACADDRESS is replaced by the MAC CODE of the machine.
However, the MAC address that the Network card uses is not being used by
IPTables. It tries to use a larger MAC Code, which appears to be two mac
addresses pinned together.
So if I use the MAC code of 00:10:5a:14:50:db, it gets rejected because
IPTables uses the MAC Code of 00:09:5b:1b:52:77:00:10:5a:14:50:db:08:00
Which does not match obviously. So why is IPTables using this, and how
can I get round it to use IPTables MAC Code rules?
Many Thanks for any help you can offer
Mike.
next reply other threads:[~2005-02-04 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-04 13:58 Michael Thompson [this message]
2005-02-04 14:36 ` Filtering on MAC Addresses Jörg Harmuth
2005-02-04 15:04 ` Michael Thompson
2005-02-04 15:08 ` Michael Thompson
2005-02-04 15:18 ` Michael Thompson
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=42037F7D.2070804@thompsonmike.co.uk \
--to=mike@thompsonmike.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.