VPS Server#
The cerver provider I use is UpCloud,and the cheapest developer plan is €3/month. if you need to register, My referral link https://upcloud.com/signup/?promo=33A5AK. Every new user receives a bonus worth of €25 credits when signing up through the referral program.
Deploying a new server#
Location: Choose as needed.
Plan: Choose as needed. Here I use the cheapest developer plan at €3/month.
Storage: Default.
Automated backups: Off. Additional fees apply for usage.
Operating systems: Here I choose Debian.
Network: public IPv6 disabled.
Login Method: SSH keys must be used.
Server configuration: You can change the Hostname and Server name. Here I use default.
check your server IP:
Test IP availability#
Press Windows + R to open the Run window, type cmd
, and click OK.
ping your_server_IP
,the time value should be displayed.
Domain#
I use Cloudflare as my domain provider and domain resolution services, as a one-stop solution.
Click website - your purchased domain, then DNS - Add record:
Type:A
Name(required): choose a new name as you like
IPv4(required): your server IP
Proxy status: disabled
Test subdomain availability#
ping your_subdomain
,the time value should be displayed.
Domain API Token#
Copy your domain API Token, you need to use it later.
Node Tool: FinalShell#
Download and install Finalshell, a SSH tool. This is a Chinese Software, no English version yet. Remote connect to your server:
Double click the connection:
Update the system and install X-UI:
apt update -y
apt install -y curl socat
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
Set the username, password, and port(here I use 4321 for instance):
# Allow the port
sudo apt-get install iptables
iptables -I INPUT -p tcp --dport 443 -j ACCEPT
iptables -I INPUT -p tcp --dport 54321 -j ACCEPT
SSL Certificate#
Enter the command x-ui
,choose 16 - y. You need: your domain name, API key from cloudflare, your cloudflare email.
Then refreash. The certificate path as below:
XUI backend management#
Login th XUI backend through <your_server_ip:4321> in your brower, enter your username and password.
access panel settings. Here we set the port and certificate path.
After configuration, re login the XUI backend through https://yourname.yourdomain.com:4321, access Inbound list:
Now we have a node. we can import this node to client app such as v2rayNG(Android)、shadowrocket(iOS).