1、Cloudflare官网:https://dash.cloudflare.com/
2、SSH连接工具Finalshell:https://www.hostbuf.com/t/988.html
3、一键搭建xray面板
bash <(curl -Ls https://raw.githubusercontent.com/slobys/x-ui/main/install.sh)
4、一键安装依赖包
apt update -y&&apt install -y curl&&apt install -y socat
5、安装证书并移动到root目录下
~/.acme.sh/acme.sh --installcert -d 你的域名 --key-file /root/private.key --fullchain-file /root/cert.crt
6、安装bbr加速
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
7、分流代码(根据实际情况填写)
{ "api": { "services": [ "HandlerService", "LoggerService", "StatsService" ], "tag": "api" }, "inbounds": [ { "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "tag": "api" } ], "outbounds": [ { "protocol": "freedom", "settings": {} }, { "tag": "proxy", "protocol": "socks", "settings": { "servers": [ { "address": "服务器IP/域名", "port": 节点端口, "users": [ { "user": "user", "pass": "pass" } ] } ] } }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" } ], "policy": { "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "routing": { "rules": [ { "type": "field", "outboundTag": "proxy", "domain": [ "ip125.com", "geosite:openai", "geosite:netflix", "geosite:facebook", "geosite:paypal", "geosite:twitter", "geosite:amazon", "geosite:disney" ] }, { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "ip": [ "geoip:private" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" } ] }, "stats": {} }