X-UI installation and usage tutorial, Xray panel supports multi-protocol and multi-user Xray visualization panel

Xray panel visualization panel X-UI, monitor server status in real time

The panel is very convenient and supports the Reality protocol. It can not only visually build SS,,, Xray, Trojan and other popular protocols, and you can also see the performance status of the VPS and traffic usage in real time. X-UI developed using GO language has better performance and very low memory usage. Supported protocols: reality,,,trojan,, dokodemo-door, socks, http

X-UI 安装使用教程,支持多协议多用户的 Xray 可视化面板-1

There are several branch projects of X-UI on the GitHub website, which are still being updated and maintained.

X-UI project supports the latestSupport Reality protocol, which is also a relatively safe protocol at present!

X-UI installation and configuration requirements

Memory

  • 128MB minimal/256MB+ recommend

operating system

vaxilu's x-ui project

Xray panel that supports multi-protocol and multi-user

Introduction to x-ui function of vaxilu

  • System status monitoring
  • Supports multi-user and multi-protocol, web page visual operation
  • Supported protocols: reality, vmess, vless, trojan, shadowsocks, dokodemo-door, socks, http
  • Support configuring more transmission configurations
  • Traffic statistics, limit traffic, limit to time
  • Customizable xray configuration template
  • Supports https access panel (brings its own domain name +Certificate)
  • Support one clickand automatic renewal
  • For more advanced configuration items, see the panel for details

x-ui installation of vaxilu

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

FranzKafkaYu's X-UI project

Lightweight Xray panel, multi-protocol and multi-user on the same port, supports English and robot. Easy to use and easy to manage.

Supports single-port multi-user, multi-protocol xray panel,
Monitor and manage your agency services quickly and easily through the free Telegram bot
xtls-rprx-visionandrealityPlease see the quick starthere

FranzKafkaYu x-ui function introduction

  • System status monitoring
  • Supports single port multi-user, multi-protocol, web page visual operation
  • Supported protocols: reality, vmess, vless, trojan, shadowsocks, shadowsocks 2022, dokodemo-door, socks, http
  • Supports configuring more transmission configurations: http, tcp, ws,,kcp,quic
  • Traffic statistics, traffic limit, time limit, one-click reset and device monitoring
  • Customizable xray configuration template
  • Support https access panel (bring your own domain name + SSL certificate)
  • Supports one-click SSL certificate application and automatic renewal
  • Telegram bot notification and control functions
  • For more advanced configuration items, see the panel

FranzKafkaYu x-ui update record

  • 2023.07.18: Randomly generate Reality dest and serverNames, remove Microsoft domain name; refine sniffing configuration
  • 2023.06.10: Automatically reuse panel certificates and domain names when TLS is turned on; add certificate hot reload settings; optimize device restriction functions
  • 2023.04.09: Support Reality; support new telegram bot control instructions
  • 2023.03.05: Support user expiration time limit; random user name, password and port generation
  • 2023.02.09: Supports user traffic restriction and statistics within a single port; supports VLESS utls configuration and sharing link export
  • 2022.12.07: Add device concurrency limit; refine tls configuration, support minVersion, maxVersion and cipherSuites selection
  • 2022.11.14: AddedFlow control options; scheduled automatic geo update and log clearing
  • 2022.10.23: Implement full English support; add batch export sharing link function; optimize page details and Telegram notifications
  • 2022.08.11: Implement Vmess/Vless/Trojan single port multi-user; add CPU usage over limit reminder
  • 2022.07.28: Add acme standalone mode application certificate; add x-ui automatic keep-alive mechanism; optimize compilation options to adapt to more systems
  • 2022.07.24: Added automatic generation of panel root path, automatic node traffic reset function, and device IP access change notification function
  • 2022.07.21: Add node IP access change reminder,Added stop/restart xray function to the panel and optimized some translations
  • 2022.07.11: Add node expiration reminder, traffic warning strategy, add Telegram bot node copy, obtain sharing link, etc.
  • 2022.07.03: Reconstruct the Telegram bot function, command control no longer requires keyboard input; add Trojan underlying transmission configuration
  • 2022.06.19: Add Shadowsocs2022 new Cipher, add node search and one-click traffic clearing functions
  • 2022.05.14: Added Telegram bot Command control function to support closing/opening/deleting nodes, etc.
  • 2022.04.25: AddedLogin reminder, panel login reminder
  • 2022.04.23: Add more Telegram bot reminder functions
  • 2022.04.16: Added panel setting Telegram bot function
  • 2022.04.12: Optimize Telegram Bot notification reminder
  • 2022.04.06: Optimize the installation/update process, add certificate issuance function, and add Telegram bot robot push function

FranzKafkaYu x-ui installation

Please make sure your system supports it before installingbashenvironment, and the system network is normal

⚡You can also use this command when upgrading from the original version, and the data will not be lost⚡

bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

For English users, please install the English supported version using the following command:

bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install_en.sh)

To install the specified version, you can specify the version number in the above command. For example, the specified version is0.3.4.4, the installation command is as follows:

bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh) 0.3.4.4

MHSanaei's 3x-ui project

Xray Panel supports multi-protocol multi-user expiration & traffic & IP restrictions (Vmess & Vless & Trojan & ShadowSocks & Wireguard) Advanced Web Panel • Built on Xray Core.

Project contact information:t.me/panel3xui

X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-1

 

Introduction to the 3x-ui function of MHSanaei

  • System status monitoring
  • Search across all inbounds and customers
  • Dark/light theme
  • Supports multi-user and multi-protocol
  • Supported protocols, including VMess, VLESS, Trojan, Shadowsocks, Dokodemo-door, Socks, HTTP, wireguard
  • support Native protocols including RPRX-Direct, Vision, REALITY
  • Traffic statistics, traffic limits, expiration time limit
  • Customizable X-ray configuration templates
  • Support HTTPS access panel (bring your own domain name + SSL certificate)
  • Supports one-click SSL certificate application and automatic renewal
  • For more advanced configuration items, please refer to the panel
  • Fix API routing (user settings will be created using API)
  • Supports changing the configuration through different items provided in the panel.
  • Support export/import database from panel

MHSanaei's 3x-ui installation and upgrade

bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)

Install a custom version. To install the required version, add version to the end of the install command. For example, version v2.2.1:

bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) v2.2.1

3x-ui screenshot of MHSanaei

X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-1 X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-2 X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-3 X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-4 X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-5 X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-6 X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-7

qist's xray-ui project

System status monitoring supports multiple protocols. Protocols supported by web page visualization operations: vmess, vless, trojan, shadowsocks, dokodemo-door, socks, http. Supports configuring more transmission configurations, traffic statistics, traffic restrictions, shortening time, and customizable xray configuration templates. Supports https access panel (bring your own domain name + SSL certificate) for more advanced configuration items, see the panel.

qist xray-ui update log

2023.8.8 Updated to the latest dependencies, adding fragments to control published TCP fragments, which can deceive the review system in some cases, such as bypassing SNI blacklists.Client configuration module reference Official configuration document

2023.5.29 Add and modify the xray-ui crontab command to add geoip update to the scheduled task. It will be executed at 1.30 am by default. You can /etc/crontab file

2023.5.15 Add xray-ui geoip Update IP library Add database import and export

2023.5.6 Fixed the cipherSuites configuration multi-select and changed the delimiter symbol from , to: added as usual without reading the document. Unfortunately, if you configured cipherSuites at the beginning, please change it to auto and then upgrade and add topology interfaces.

2023.5.4 Sniffing multiple selection, tls cipherSuites configuration multiple selection!

2023.4.28 Add REALITY sharing to randomly select sni to facilitate the use of any_SNI_No_SNI configuration scheme

2023.4.26Add Nginx front-end SNI offload

2023.4.24 Add one-click update geoip, geosite Add geoip, geosite update version number

xray-ui installation of qist

bash <(curl -Ls https://raw.githubusercontent.com/qist/xray-ui/main/install.sh)

X-ui project of sing-web

Supports multi-protocol and multi-user Xray panels

Introduction to X-ui of sing-web

  • System status monitoring
  • Supports multi-user, multi-protocol, multi-user on the same port, and Web visual operation
  • Supported protocols: vmess, vless, trojan, shadowsocks, dokodemo-door, socks, http
  • Support vless/Trojan reality
  • Support configuring more transmission configurations
  • Traffic statistics, traffic restrictions, and expiration time restrictions
  • Customizable X-ray configuration templates
  • Support https access panel (bring your own domain name + SSL certificate)
  • Supports one-click SSL certificate application and automatic renewal
  • For more advanced configuration items, see the panel for details

X-ui installation of sing-web

bash <(wget -qO- https://raw.githubusercontent.com/sing-web/x-ui/main/install.sh)

Statement: This project is only for personal learning and communication. Please abide by local laws and regulations and do not use it for illegal purposes; please do not use it in a production environment.

x-ui project by alireza0

xray panel that supports multi-protocol multi-user expiration and traffic (Vmess & Vless & Trojan & Shadowsocks)

Introduction to x-ui of alireza0

  • Supported protocols include VLESS, VMess, Trojan, Shadowsocks, Dokodemo-door, SOCKS, HTTP, Wireguard
  • Supports XTLS protocols, including Vision and REALITY
  • Advanced interface for routing traffic, including proxy protocols, reverse, external and transparent proxies, as well as multiple domains, SSL certificates and ports
  • Support outbound automatic generation using Wireguard WARP
  • Interactive JSON interface for Xray template configuration
  • Advanced interface for inbound and outbound configuration
  • Customer traffic cap and validity period based on first use
  • Display online client, traffic statistics, system status monitoring
  • Deep database search
  • Displays exhausted clients that are expired or have exceeded traffic limits
  • Subscription service with (multiple) links
  • Import and export databases
  • One-click SSL certificate application and automatic renewal
  • HTTPS is used to securely access the web panel and subscription services (bring your own domain name + SSL certificate)
  • Dark/light theme

x-ui installation of alireza0

bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh)

Install a custom version: Step 1: To install the required version, add version to the end of the install command. For example, version 1.7.1

bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh) 1.7.1

x-ui interface preview of alireza0

X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-1 X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-2 X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-3 X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-4 X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-5

diditra's x-ui project

Xray panel supports multi-protocol multi-user expiration and traffic (Vmess and Vless) and IP restrictions

Introduction to x-ui of diditra

  • System status monitoring
  • Supports multi-user, multi-protocol, web page visualization operations
  • Supported protocols: vmess, vless, trojan, shadowsocks, dokodemo-door, socks, http
  • Supports feature-rich Telegram bots with built-in account management ( shop)
  • Traffic statistics, traffic restrictions, and expiration time restrictions
  • Customizable X-ray configuration templates
  • Support https access panel (bring your own domain name + SSL certificate)
  • Supports one-click SSL certificate application and automatic renewal
  • For more advanced configuration items, please refer to the panel

x-ui installation of diditra

bash <(curl -Ls https://raw.githubusercontent.com/diditra/x-ui/master/install.sh)

Install a custom build, to install the required version you can add the version to the end of the install command. Version example v1.1.0:

bash <(curl -Ls https://raw.githubusercontent.com/diditra/x-ui/master/install.sh) v1.1.0

x-ui screenshot of diditra

X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-1

X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-2

 

X-UI 安装使用教程,Xray面板 支持多协议多用户的 Xray 可视化面板-3

x-ui manual installation & upgrade example

  1. First fromhttps://github.com/vaxilu/x-ui/releasesDownload the latest compressed package, generally selectamd64frame
  2. Then upload this compressed package to the server/root/directory and userootUser login server

If your server cpu architecture is notamd64, change the commandamd64Replace with other architecture

cd /root/ rm x-ui/ /usr/local/x-ui/ /usr/bin/x-ui -rf tar zxvf x-ui-linux-amd64.tar.gz chmod +x x-ui/x- ui x-ui/bin/xray-linux-* x-ui/x-ui.sh cp x-ui/x-ui.sh /usr/bin/x-ui cp -f x-ui/x-ui. service /etc/systemd/system/ mv x-ui/ /usr/local/ systemctl daemon-reload systemctl enable x-ui systemctl restart x-ui

Install using docker

This docker tutorial and docker image are provided byChasing66supply

Install docker

curl -fsSL https://get.docker.com | sh

Install x-ui

mkdir x-ui && cd x-ui docker run -itd --network=host \ -v $PWD/db/:/etc/x-ui/ \ -v $PWD/cert/:/root/cert/ \ --name x-ui --restart=unless-stopped \ enwaiax/x-ui:latest

Create your own mirror

docker build -t x-ui .

SSL certificate application

This feature and tutorial are provided byFranzKafkaYusupply

Set up the SSL certificate application function in the script. To use this script to apply for a certificate, you need to meet the following conditions:

  • Know your Cloudflare registration email
  • Know the Cloudflare Global API Key
  • The domain name has been resolved to the server through cloudflare

How to obtain Cloudflare Global API Key: X-UI 支持多协议多用户的 Xray 面板-1
X-UI 支持多协议多用户的 Xray 面板-2

To use, you only need to enterdomain nameMail,API KEYThat’s it, the display intention is as follows:X-UI 支持多协议多用户的 Xray 面板-3

Precautions:

  • This script uses the DNS API to apply for a certificate
  • Let's Encrypt is used as the CA by default
  • The certificate installation directory is the /root/cert directory
  • The certificates applied for in this script are all pan-domain certificates.

Apply for a domain name certificate using Acme script

Note: Before installing Acme script, install socat first

dnf install -y curl socat wget

After the installation is complete, continue to install the Acme script below.

Install Acme script

curl https://get.acme.sh | sh

X-UI 安装使用教程,支持多协议多用户的 Xray 可视化面板-1

If socat is not installed, an error will be reported when installing the script!

Certificate application method for idle port 80

Change the domain name and email address of xxx in the code to resolve the domain name and email address for you.

~/.acme.sh/acme.sh --register-account -m xxx@gmail.com ~/.acme.sh/acme.sh --issue -d xxx.com --standalone

X-UI 安装使用教程,支持多协议多用户的 Xray 可视化面板-1

If the picture above is displayed, it means that the domain name certificate has been applied successfully. Next, install the certificate to the specified folder.

Install the certificate to the specified folder

Replace the domain name in the code with the domain name you resolve, and store the domain name certificate in the /root/ directory.

~/.acme.sh/acme.sh --installcert -d xxx.com --key-file /root/private.key --fullchain-file /root/cert.crt

X-UI installation tutorial example

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

Wait for the installation. When the following prompt appears on the command line, the installation is successful!

X-UI 支持多协议多用户的 Xray 面板-1
Modify panel password
Browser openshttp://server ip address:54321, login panel (username and password are both admin)
X-UI 支持多协议多用户的 Xray 面板-2
Go to Panel Settings→User Settings and modify the username and password.
X-UI 支持多协议多用户的 Xray 面板-3

Configure node

Non-CDN mode

Log in to the panel, go to the inbound list, and click on the blue + sign.
X-UI 支持多协议多用户的 Xray 面板-4
Enter remarks. Generally, the port can be kept as default. It is recommended to select ws as the transmission protocol. The flow rate and expiration time can be set, but generally not. Then click add
X-UI 支持多协议多用户的 Xray 面板-5
Next to the node you just created, click Operation → QR Code
X-UI 支持多协议多用户的 Xray 面板-6
Use your mobile phone to scan the QR code on the screen, or click the copy button to export the node you just created.
X-UI 支持多协议多用户的 Xray 面板-7

CDN mode

Open CloudFlare's domain name management, add a resolution record to your VPS, keep Xiaoyunduo open, and click Save to save it.
X-UI 支持多协议多用户的 Xray 面板-8
Go to Server, click Create Certificate
X-UI 支持多协议多用户的 Xray 面板-9
To modify the certificate expiration time, click Create
X-UI 支持多协议多用户的 Xray 面板-10
Copy the public and private keys for later use
X-UI 支持多协议多用户的 Xray 面板-11
Log in to the panel, go to the inbound list, and click on the blue + sign.
X-UI 支持多协议多用户的 Xray 面板-12
Refer to the picture below to set it up, then click Add
X-UI 支持多协议多用户的 Xray 面板-13
Next to the node you just created, click Operation → QR Code
X-UI 支持多协议多用户的 Xray 面板-14
Use your mobile phone to scan the QR code on the screen, or click the copy button to export the node you just created.
X-UI 支持多协议多用户的 Xray 面板-15

X-UI FAQ

Why can't I connect to the node?

  1. Please check configuration
  2. Go to CF's domain name management page, go to the SSL tab, and select the Full option.

X-UI 支持多协议多用户的 Xray 面板-16

VPS security hardening recommendations

1. Keep the kernel version updated and fix kernel-level vulnerabilities

2. Turn on the firewall and don’t run naked.

3. Install Fail2ban and configure ssh nginx to automatically block suspicious IP addresses.

4. Do not use simple passwords, or prohibit the use of passwords to log in. Use RSA private keys to log in.

5. Configure the number of ssh password retries

6. Add the specified IP and log in to ssh. Delete the firewall and allow the ssh service. If you do not have a fixed IP, use crash or other proxy ssh to allow your vps ip to connect to you.

clash rules – DST-PORT,22,ACCESS-DENIED

firewall settings

Ubuntu/debain install firewall

# 1. Close the default ufw # Stop the ufw service sudo systemctl stop ufw # Close the boot and start sudo systemctl disable ufw # Delete the ufw rule sudo ufw --force reset # 2 Install firewall apt update apt install -y firewalld # reload (increase or decrease) After the rules, reload is required) firewall-cmd --reload # start systemctl start firewalld # restart systemctl restart firewalld # set boot systemctl enable firewalld # close boot systemctl disable firewalld

centos/Rocky/Redhat install firewall

yum install -y firewalld # reload (reload is required after adding or subtracting rules) firewall-cmd --reload # start systemctl start firewalld # restart systemctl restart firewalld # set boot systemctl enable firewalld # close boot systemctl disable firewalld
# Add the specified IP to access the ssh service firewall-cmd --permanent --add-rich-rule='rule family=ipv4 source address=10.0.0.1/32 service name=ssh accept' firewall-cmd --permanent --add- rich-rule='rule family="ipv4" source address="103.119.132.41/32" service name="ssh" accept' # Close ssh all ip access services firewall-cmd --remove-service=ssh --permanent # Add http https service firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https --permanent # Effective configuration firewall-cmd --reload # View rules firewall-cmd --list-all

free statement

  • This program is for learning and understanding only, not for profit. Please delete it within 24 hours after downloading. It may not be used for any commercial purposes. The text, data and pictures are protected by copyright. If reproduced, please indicate the source.
  • Use of this program is subject to the deployment disclaimer. The use of this program must comply with the laws and regulations of the country where the server is located and the country where the user is located. The author of the program does not bear any responsibility for any improper behavior of the user.
5/5 - (3 votes)

5 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. When installing xui, connecting to raw.githubusercontent.com() times out and cannot be downloaded. What should I do?

  2. CloudFlare reports errors frequently and has turned to AWS. It’s very nice.

  3. The X-UI panel tool is very convenient! Visual management, you can also check server resource usage at any time!