shell# echo '
[sshd]
enabled = true
filter = sshd
action = iptables-multiport
logpath = /var/log/auth.log
maxretry = 3
bantime = -1
' > /etc/fail2ban/jail.d/sshd.conf
shell#cat path_to_old_ip.blacklist | while read IP; do fail2ban-client set sshd banip $IP; done
sqlite3 /var/lib/fail2ban/fail2ban.sqlite3
sqlite> select * from bans;
done! much easier this time around