idc

idc

Study Notes: Free Serv00 Running Xray Proxy, Enjoy CF Acceleration for Free!

Register Account#

Open the Serv00 official website https://www.serv00.com/ to register an account and log in to the management backend.

Get IP#

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.

Bind Domain Name

Add Port#

Add Port

Configure Reverse Proxy#

If you are not using CF acceleration, you can skip "Bind Domain Name" and "Configure Reverse Proxy."

  1. Add a port.
  2. Add the server IP domain name bound on CF and enable reverse proxy to the port you applied for.

Configure Reverse Proxy

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.

Enable 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.

Configure Xray

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."

Configure Shadowrocket 1
Configure Shadowrocket 2

CF Acceleration#

The address can be changed to CF preferred domain name.

CF Acceleration 1

CF Acceleration 2

Original Title: Running Xray Proxy on Serv00, Using CF Acceleration
Author: Derrick
Link 👉→ Address

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.