Filtering on MAC Addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.








[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux