ihciah / shadow-tls

A proxy to expose real tls handshake to the firewall
https://www.ihcblog.com/a-better-tls-obfs-proxy/
MIT License
2.25k stars 259 forks source link

使用docker运行,无法连接 #89

Open Java2Boy opened 1 year ago

Java2Boy commented 1 year ago

环境:Docker 按此教程:https://github.com/ihciah/shadow-tls/wiki/Run-with-Docker-Compose 设置运行

客户端使用V2rayN添加相关信息,无法链接

旁路由docker运行后,logs提示:2023-05-07T15:57:20.038955Z INFO shadow_tls: Start 4-thread Client with: Listen address: 0.0.0.0:3443 Target address: 8888:8888:8888:8888:8888:0000:0000:0001:8443 TLS server names: [DnsName(DnsName(DnsName("cloud.tencent.com")))] TLS Extension: ALPN(None) TCP_NODELAY: true V3 Protocol: disabled 2023-05-07T15:57:20.038955Z INFO shadow_tls: Start 4-thread Client with:, Listen address: 0.0.0.0:3443, Target address: 2607:5300:60:38c3:6b02:0000:0000:0001:8443, TLS server names: [DnsName(DnsName(DnsName("cloud.tencent.com")))], TLS Extension: ALPN(None), TCP_NODELAY: true, V3 Protocol: disabled, 2023-05-07T16:04:17.787836Z INFO shadow_tls::client: Accepted a connection from 192.168.50.204:54244, 2023-05-07T16:04:18.127795Z INFO shadow_tls::client: Relay for 192.168.50.204:54244 finished, 2023-05-07T16:05:24.412699Z INFO shadow_tls::client: Accepted a connection from 192.168.50.204:54285, 2023-05-07T16:05:24.748832Z INFO shadow_tls::client: Relay for 192.168.50.204:54285 finished, 2023-05-07T16:05:25.453561Z INFO shadow_tls::client: Accepted a connection from 192.168.50.204:54287, 2023-05-07T16:05:26.836819Z INFO shadow_tls::client: Relay for 192.168.50.204:54287 finished, 2023-05-07T16:05:27.307098Z INFO shadow_tls::client: Accepted a connection from 192.168.50.204:54290, 2023-05-07T16:05:27.656490Z INFO shadow_tls::client: Relay for 192.168.50.204:54290 finished, 2023-05-07T16:06:05.780383Z INFO shadow_tls::client: Accepted a connection from 192.168.50.204:54320, 2023-05-07T16:06:06.114128Z INFO shadow_tls::client: Relay for 192.168.50.204:54320 finished

服务器端logs: 2023-05-07T15:44:21.049688Z INFO shadow_tls: Start 1-thread Server with: Listen address: 0.0.0.0:8443 Target address: 127.0.0.1:24000 TLS server address: (wildcard-sni:off)fallback->cloud.tencent.com:443 TCP_NODELAY: true V3 Protocol: disabled

ihciah commented 1 year ago

target addr写错了?ipv6的话要注意表示方式,可能要中括号?