Register Account#
Open the Serv00 official website https://www.serv00.com/ to register an account and log in to the management backend.
Get IP#
Bind Domain Name#
If you are not using CF acceleration, you can skip "Bind Domain Name" and "Configure Reverse Proxy."
Enter the CF management backend, bind a domain name to the server IP, and enable the small cloud.
Add Port#
Configure Reverse Proxy#
If you are not using CF acceleration, you can skip "Bind Domain Name" and "Configure Reverse Proxy."
- Add a port.
- Add the server IP domain name bound on CF and enable reverse proxy to the port you applied for.
Enable Permissions#
The first step is to enable permissions to run your own applications. Additional services -> Run your own applications -> Enabled. If this option is not enabled, all files in your user directory cannot be granted executable permissions.
Configure Xray#
Go to the Xray homepage: https://github.com/XTLS/Xray-core/releases/latest
Download and unzip: Xray-freebsd-64.Zip
Create a configuration file config.json
Change 8964 to the port you applied for.
Change to your own UUID, which can be generated using https://1024tools.com/uuid
{
"log": {
"loglevel": "info"
},
"dns": {
"servers": [
{
"address": "119.29.29.29",
"port": 53,
"domains": [
"geosite:cn"
]
},
{
"address": "1.1.1.1",
"port": 53,
"domains": [
"geosite:geolocation-!cn"
]
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 8964,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "fecc0ba6-f68e-408d-ae8e-fe27c25223fc",
"alterId": 0
}
],
"disableInsecureEncryption": false
},
"streamSettings": {
"network": "ws",
"security": "none",
"wsSettings": {
"acceptProxyProtocol": false,
"path": "/64",
"headers": {}
}
},
"sniffing":{
"enabled": false,
"destOverride": [
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"outboundTag": "blocked",
"domain": [
"geosite:category-ads"
]
},
{
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "direct"
}
]
}
}
Enter File manager, create a new folder named xray in the user directory, and upload both the downloaded xray and the configuration file config.json to this folder.
SSH Login#
Use any SSH client to log in, such as Termius.
Run Xray#
Run xray according to the path of your uploaded xray.
nohup ./xray/xray -c ./xray/config.json &
Auto Start#
It is said that the Serv00 host may restart from time to time, so you need to add an auto-start task.
In the Panel, find the Cron jobs tab, use the Add cron job feature to add a task, and select After reboot for Specify time, which means it will run after a reboot. Choose Advanced for Form type, and write the absolute path of the xray file, for example:
nohup /usr/home/username/xray/xray -c /home/username/xray/config.json > /dev/null 2>&1 &
Be sure to fill in according to your actual path.
Configure Shadowrocket#
Direct Connection
If you are not using CF acceleration, you can skip "Bind Domain Name" and "Configure Reverse Proxy."
CF Acceleration#
The address can be changed to CF preferred domain name.
Original Title: Running Xray Proxy on Serv00, Using CF Acceleration
Author: Derrick
Link 👉→ Address