1panel v2 fail2ban 默认配置错误

操作系统:Debian12.10
1Panel 版本:v2 公测版
防火墙:ufw

错误提示:

systemctl status fail2ban

× fail2ban.service - Fail2Ban Service
Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2025-05-31 15:54:22 CST; 6s ago
Duration: 114ms
Docs: man:fail2ban(1)
Process: 6657 ExecStart=/usr/bin/fail2ban-server -xf start (code=exited, status=255/EXCEPTION)
Main PID: 6657 (code=exited, status=255/EXCEPTION)
CPU: 103ms

May 31 15:54:22 Store-Master systemd[1]: Started fail2ban.service - Fail2Ban Service.
May 31 15:54:22 Store-Master fail2ban-server[6657]: 2025-05-31 15:54:22,608 fail2ban.configreader [6657]: WARNING ‘allowipv6’ not defined in ‘Definition’. Using default one: ‘auto’
May 31 15:54:22 Store-Master fail2ban-server[6657]: 2025-05-31 15:54:22,618 fail2ban [6657]: ERROR Failed during configuration: Have not found any log file for sshd jail
May 31 15:54:22 Store-Master fail2ban-server[6657]: 2025-05-31 15:54:22,623 fail2ban [6657]: ERROR Async configuration of server failed
May 31 15:54:22 Store-Master systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
May 31 15:54:22 Store-Master systemd[1]: fail2ban.service: Failed with result ‘exit-code’.
root@Store-Master:~# systemctl status fail2ban
× fail2ban.service - Fail2Ban Service
Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2025-05-31 15:54:22 CST; 7s ago
Duration: 114ms
Docs: man:fail2ban(1)
Process: 6657 ExecStart=/usr/bin/fail2ban-server -xf start (code=exited, status=255/EXCEPTION)
Main PID: 6657 (code=exited, status=255/EXCEPTION)
CPU: 103ms

May 31 15:54:22 Store-Master systemd[1]: Started fail2ban.service - Fail2Ban Service.
May 31 15:54:22 Store-Master fail2ban-server[6657]: 2025-05-31 15:54:22,608 fail2ban.configreader [6657]: WARNING ‘allowipv6’ not defined in ‘Definition’. Using default one: ‘auto’
May 31 15:54:22 Store-Master fail2ban-server[6657]: 2025-05-31 15:54:22,618 fail2ban [6657]: ERROR Failed during configuration: Have not found any log file for sshd jail
May 31 15:54:22 Store-Master fail2ban-server[6657]: 2025-05-31 15:54:22,623 fail2ban [6657]: ERROR Async configuration of server failed
May 31 15:54:22 Store-Master systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
May 31 15:54:22 Store-Master systemd[1]: fail2ban.service: Failed with result ‘exit-code’.

修复办法:
/etc/fail2ban/jail.local

[sshd]
ignoreip = 127.0.0.1/8
enabled = true
filter = sshd
port = 1015
maxretry = 3
findtime = 300
bantime = 3600s
banaction = ufw
action = %(action_mwl)s
backend = systemd