Linux‎ > ‎Iptables‎ > ‎

Block/Allow

Linux Iptables Block or Allow IP

Block or Allow a source IP in iptables

sudo iptables -I INPUT -s 24.1.180.89 -j DROP
sudo iptables -I INPUT -s 24.1.180.89 -j ACCEPT
Comments