Ban or Unban Ip is Iptable

Premium services since 2010

Trusted by thousands of businesses worldwide • 99.9% Uptime Guarantee • Crypto Accepted

Table of Contents

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