Managing a proxy server infrastructure has traditionally been a command-line affair. Editing JSON configuration files by hand, restarting services, and monitoring traffic through terminal logs – it works, but it is far from user-friendly. 3X-UI changes that by providing a full-featured web interface for managing Xray-core proxy servers.
Developed by MHSanaei, 3X-UI is an advanced web-based control panel built on the Go programming language, designed to manage Xray-core servers with a rich graphical interface. With over 30,000 GitHub stars and an active community of contributors, it has become the most popular open-source management panel for Xray-based proxy infrastructure.
The panel wraps the power of Xray-core – the next-generation proxy platform that succeeded V2Ray – into a clean, responsive web UI. Instead of manually editing configuration files, administrators manage users, protocols, traffic, and settings through a dashboard that runs on any modern web browser.
This guide covers 3X-UI’s architecture, supported protocols, installation, web interface features, and important legal considerations.
What Is Xray-Core and Why Does 3X-UI Matter?
Xray-core is a modern proxy platform that provides advanced network routing and protocol support. It is the successor to V2Ray and is maintained as an independent open-source project. Xray-core supports multiple proxy protocols, traffic routing based on complex rules, TLS encryption, and multiplexing.
The problem is that Xray-core is configured entirely through JSON. Every inbound connection, every outbound route, every traffic rule must be specified in a configuration file that grows increasingly complex as you add users and protocols. 3X-UI solves this by providing a visual management layer on top of Xray-core:
| Aspect | Xray-Core (Standalone) | 3X-UI (Panel) |
|---|---|---|
| Configuration | Manual JSON editing | Web form + auto-generate |
| User Management | Manual file editing | Add/remove via UI with QR codes |
| Monitoring | Log file tailing | Real-time dashboard with charts |
| Multi-Protocol | Manual setup per protocol | Unified add/edit interface |
| Backup | Manual file backup | One-click database backup |
| Traffic Statistics | Not built-in | Per-user traffic tracking |
What Protocols Does 3X-UI Support?
3X-UI inherits the full protocol support of Xray-core. Each protocol can be configured as an inbound or outbound connection through the web interface:
graph TD
subgraph "3X-UI Supported Protocols"
A[VMess]
B[VLESS]
C[Trojan]
D[ShadowSocks]
E[DNS]
F[HTTP]
G[SOCKS5]
H[Dokodemo-door]
end
A --> I[XTLS Vision Support]
B --> I
C --> J[TLS Encryption]
D --> J
E --> K[Advanced Routing]
F --> K| Protocol | Transport Options | Use Case |
|---|---|---|
| Vmess | TCP, mKCP, WebSocket, HTTP/2, QUIC, gRPC | General purpose with built-in obfuscation |
| Vless | TCP, mKCP, WebSocket, HTTP/2, QUIC, gRPC | Lightweight alternative to Vmess |
| Trojan | TLS over TCP | HTTPS-traffic mimicking |
| ShadowSocks | AEAD encryption | Simple, widely compatible |
| SOCKS5 | Native | Standard SOCKS proxy |
| HTTP | Proxy | Standard HTTP forward proxy |
How Do You Install 3X-UI?
Installation is designed to be straightforward. The project provides a one-line installation script for Linux servers:
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
This script handles:
- Downloading the latest 3X-UI release
- Installing Xray-core as a dependency
- Setting up the SQLite database for configuration storage
- Configuring the systemd service for auto-start
- Generating default admin credentials
After installation, the web panel is accessible at http://your-server-ip:2053 (the default port, which can be changed).
graph TD
A[Server with Root Access] --> B[Install Script]
B --> C[Download 3X-UI]
B --> D[Install Xray-Core]
B --> E[Create SQLite DB]
B --> F[Setup Systemd Service]
F --> G[Web Panel on Port 2053]
G --> H[Login & Configure]What Does the Web UI Look Like?
The 3X-UI dashboard provides a comprehensive management interface:
- Dashboard overview: Real-time server status, traffic graph, online users, and system resource usage.
- Inbound management: Create, edit, and delete inbound connections with any supported protocol. Each inbound can have multiple clients.
- Client management: Add clients per inbound with unique traffic limits, expiry dates, and enable/disable toggles.
- QR code generation: Each client can display a connection QR code compatible with popular client applications (v2rayNG, ShadowRocket, etc.).
- Traffic monitoring: Per-user traffic statistics with daily, weekly, and monthly views.
- Xray-core settings: Direct access to Xray-core configuration with JSON editor for advanced users.
- Backup and restore: One-click database export and import for migration or disaster recovery.
What Are the System Requirements?
3X-UI is built in Go and is remarkably lightweight:
| Resource | Minimum | Recommended |
|---|---|---|
| CPU | 1 core | 2 cores |
| RAM | 256 MB | 512 MB |
| Storage | 500 MB | 2 GB |
| OS | Linux (any distro) | Ubuntu 22.04+, Debian 12+ |
| Network | Public IP | Public IP + Domain |
The panel itself consumes minimal resources. Xray-core’s resource usage depends on the number of active connections and the throughput.
What Security Features Does 3X-UI Include?
Security is a core concern for any proxy management panel. 3X-UI includes:
- TLS/HTTPS: Built-in Let’s Encrypt certificate support for HTTPS access to the panel.
- XTLS Vision: Support for the XTLS Vision protocol enhancement for improved traffic fingerprinting resistance.
- Reality support: Implementation of Xray-core’s Reality technology for TLS fingerprint mimicry.
- Database encryption: SQLite database can be configured with encryption at rest.
- Access logging: Comprehensive access and error logs for security auditing.
What Is the Legal Disclaimer?
It is important to understand the legal context of 3X-UI. The project’s GitHub repository includes a clear disclaimer:
This software is intended for legal use only. The developers are not responsible for any misuse or illegal activities conducted with this software.
Proxy servers have legitimate uses – secure remote access, privacy protection, network testing, and censorship circumvention where legally permitted. However, proxy infrastructure can also be misused. Users are responsible for ensuring their deployment complies with all applicable laws and regulations in their jurisdiction.
Frequently Asked Questions
What is 3X-UI?
3X-UI is an open-source web-based panel for managing Xray-core proxy servers, providing a graphical interface for protocol configuration, user management, traffic monitoring, and server administration.
What protocols does 3X-UI support?
3X-UI supports Vmess, Vless, Trojan, ShadowSocks, DNS, HTTP, SOCKS5, and Dokodemo-door protocols, all configurable through the web interface without manual JSON editing.
How do I install 3X-UI?
Installation uses a single bash command: bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh). This works on most Linux distributions with root access.
What features does the web UI offer?
The web UI includes real-time traffic monitoring, per-user statistics, inbound/outbound configuration with QR codes, TLS certificate management, database backup, and Xray-core JSON editor.
Is there a disclaimer for 3X-UI usage?
Yes. The project states it is for legal use only, and the developers bear no responsibility for misuse. Users must comply with all applicable laws.
無程式碼也能輕鬆打造專業LINE官方帳號!一鍵導入模板,讓AI助你行銷加分!