fail2ban error messages at startup
I've set up fail2ban on my machine, and tested it by ssh-ing in to work and then back at home with an incorrect password, and iptables gets updated as expected.
The only thing that's bothering me is when I start fail2ban, I get the following errors: Quote:
Any thoughts would be welcome. |
Do you have the 'bantime' variable set? It sounds silly but on the default configuration I don't believe it's implemented. I only have one instance of the variable (in [DEFAULT]), though I'm using it for mail, Apache, et cetera.
|
Here is the relevant section from my /etc/fail2ban/jail.conf file:
Code:
# Fail2Ban configuration file I've tried commenting out all the other filters in jail.conf, but that just results in an error message for just the sshd filter: Code:
WARNING Wrong value for 'bantime' in 'ssh-iptables'. Using default one: '600' As a temporary fix, I've added this to my startup scripts: Code:
# load fail2ban |
I know I'm late, but I went through the same issue just today.
It looks like you are not allowed to put comments after the value. Thus, Code:
bantime = 43200 # set to negative number for permanent ban Code:
bantime = 43200 |
All times are GMT -5. The time now is 08:32 AM. |