Frequently Asked Question
Block Ip Using Iptables
Last Updated 9 days ago
Blocking an IP using iptables on Centos
This is a fairly simple and easily accomplished process. We use the iptables command thus:
iptables -I INPUT -s xxx.xxx.xxx.xxx -j DROP
Upon execution, the INPUT ip address specified is DROPed.
You can view the rules currently setup for iptables using the command
iptables -L