[GH-ISSUE #3286] VPN still works after VLESS account expires (status: inactive) #2225

Closed
opened 2026-10-31 20:24:03 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @vers2626 on GitHub (Jul 28, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3286

Describe the bug

VLESS user account with an expired subscription (by time) is still able to use the VPN.

Even though:

  • The subscription is marked as "Expired"
  • The status indicator is red
  • The account status is inactive
  • The expiration time has passed

...the client remains connected and actively using the service.

❗ Expected behavior:
When the expiration time of a VLESS account is reached, the user should be disconnected immediately and further VPN usage must be blocked regardless of toggle switch state.

Image

How to repeat the problem?

  1. Create a VLESS user via the 3x-ui Telegram bot using the API.
  2. Connect to the VPN using that user.
  3. Wait until the account expires (based on time).
  4. Observe the following:
    • The user is marked as "Expired"
    • A red status indicator is shown
    • The account status is inactive
    • The toggle switch may still be on
    • The client remains connected and VPN continues to work

Expected action

When a VLESS account expires (by time or traffic), the client should be disconnected immediately and prevented from further using the VPN service, even if the toggle remains on.

Received action

When a VLESS account expires, the user is still able to stay connected and use the VPN service. The account is marked as "Expired", status is inactive, and the red indicator appears, but the client remains online. The toggle being on seems to keep the connection alive, even though the account should be expired and disabled.

3x-ui Version

2.6.0

Xray-core Version

v25.5.16

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @vers2626 on GitHub (Jul 28, 2025). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3286 ### Describe the bug VLESS user account with an expired subscription (by time) is still able to use the VPN. Even though: - The subscription is marked as "Expired" - The status indicator is red - The account status is inactive - The expiration time has passed ...the client remains connected and actively using the service. ❗ Expected behavior: When the expiration time of a VLESS account is reached, the user should be disconnected immediately and further VPN usage must be blocked regardless of toggle switch state. <img width="2573" height="75" alt="Image" src="https://github.com/user-attachments/assets/43b09d5c-b506-42aa-bf22-821b2705728c" /> ### How to repeat the problem? 1. Create a VLESS user via the 3x-ui Telegram bot using the API. 2. Connect to the VPN using that user. 3. Wait until the account expires (based on time). 4. Observe the following: - The user is marked as "Expired" - A red status indicator is shown - The account status is inactive - The toggle switch may still be on - The client remains connected and VPN continues to work ### Expected action When a VLESS account expires (by time or traffic), the client should be disconnected immediately and prevented from further using the VPN service, even if the toggle remains on. ### Received action When a VLESS account expires, the user is still able to stay connected and use the VPN service. The account is marked as "Expired", status is inactive, and the red indicator appears, but the client remains online. The toggle being on seems to keep the connection alive, even though the account should be expired and disabled. ### 3x-ui Version 2.6.0 ### Xray-core Version v25.5.16 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:24:03 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MK0ltra commented on GitHub (Jul 29, 2025):

This is related to Xray-core behavior.
When x-ui delete expired users with xray api, sometimes clients seems to remain active until Xray-core restarted. Consider restarting the x-ui with cronjob every 24 hours or less.

<!-- gh-comment-id:3133926920 --> @MK0ltra commented on GitHub (Jul 29, 2025): This is related to Xray-core behavior. When x-ui delete expired users with xray api, sometimes clients seems to remain active until Xray-core restarted. Consider restarting the x-ui with cronjob every 24 hours or less.
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#2225
No description provided.