[PR #6688] [MERGED] Disable a firewalld pulled in by fail2ban on EL7 #6411

Closed
opened 2026-11-02 04:08:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 9a57b36 Keep 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 nftables in setup_fail2ban_iplimit pulls 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 firewalld and print a notice. A firewalld the operator already had is left alone.

Testing

bash -n x-ui.sh passes. 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.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6688 **Author:** [@freeb5d](https://github.com/freeb5d) **Created:** 9/29/2026 **Status:** ✅ Merged **Merged:** 10/2/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/el7-fail2ban-firewalld` --- ### 📝 Commits (1) - [`9a57b36`](https://github.com/MHSanaei/3x-ui/commit/9a57b36a33f6fc06b2f9bd8f359a764aa5cc684c) Keep a firewalld pulled in by fail2ban from blocking ports on EL7 ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `x-ui.sh` (+10 -0) </details> ### 📄 Description Fixes #6569 ## Problem On CentOS 7 the unattended `yum -y install fail2ban nftables` in `setup_fail2ban_iplimit` pulls 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 firewalld` and print a notice. A firewalld the operator already had is left alone. ## Testing `bash -n x-ui.sh` passes. Not run on a real EL7 host, which I don't have. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:08:35 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6411
No description provided.