Is it possible to allow access to specific ports based on MAC address and block access to the ports for the rest?

 This is for incoming connections from out. Basically, we want to have only a list of MAC addresses to access the services on these ports and the rest cannot access these ports. Is this possible?