How to allow some mac addresses in firewall/filter rules

I know a little about how internet works:) I’m not that much un-familiar with this concept because of my work, but up to my knowledge, I tried to figure out the docs and do but I 've not yet succeded.