Skip to contentSkip to conversation

MAC Address filtering

DISCUSSION Allan Parreno 2 participants 2 messages Feb 15, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

Can send me a sample on how to filter the MAC address. Example:

Computer1:  99:99:99:99
Computer2:  98:98:98:98
Computer3:  97:97:97:97

Now I want those computers1,2 and 3 can access the net, all others will be block.

Thanks in advance

____________________________________________________________________________________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail

#1 lore raw
Quoted 3 lines · Allan Parreno
Computer1:  99:99:99:99
Computer2:  98:98:98:98
Computer3:  97:97:97:97

MAC addresses are 48 bits long, thus 6 hexa digits couples, not 4...

Quoted 2 lines

Now I want those computers1,2 and 3 can access the net, all others will be block.

Just have to match their MAC address for an ACCEPT rule.

iptables -m mac --help

Signature · 2 lines
http://sid.rstack.org/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
Quoted 2 lines
Quoted 2 lines

Hi! I'm your friendly neighbourhood signature virus. Copy me to your signature file and help me spread!