mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #6582] [CLOSED] fix(install): disable firewalld pulled in by fail2ban on RHEL family #6363
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#6363
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/6582
Author: @sdhfsl
Created: 9/17/2026
Status: ❌ Closed
Base:
main← Head:fix-el7-firewalld📝 Commits (7)
959e6fdfix(panel): accept 2FA codes from adjacent TOTP windowsf3096bbfix(panel): share TOTP skew tolerance with VerifyTwoFactorCode198ac75Merge branch 'main' into mainacb0297Merge branch 'MHSanaei:main' into main35b92a1Merge branch 'MHSanaei:main' into main6a69d16fix(install): disable firewalld pulled in by fail2ban on RHEL family0052b4eMerge branch 'main' into fix-el7-firewalld📊 Changes
1 file changed (+18 additions, -0 deletions)
View changed files
📝
x-ui.sh(+18 -0)📄 Description
Problem
Fixes #6569.
On RHEL-family hosts where firewalld is not installed,
yum/dnf install fail2bancan pull firewalld in as a dependency, arriving enabled. Nothing breaks immediately, but after the next reboot its defaultpubliczone (ssh + dhcpv6-client only) rejects the panel port, the subscription port and every inbound port — looking exactly like a dead panel whilex-uiruns fine.Fix
In
setup_fail2ban_iplimit(x-ui.sh): snapshot firewalld presence before the install; if the transaction introduced it on a host that never had it,systemctl disable --now firewalldand print the re-enable command. Hosts already using firewalld, and installs where fail2ban was already present, are untouched. Failure of the disable step never blocks the install.Tests
bash -nsyntax check passes. Logic walked through all four states (had/has matrix); no shellcheck in CI for this repo, verified by reading. Live EL7 verification isn't available in this environment — flagging that honestly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.