How to ban IP address from the server?

Posted by at 19 October, at 10 : 16 AM Print

Login to the server

su- root

for ip tables –

iptables -A INPUT -s -j DROP

For APF firewall is installed –

apf -d

after rebooting, the ban will be removed and in case if you have APF, to open the deny host files, type in the following –

pico /etc/apf/deny_hosts.rules

At the bottom, put in the IP address, thereafter save changes.

To restart APF,

/etc/apf/apf -r

Be Sociable, Share!

Latest posts by shane (see all)

Industry News Tutorials Web Hosting

Related Posts

Post Your Comment

You must be logged in to post a comment.