配置如下,server端:- { "log": { "loglevel": "warning" }, "inbounds": [ { "port": 80, "listen": "0.0.0.0", "protocol": "vless", "settings": { "clients": [ { "id": "abcdefg" } ], "decryption": "none" }, "streamSettings": { "network": "httpupgrade", "httpupgradeSettings": { "acceptProxyProtocol": false, "path": "/", "host": "自己的域名", "header": { "type": "none" } } } } ], "outbounds": [ { "protocol": "freedom", "settings": {} } ] }
复制代码
客户端:- { "log": { "loglevel": "warning" }, "inbounds": [ { "port": 1090, "protocol": "dokodemo-door", "settings": { "network": "tcp,udp", "followRedirect": true }, "streamSettings": { "sockopt": { "tcpFastOpen": false, "tproxy": "redirect" } } } ], "outbounds": [ { "protocol": "vless", "settings": { "vnext": [ { "address": "cdn分配的域名", "port": 443, "users": [ { "id": "abcdefg", "encryption": "none" } ] } ] }, "mux": { "enabled": true, "concurrency": 8 }, "streamSettings": { "network": "httpupgrade", "httpupgradeSettings": { "acceptProxyProtocol": false, "path": "/", "host": "cdn分配的域名", "header": { "type": "none" } }, "security": "tls", "tlsSettings": { "serverName": "cdn分配的域名", "allowInsecure": false } } } ] }
复制代码 |