1

Topic: fail2ban status not OK

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 14.04.4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- Related log if you're reporting an issue:
====

I had a blocked ip in my fail2ban. So i would like to exclude this ip.

so i edit /etc/fail2ban/jail.conf

after that i did service fail2ban restart
But that would not work :-(

I get the status and this is the output

---------------------
service fail2ban status
* Status of authentication failure monitor                                               *  /var/run/fail2ban/fail2ban.sock not readable, status of fail2ban is unknown
---------------------
service fail2ban start
* Starting authentication failure monitor fail2ban                                       * Socket file /var/run/fail2ban/fail2ban.sock is present
                                                                                  [fail]

when i open this file it's empty ...

So i undo my changes, but still my fail2ban is down.

Are my actions correct ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: fail2ban status not OK

Don't touch jail.conf, edit /etc/fail2ban/jail.local instead.

3

Re: fail2ban status not OK

Sorry for the trouble  ... but can i have some example file of jail.conf

I can't set my fai2ban service to active

4

Re: fail2ban status not OK

iRedMail creates /etc/fail2ban/jail.local during installation, please check it.

5

Re: fail2ban status not OK

Ok i replaced my jail.conf file.

and it's running again.


Only i have a question about restarting

sudo /etc/init.d/fail2ban status

or

sudo service fail2ban start

is this the same ?

6

Re: fail2ban status not OK

Kris01 wrote:

/etc/init.d/fail2ban status

'status' is used to check service status. To restart a service, you need 'restart':

service fail2ban restart