Disallow connections from an IP, in one line

Ángel Ortega

If you are having an attack from an IP and want to ban it right now, use this ban_ip script:

ban_ip() { iptables -A INPUT -s $1 -j DROP; }

Comments [Add new one]

None yet.