The KMyFirewall Handbook
Source MAC
The MAC match extension filters packets by Ethernet source address.
iptables ‑A INPUT ‑‑match mac ‑‑mac‑source 12:E4:86:FA:5C:54 ‑j ACCEPT
The address must be in the form XX:XX:XX:XX:XX:XX. This only makes sense for packets coming from an Ethernet device and entering the PREROUTING, FORWARD or INPUT chains.
The option is useful for protection against man in the middle attacks, because it can be combined with the source option. In that combination it can provide protection against ARP spoofing.
Continue with Limit matches.