Repository navigation
X-NET v1.4.2
✨ New Features
-
Dedicated Reseller Dashboard
- User statistics, active/online users, traffic usage, and charts are now displayed only for accounts and subscriptions created by the respective reseller.
- This scoping applies to both the regular dashboard and the live dashboard (WebSocket).
-
Shared Reseller Traffic Quota
- Administrators can set a traffic limit (
maxTrafficLimitBytes) for each reseller. - This quota is shared across the reseller's SSH and VPN accounts.
- When an account is created or renewed, the actual traffic quota usage is checked and deducted from the shared pool.
- The reseller dashboard displays used traffic, the total limit, and the remaining quota in real time.
- Administrators can set a traffic limit (
-
SSH Account Deletion by Resellers
- Resellers can delete SSH accounts they created themselves.
- They cannot delete accounts created by other resellers.
-
Advanced SSH Account Search
- SSH account search now supports mobile phone numbers in addition to usernames and remarks.
-
Redesigned SSH Welcome Banner
-
Introduced a new Banner system with a simple enable/disable toggle.
-
Ready-to-use and fully editable templates are provided for four languages:
- 🇬🇧 English
- 🇮🇷 Persian
- 🇷🇺 Russian
- 🇨🇳 Chinese
-
Each account can have its own Banner language.
-
A global default language is used when no language is specified for an account.
-
-
New Banner Variables
{trafficPercent}— traffic usage percentage{trafficBar}— text-based traffic progress bar
-
Full
xnet-ssh-infoLocalization- SSH connection information now supports all four languages.
🔄 Changes & Improvements
- Reseller account-count and traffic quotas are now actually enforced on the Backend using atomic operations.
- SSH and VPN account creation and renewal now consume traffic from the reseller's shared traffic pool.
- The default concurrent connection limit for new SSH accounts has been changed from 2 to 1.
- Frontend role detection has been centralized, so different pages now use a single source of truth for determining the current administrator's role.
- Inbound Management access has been removed from the Reseller role.
- Resellers can still select an Inbound when creating a Subscription; the related issue has been fixed.
- The Panel Version change card has been removed from the reseller dashboard. This feature is now available only to Super Admins.
- The SSH Global Settings layout has been redesigned, removing unnecessary empty space between cards.
- Fixed the brief appearance of unauthorized Sidebar items during a hard page refresh for resellers.
- Removed the misleading Telegram Backup toggle from the UI. Telegram backup delivery had already been disabled in the Backend.
- Several UI strings that were always displayed in English regardless of the selected language have been corrected and fully localized across all four supported languages.
🐛 Bug Fixes
- Fixed reseller access to dashboard data belonging to other users.
- Fixed the display of Clients belonging to other administrators/resellers in shared Inbound client lists.
- Fixed reseller traffic quotas not being actually enforced during account creation or renewal.
- Fixed the issue preventing resellers from selecting an Inbound when creating a Subscription.
- Fixed the temporary display of unauthorized Sidebar items during page reloads.
- Fixed the Panel Version change card being displayed to unauthorized users.
- Fixed the old static SSH Welcome Banner text being displayed alongside the new custom Banner.
- Fixed multiple untranslated UI strings throughout the panel.
🔐 Security
WebSocket Data Leakage Prevention
Previously, the Realtime Dashboard channel could send global panel statistics to connected users without properly enforcing their role or data ownership.
In v1.4.2, the WebSocket feed is now fully scoped by Role and Ownership, just like the regular API endpoints. Resellers can only receive realtime information belonging to their own resources.
Inbound Client Data Leakage Prevention
Inbound Client lists are now filtered according to ownership. Resellers can no longer view Clients belonging to other administrators or resellers.
Atomic Quota Enforcement
Account-count and traffic quotas are now enforced using locked, atomic transactions. This prevents concurrent requests from allowing a reseller to exceed their assigned limits.
Prevention of Unauthorized Quota Escalation
Administrative management endpoints are restricted to Super Admins. Security regression tests confirm that Resellers/Agents cannot increase or modify their own quota or the quota of another reseller.
SSH Account Ownership Enforcement
Resellers can only delete SSH accounts that they created themselves. They cannot delete accounts belonging to other resellers.
🧪 Testing & Validation
- Added and executed regression tests for reseller quota restrictions.
- Verified atomic enforcement of both Account Quota and Traffic Quota.
- Tested unauthorized reseller quota escalation paths.
- Verified WebSocket Dashboard and Inbound Client list scoping.
- Verified SSH account deletion permissions based on ownership.
- Verified Banner and
xnet-ssh-infolocalization. - Verified Frontend and Backend changes for Role/Permission consistency and regression issues.
📌 Release Summary
X-NET v1.4.2 focuses heavily on Reseller Management, real quota enforcement, data isolation, and security.
Resellers can now:
- View only their own data.
- Manage only their own resources.
- Operate under real account and traffic quotas.
- No longer exceed their assigned limits, even through concurrent requests.
- Receive no data belonging to other resellers through the Dashboard, WebSocket, or Inbound Client lists.
The SSH Welcome Banner system has also been completely redesigned and localized in four languages, while a range of UI, localization, permission, and UX issues have been resolved in this release.
apt update
bash <(curl -fsSL https://raw.githubusercontent.com/xpanel-cp/x-net/main/install/xnet.sh)