fail2ban add ip manually
Posted on November 9, 2015 • 1 minutes • 117 words • Suggest Changes
My love for fail2ban is slowly decreasing, I had a problem a while ago, while fixed, it was not easy to find. (see fail2ban 0.9.9 with centos 6.7 not adding ips to firewall) Today, again, I noticed that my
iptables -L was empty, while my
/var/log/secure was full (~70k lines, in one day) and fail2ban was doing absolutly nothing … 🙁
I thought my older version of iptables (16.el6, 1.4.7) was the cause again, but it seems its not. Since I can use fail2ban to add ip’s to iptables. I found the command, on the website by the original patch creator 🙂 Great tool if you wanne ban a range quickly!
fail2ban-client set ssh-iptables banip 123.456.789.001