mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5810
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5184
Author: @rqzbeh
Created: 6/10/2026
Status: ✅ Merged
Merged: 6/10/2026
Merged by: @MHSanaei
Base:
main← Head:fix/fail2ban-sshd-log📝 Commits (2)
3dbba46fix: properly configure fail2ban backend and dependencies on Ubuntu 22.04+ (#5159)c322e86Merge branch 'main' into fix/fail2ban-sshd-log📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
x-ui.sh(+3 -3)📄 Description
Fixes #5159
Summary
When installing Fail2ban via the \x-ui.sh\ script on Ubuntu 22.04+, the \ail2ban-server\ can crash during startup with the error:
\ERROR Failed during configuration: Have not found any log file for sshd jail\
This happens because Ubuntu 22.04+ (like Debian 12+) logs SSH attempts strictly to the systemd journal, rather than flat files like /var/log/auth.log. Fail2ban ships with an \sshd\ jail enabled by default that assumes a flat file backend (\uto). When it fails to find the file, it crashes. This PR updates the script to correctly switch the fail2ban backend to \systemd\ globally on Ubuntu 22.04+, mirroring the existing logic for Debian 12+.
Additionally, this PR fixes a benign script bug where the installer attempted to run \python3 -m pip install pyasynchat --break-system-packages\ on Ubuntu 22.04 because of an incorrect OS version comparison. The \os_version\ variable resolves to \2204\ rather than \22, so the script's check of -ge 24\ was matching incorrectly. This has been corrected to -ge 2400\ so the command only runs on Ubuntu 24.04+.
Type of change
Areas affected
Checklist
pm run lint,
pm run typecheck, and
pm run build\ pass.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.