在github下载Xray-linux-64.zip解压在/root/xray
配置文件代码
{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"listen": null,
"port": 33000,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "bf155988-7e13-4c57-e71f-b825d1a87b65",
"email": "[email protected]",
"flow": ""
}
],
"decryption": "none",
"fallbacks": []
},
"streamSettings": {
"network": "tcp",
"security": "none",
"tcpSettings": {
"header": {
"type": "none"
},
"acceptProxyProtocol": false
}
},
"tag": "inbound-31102",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
}
]
}
启动代码
/root/xray/xray run -config /root/xray/config_server.json