mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6688] [MERGED] Disable a firewalld pulled in by fail2ban on EL7 #6411
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#6411
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/6688
Author: @freeb5d
Created: 9/29/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @MHSanaei
Base:
main← Head:fix/el7-fail2ban-firewalld📝 Commits (1)
9a57b36Keep a firewalld pulled in by fail2ban from blocking ports on EL7📊 Changes
1 file changed (+10 additions, -0 deletions)
View changed files
📝
x-ui.sh(+10 -0)📄 Description
Fixes #6569
Problem
On CentOS 7 the unattended
yum -y install fail2ban nftablesinsetup_fail2ban_iplimitpulls in firewalld as a dependency. It is enabled by preset and starts on the next reboot, blocking the panel and every inbound port. The IP Limit jail uses raw iptables (action=3x-ipl), so it does not need firewalld.Change
In the EL7 branch, record whether firewalld was already installed. If the fail2ban install newly added it,
systemctl disable firewalldand print a notice. A firewalld the operator already had is left alone.Testing
bash -n x-ui.shpasses. Not run on a real EL7 host, which I don't have.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.