Answer the question
In order to leave comments, you need to log in
Fail2ban How to configure regex expression?
fail2ban-server -V
Fail2Ban v0.9.7
There was a need to restrict access to port 873 on the server, I sketched a config:
fail2ban/jail.d/rsyncd.conf
[rsyncd]
enabled=true
port=873
filter=rsyncd
logpath= /var/log/
rsyncd.log maxretry=3
findtime=600
bantime=3600
[Definition]
failregex = \auth failed on module .* from .* \(\/) for .*: password mismatch
ignoreregex =
2019/10/02 09:19:29 [104094] connect from UNDETERMINED (10.20.15.18
) mismatch
failregex = \auth failed on module .* from .* \(\/) for .*: password mismatch
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question