[GH-ISSUE #5123] [Question]: After using 3x-ui for a while, it becomes unable to connect, and it takes 5-10 minutes before it can be connected again #3602

Closed
opened 2026-10-31 20:33:38 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @NexL520 on GitHub (Jun 9, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5123

What are you trying to do?

Regarding the 3x-ui v3.2.8 version, when using vless+Reality as an inbound proxy, after connecting and running for several hours, disconnecting and attempting to reconnect always results in connection failure. I need to wait for 5-10 minutes before I can successfully connect. What is the problem? How can I solve it?

What have you already tried?

I didn't see any solution to the problem in the materials

3x-ui version

3.2.8

How did you install 3x-ui?

install.sh script

Operating system

debian11

Screenshots or config snippets

No response

Before submitting

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
Originally created by @NexL520 on GitHub (Jun 9, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5123 ### What are you trying to do? Regarding the 3x-ui v3.2.8 version, when using vless+Reality as an inbound proxy, after connecting and running for several hours, disconnecting and attempting to reconnect always results in connection failure. I need to wait for 5-10 minutes before I can successfully connect. What is the problem? How can I solve it? ### What have you already tried? I didn't see any solution to the problem in the materials ### 3x-ui version 3.2.8 ### How did you install 3x-ui? install.sh script ### Operating system debian11 ### Screenshots or config snippets _No response_ ### Before submitting - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
bsakaguchi 2026-10-31 20:33:38 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@github-actions[bot] commented on GitHub (Jun 9, 2026):

Thanks for the detailed report. Based on looking at the source code, there are two likely causes for a temporary block after disconnect with VLESS+REALITY — please check which one applies.


Likely Cause 1: IP Limit + fail2ban (most common)

In the panel, if your client has IP Limit set to any value > 0, the CheckClientIPJob (runs every 10 seconds) monitors active connections from the Xray access log. When the limit is exceeded — which can happen if the previous connection still appears in the access log right as you reconnect — it writes to /var/log/3xipl.log and fail2ban bans that IP.

The default ban duration is 30 minutes (set in /etc/fail2ban/jail.d/3x-ipl.conf via bantime=30m). If you're seeing 5–10 minutes, your bantime may have been customized.

Check if this is happening:

# See if your IP is currently banned
fail2ban-client status 3x-ipl

# See recent ban/unban events
cat /var/log/3xipl-banned.log | tail -30

# See which IPs triggered the limit
cat /var/log/3xipl.log | tail -30

If your IP appears there, the fix options are:

  1. If you only connect from one device, set IP Limit = 0 (no limit) or increase it to 2–3 to handle brief overlap during reconnection.
  2. Adjust the ban duration (run x-ui → IP Limit menu → re-install with a shorter bantime, e.g., 1 minute).
  3. Manually unban: fail2ban-client set 3x-ipl unbanip <your-ip>

Likely Cause 2: No IP Limit — but stale access log entry

Even without an IP limit, if Xray's access log path is not configured in Xray Settings → Log, the job cannot track or diagnose IP state. Make sure Access Log is set to a writable file path (e.g., /var/log/xray/access.log) in the panel under Xray Settings.


What to share for further diagnosis

If neither cause above resolves it, please provide:

  1. In the panel, go to your inbound → client settings: is IP Limit set, and if so, to what value?
  2. Output of fail2ban-client status 3x-ipl
  3. Contents of /var/log/3xipl.log and /var/log/3xipl-banned.log around the time the block occurs
  4. The Xray access log path configured in Xray Settings (or none if not set)

These will let us pinpoint exactly what is blocking the reconnection.

<!-- gh-comment-id:4658383415 --> @github-actions[bot] commented on GitHub (Jun 9, 2026): Thanks for the detailed report. Based on looking at the source code, there are two likely causes for a temporary block after disconnect with VLESS+REALITY — please check which one applies. --- ## Likely Cause 1: IP Limit + fail2ban (most common) In the panel, if your client has **IP Limit** set to any value > 0, the `CheckClientIPJob` (runs every 10 seconds) monitors active connections from the Xray access log. When the limit is exceeded — which can happen if the previous connection still appears in the access log right as you reconnect — it writes to `/var/log/3xipl.log` and fail2ban **bans that IP**. The default ban duration is **30 minutes** (set in `/etc/fail2ban/jail.d/3x-ipl.conf` via `bantime=30m`). If you're seeing 5–10 minutes, your bantime may have been customized. **Check if this is happening:** ```bash # See if your IP is currently banned fail2ban-client status 3x-ipl # See recent ban/unban events cat /var/log/3xipl-banned.log | tail -30 # See which IPs triggered the limit cat /var/log/3xipl.log | tail -30 ``` If your IP appears there, the fix options are: 1. **If you only connect from one device**, set **IP Limit = 0** (no limit) or increase it to 2–3 to handle brief overlap during reconnection. 2. **Adjust the ban duration** (run `x-ui` → IP Limit menu → re-install with a shorter bantime, e.g., `1` minute). 3. **Manually unban:** `fail2ban-client set 3x-ipl unbanip <your-ip>` --- ## Likely Cause 2: No IP Limit — but stale access log entry Even without an IP limit, if Xray's access log path is not configured in **Xray Settings → Log**, the job cannot track or diagnose IP state. Make sure **Access Log** is set to a writable file path (e.g., `/var/log/xray/access.log`) in the panel under **Xray Settings**. --- ## What to share for further diagnosis If neither cause above resolves it, please provide: 1. In the panel, go to your inbound → client settings: is **IP Limit** set, and if so, to what value? 2. Output of `fail2ban-client status 3x-ipl` 3. Contents of `/var/log/3xipl.log` and `/var/log/3xipl-banned.log` around the time the block occurs 4. The Xray access log path configured in **Xray Settings** (or `none` if not set) These will let us pinpoint exactly what is blocking the reconnection.
Author
Owner

@NexL520 commented on GitHub (Jun 9, 2026):

After I tried to run "fail2ban-client status 3x-ipl", I was prompted with "-bash: fail2ban-client: command not found". The issue with fail2ban can be ruled out as fail2ban-client is not installed

<!-- gh-comment-id:4659000777 --> @NexL520 commented on GitHub (Jun 9, 2026): After I tried to run "fail2ban-client status 3x-ipl", I was prompted with "-bash: fail2ban-client: command not found". The issue with fail2ban can be ruled out as fail2ban-client is not installed
Author
Owner

@NexL520 commented on GitHub (Jun 9, 2026):

No restrictions have been set on the client side

<!-- gh-comment-id:4659006203 --> @NexL520 commented on GitHub (Jun 9, 2026): No restrictions have been set on the client side
Author
Owner

@NexL520 commented on GitHub (Jun 9, 2026):

There is an error in the log: 2026/06/08 17:22:33 ERROR - XRAY: transport/internet/websocket: failed to serve http for WebSocket > accept tcp [::]:33004: use of closed network connection

<!-- gh-comment-id:4659022208 --> @NexL520 commented on GitHub (Jun 9, 2026): There is an error in the log: 2026/06/08 17:22:33 ERROR - XRAY: transport/internet/websocket: failed to serve http for WebSocket > accept tcp [::]:33004: use of closed network connection
Author
Owner

@NexL520 commented on GitHub (Jun 9, 2026):

2026/06/08 17:22:33 ERROR - XRAY: transport/internet/websocket: failed to serve http for WebSocket > accept tcp [::]:33004: use of closed network connection
2026/06/08 17:04:21 WARNING - XRAY: core: Xray 26.4.25 started
2026/06/08 17:04:21 WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW
2026/06/08 17:04:21 WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible.
2026/06/08 17:04:21 WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible.
2026/06/08 16:58:09 WARNING - XRAY: core: Xray 26.4.25 started
2026/06/08 16:58:09 WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW
2026/06/08 16:58:09 WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible.
2026/06/08 16:58:09 WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible.
2026/06/08 16:57:39 WARNING - XRAY: core: Xray 26.4.25 started
2026/06/08 16:57:39 WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW
2026/06/08 16:57:39 WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible.
2026/06/08 16:57:39 WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible.
2026/06/08 16:49:51 WARNING - XRAY: core: Xray 26.4.25 started

<!-- gh-comment-id:4659027934 --> @NexL520 commented on GitHub (Jun 9, 2026): 2026/06/08 17:22:33 ERROR - XRAY: transport/internet/websocket: failed to serve http for WebSocket > accept tcp [::]:33004: use of closed network connection 2026/06/08 17:04:21 WARNING - XRAY: core: Xray 26.4.25 started 2026/06/08 17:04:21 WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW 2026/06/08 17:04:21 WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible. 2026/06/08 17:04:21 WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible. 2026/06/08 16:58:09 WARNING - XRAY: core: Xray 26.4.25 started 2026/06/08 16:58:09 WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW 2026/06/08 16:58:09 WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible. 2026/06/08 16:58:09 WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible. 2026/06/08 16:57:39 WARNING - XRAY: core: Xray 26.4.25 started 2026/06/08 16:57:39 WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW 2026/06/08 16:57:39 WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible. 2026/06/08 16:57:39 WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible. 2026/06/08 16:49:51 WARNING - XRAY: core: Xray 26.4.25 started
Author
Owner

@NexL520 commented on GitHub (Jun 9, 2026):

I downgraded the version to 2.9.4, but the issue of disconnection still persists

<!-- gh-comment-id:4659040414 --> @NexL520 commented on GitHub (Jun 9, 2026): I downgraded the version to 2.9.4, but the issue of disconnection still persists
Author
Owner

@NexL520 commented on GitHub (Jun 9, 2026):

Before version 3.2.8, an attempt was made to set the port to 443. However, the issue remained unresolved. When downgrading to version 2.9.4, no attempt was made to use port 443; instead, the system used a random port, and the problem persisted.

<!-- gh-comment-id:4659213890 --> @NexL520 commented on GitHub (Jun 9, 2026): Before version 3.2.8, an attempt was made to set the port to 443. However, the issue remained unresolved. When downgrading to version 2.9.4, no attempt was made to use port 443; instead, the system used a random port, and the problem persisted.
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#3602
No description provided.