I am on Centos 6.9 with fail2ban 0.9.6. I have the below SSH jail but after restarting fail2ban it is not enabled when running fail2ban-client status.
The conf I used is /etc/fail2ban/jail.local. I have multiple jails in there.
[ssh]
enabled = true
filter = sshd
action = iptables-multiport[name=SSH, port="2222", protocol=tcp]
maxretry = 3
logpath = /var/log/secure
bantime = 86400
Any help much appreciated.
Thanks.
UPDATE
I got it resolved after all.. It was the space in front of the directives.