› VitalPBX Community Support › General Discussion › fail2ban not banning › Reply To: RE: fail2ban not banning
-
- April 15, 2020 at 5:52 am
Try the following:
In the file: /etc/fail2ban/filter.d/asterisk-vpbx.conf, replace the line:
log_prefix= (?:NOTICE|SECURITY|WARNING)%(__pid_re)s:?(?:[C-[da-f]*])? [^:]+:d*( in w+:)?
with:
log_prefix= (?:NOTICE|SECURITY|WARNING)%(__pid_re)s:?(?:[C-[da-f]*])? [^:]+:d*(?:(?: in)? w+:)?
then restart the fail2ban:
systemctl restart fail2ban.service
0