SAIL Community Supported PBX

SAIL Forums => Debian => Topic started by: compsos on November 14, 2018, 10:49:58 PM

Title: Solved: Fail2ban failing to start
Post by: compsos on November 14, 2018, 10:49:58 PM
If the logs or a systemctl restart fail2ban errors, look at the file /etc/fail2ban/jail.local and modify as below


[asterisk]
enabled  = true

#[asterisk-udp]
#enabled  = true

It seems there is no longer a asterisk-tcp or asterisk-udp definition only asterisk

Or copy  cp /opt/sark/etc/fail2ban/jail-jessie.local  /opt/sark/etc/fail2ban/jail-stretch.local
nano /opt/sark/etc/fail2ban/jail-stretch.local as above
relink /etc/fail2ban/jail.local to /opt/sark/etc/fail2ban/jail-stretch.local
Title: Re: Solved: Fail2ban failing to start
Post by: sysadmin on November 19, 2018, 03:41:00 PM
Thank you, good input.   We are doing some stretch testing for V6 at the moment so I'll take a look at it.   
Title: Re: Solved: Fail2ban failing to start
Post by: compsos on June 13, 2019, 09:07:41 AM
Still the same in V6
Change the /opt/sark/etc/fail2ban/jail-jessie.local file to
[asterisk]
enabled  = true

or better stilll make a new file jail-stretch.local
and relink /etc/fail2ban/jail.local to the new file
restart fail2ban
Title: Re: Solved: Fail2ban failing to start
Post by: sysadmin on July 30, 2019, 11:00:11 AM
We are just about to test a new V6 point release with a fix in it for this.   Yes, we can link a file but the issue is the content.   It is different for wheezy, jessie and stretch.  Painful.   Moreover, we have to leave the file undisturbed because the jail.local file has to be available to the user to add her own changes.

I'll post once we've cut the release and done some testing 

Title: Re: Solved: Fail2ban failing to start
Post by: sysadmin on November 19, 2019, 05:26:04 PM
This all seems to working OK now on Debian and Ubuntu.   Latest repo release is -47 at time of posting but -49 isn't far behind.  It's in testing now.