mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[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
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#3602
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?
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
@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.logand fail2ban bans that IP.The default ban duration is 30 minutes (set in
/etc/fail2ban/jail.d/3x-ipl.confviabantime=30m). If you're seeing 5–10 minutes, your bantime may have been customized.Check if this is happening:
If your IP appears there, the fix options are:
x-ui→ IP Limit menu → re-install with a shorter bantime, e.g.,1minute).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:
fail2ban-client status 3x-ipl/var/log/3xipl.logand/var/log/3xipl-banned.logaround the time the block occursnoneif not set)These will let us pinpoint exactly what is blocking the reconnection.
@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
@NexL520 commented on GitHub (Jun 9, 2026):
No restrictions have been set on the client side
@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
@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
@NexL520 commented on GitHub (Jun 9, 2026):
I downgraded the version to 2.9.4, but the issue of disconnection still persists
@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.