All of lore.kernel.org
 help / color / mirror / Atom feed
* Filtering on MAC Addresses
@ 2005-02-04 13:58 Michael Thompson
  2005-02-04 14:36 ` Jörg Harmuth
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Thompson @ 2005-02-04 13:58 UTC (permalink / raw)
  To: netfilter

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.








^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-02-04 15:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-04 13:58 Filtering on MAC Addresses Michael Thompson
2005-02-04 14:36 ` Jörg Harmuth
2005-02-04 15:04   ` Michael Thompson
2005-02-04 15:08   ` Michael Thompson
2005-02-04 15:18     ` Michael Thompson

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.