rajasekarramasamy
asked on
Block list of client based on MAC address using IPTables
I want to block list of client who accessing the port TCP 8080. Blocking based on MAC address. I having MAC details in text file. It possible to give the MAC input to iptables from a text file?
while read i; do iptables -A INPUT -p tcp -m tcp --dport 8080 -m mac --mac-source "$i" -j DROP; done < mac_list.txt
ASKER
Hi tty2,
where should i put this script?
where should i put this script?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.