How to involve MAC Address in IPtables Rule

How can i add the mac address restriction to this rule ?

-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 22 -s 200.75.XXX.XXX --syn -j ACCEPT

Thanks to you all !
Who is Participating?
danieldgConnect With a Mentor Commented:
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 22 -s 200.75.XXX.XXX -m mac --mac-source 01:02:03:04:05:06 --syn -j ACCEPT

Note this won't protect you from someone on the same switch/hub, mac addresses are not hard to forge.

The following thread has a discussion similar to what you are trying to do:

- Will
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.