Fail2ban not working #238

Closed
opened 2026-04-05 20:26:09 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @TheMukeshPatel on 5/22/2024

CloudPanel version(s) affected

v2.4.2

Description

Fail2ban is not working on the latest CloudPanel v2.4.2 that on Ubuntu 24.

How to reproduce

Installed the latest Cloudpanel using the Installer script. On this fresh installation, Fail2ban not working.

`root@Ubuntu-24:~# systemctl status fail2ban
× fail2ban.service - Fail2Ban Service
Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Wed 2024-05-22 15:59:15 UTC; 6min ago
Duration: 289ms
Docs: man:fail2ban(1)
Main PID: 25572 (code=exited, status=255/EXCEPTION)
CPU: 147ms

May 22 15:59:15 Ubuntu-24 systemd[1]: Started fail2ban.service - Fail2Ban Service.
May 22 15:59:15 Ubuntu-24 fail2ban-server[25572]: 2024-05-22 15:59:15,478 fail2ban.configreader [25572]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'
May 22 15:59:15 Ubuntu-24 fail2ban-server[25572]: 2024-05-22 15:59:15,529 fail2ban [25572]: ERROR No module named 'asynchat'
May 22 15:59:15 Ubuntu-24 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
May 22 15:59:15 Ubuntu-24 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
`

Possible Solution

No response

Additional Context

No response

*Originally created by @TheMukeshPatel on 5/22/2024* ### CloudPanel version(s) affected v2.4.2 ### Description Fail2ban is not working on the latest CloudPanel v2.4.2 that on Ubuntu 24. ### How to reproduce Installed the latest Cloudpanel using the Installer script. On this fresh installation, Fail2ban not working. `root@Ubuntu-24:~# systemctl status fail2ban × fail2ban.service - Fail2Ban Service Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Wed 2024-05-22 15:59:15 UTC; 6min ago Duration: 289ms Docs: man:fail2ban(1) Main PID: 25572 (code=exited, status=255/EXCEPTION) CPU: 147ms May 22 15:59:15 Ubuntu-24 systemd[1]: Started fail2ban.service - Fail2Ban Service. May 22 15:59:15 Ubuntu-24 fail2ban-server[25572]: 2024-05-22 15:59:15,478 fail2ban.configreader [25572]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto' May 22 15:59:15 Ubuntu-24 fail2ban-server[25572]: 2024-05-22 15:59:15,529 fail2ban [25572]: ERROR No module named 'asynchat' May 22 15:59:15 Ubuntu-24 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION May 22 15:59:15 Ubuntu-24 systemd[1]: fail2ban.service: Failed with result 'exit-code'. ` ### Possible Solution _No response_ ### Additional Context _No response_
Sign in to join this conversation.