iptables filter mac address

Mick Genie ever guide how to allow and block IP, port, etc from iptables, however there is another option which is to block or allow mac address.

MAC address stand for Media Access Control Address and it could be specifically for a network.

To block a mac address, simply run from shell.

iptables -A INPUT -m mac –mac-source 00:11:22:FF:33:EE -j DROP

Published by

Mick Genie

Mick Genie is the founder of and working at ExaBytes Network Sdn Bhd and WPWebHost web host company. He is expertise in Windows and Linux environment especially web hosting related information, tips and trick as well as the IT Information.