SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
19.88k stars 2.36k forks source link

shadowTLS + shadowsocks only worked with sagernet or sing-box #143

Closed everyx closed 2 years ago

everyx commented 2 years ago

Welcome

Description of the problem

I use shadowTLS + shadowsocks on server side(in us), and add another server(in china) use shadowTLS as default outbound, and direct as default inbound, and connect to the server in China use shadowsocks protocol, but I can only connect via sagernet or sing-box, another shadowsocks client (v2rayNG, v2rayN, shadowrocket) is not working.

Version of sing-box

```console $ sing-box version Environment: go1.19.2 linux/amd64 Tags: with_clash_api,with_quic,with_wireguard,with_acme Revision: 39c141651a145ebf4406b07cafe887978022471e CGO: disabled ```

Server and client configuration file

us.server.json ```json { "log": { "level": "warn", "timestamp": false }, "inbounds": [ { "type": "shadowtls", "listen": "::", "listen_port": 443, "handshake": { "server": "cloud.tencent.com", "server_port": 443 }, "detour": "shadowsocks-in" }, { "tag": "shadowsocks-in", "type": "shadowsocks", "listen": "127.0.0.1", "method": "2022-blake3-aes-128-gcm", "password": "asj5u3hjoMPVrLrRIPxD6A==", "users": [ { "name": "user@example.com", "password": "H0egJ0m2TzV6++rsQ73NVA==" }, ] } ] } ```
cn.server.json ```json { "log": { "level": "warn", "timestamp": false }, "inbounds": [ { "type": "direct", "listen": "::", "listen_port": 3443 } ], "outbounds": [ { "tag": "cloudcone01", "type": "shadowtls", "server": "xxx.xxx.xxx.xxx", "server_port": 443, "tls": { "enabled": true, "server_name": "cloud.tencent.com" } }, ] } ```

Server and client log file

```console # paste log here ```
nekohasekai commented 2 years ago

sing-box has been tested to show no compatibility issues with the official program, so send your issue to shadowrocket.