To ban a ip command these:

iptables -D OUTPUT -p all -s IP.ADDRESS.HERE -j DROP
iptables -D INPUT -p all -s IP.ADDRESS.HERE -j DROP

To unban:

iptables -D INPUT -p all -s IP.ADDRESS.HERE -j DROP

and save and restart the service:

service iptables save
service iptables restart

vps

Add A Comment

Your email address will not be published. Required fields are marked *

CAPTCHA

*