hello i wanted accept ports by mac address so here is the command
iptables -I INPUT 1 -p tcp -m tcp --dport 1723 -j DROP
iptables -I INPUT 1 -p tcp -m tcp --dport 1723 -m mac --mac-source 00:11:22:33:44:55 -j ACCEPT
now, i have several machine using same NIC that have same range of mac addresses.
so would this command work? or could someone correct me?
iptables -I INPUT 1 -p tcp -m tcp --dport 1723 -m mac --mac-source 00:11:22:*:*:* -j ACCEPT
Thanks.