iptables

Open a port for a single MAC address

$ sudo ufw enable
$ sudo /sbin/iptables -A INPUT -p tcp --destination-port <port> -m mac --mac-source <mac_address> -j ACCEPT 
Edit