Quantcast
Channel: FreePBX - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 17428

Fail2ban recidive filter - System Admin Intrusion Detection

$
0
0

Hi there,

Question regarding the fail2ban’s filter ‘recidive’ :slight_smile:
Below is the default configuration

[recidive]
# recidivist.
#
#  Noun: A convicted criminal who reoffends, especially repeatedly.
#
enabled  = true
filter   = recidive
logpath  = /var/log/fail2ban.log*
action   = iptables-allports[name=recidive, protocol=all]
     sendmail[name=recidive, dest=support@[domain.com, sender=notifications@domain.com]
bantime  = 604800  ; 1 week
findtime = 86400   ; 1 day
maxretry = 20

By looking for all fail2ban log files (/var/log/fail2ban.log*) it generates an issue. For example, IP 192.168.1.1 was banned for 2 days because of a bad REGISTER, but today the issue is fixed on the client’s end. Even we remove the IP from the banlist (System Admin > Intrusion Detection) the IP will be banned again by ‘recidive’ jail.

The solution is to remove all the old fail2ban logs or add the IP to the whitelist and wait a few days before removing it from the whitelist.

For the situations where the real bad requests keep coming in and we need to ban an IP for a longer period, okay I understand, but in my sample it’s a little bit overkills no? :slight_smile:

Greets,

17 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 17428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>