Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail2ban 0.11.2-8 crushing on 24.10.0-rc5 - r28304-6dacba30a7 #25787

Open
michalperth opened this issue Jan 19, 2025 · 5 comments
Open

fail2ban 0.11.2-8 crushing on 24.10.0-rc5 - r28304-6dacba30a7 #25787

michalperth opened this issue Jan 19, 2025 · 5 comments

Comments

@michalperth
Copy link

michalperth commented Jan 19, 2025

Hi, I'm very new to OpenWRT and basic in Linux, so please be patient.
I installed fail2ban on the OpenWRT ONE and it runs ok if none of the jails are enabled. Even single enabled, will crush the service.
The only things I found so far is in the system log:
daemon.info procd: Instance fail2ban::instance1 s in a crash loop 7 crashes, 1 seconds since last crash
and:
[5653]: INFO Connected to fail2ban persistent database '/var/lib/fail2ban/fail2ban.sqlite3'
2025-01-19 12:14:55,738 fail2ban.database [5653]: WARNING New database created. Version '4'
in the fail2ban log.

Any single one enabled, will just crush the service.
For example the single entry in the jail.local:

[sshd]
enabled = true
mode = normal
port = ssh
logpath = %(sshd_log)s
backend = %(sshd_backend)s

All the other settings are from the not altered fail2ban standard config files for now.

Thanks.

@tojestzart
Copy link

tojestzart commented Jan 21, 2025

try banip instead, fail2ban has lack of features as far i renember anyway

@michalperth
Copy link
Author

Ok, thanks for the suggestion, I will certainly have a look in to it. I tried the fail2ban because I'm bit familliar with it, it is banning hundreds of IPs on my other Raspberry CM4 based router (running Raspbian).
New challange I suppose (My Linux knowlwdge is very basic).
Cheers.

@michalperth
Copy link
Author

hmmm, does banip actually scans the logs and adds bans automatically to the iptables rules as fail2ban does, or you need to add the IPs manually?
Thanks

@tojestzart
Copy link

tojestzart commented Jan 22, 2025

ask on our forum eko.one.pl as far i know it bans by filters + patterns + ranges + ????
or directly developer on his thread https://forum.openwrt.org/t/banip-support-thread/16985/

@michalperth
Copy link
Author

Ok, thanks Mr. "to jest żart" 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants