Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Dec 192009

Ban a remote IP Address using iptables


iptables -A INPUT -s IP -j DROP

Replace IP with the actual remote IP address.

Note that the blocking will be lost when server reboot. You would need to save the rule(s) into a script and reload when server reboot.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>