shadowsocks-libev icon indicating copy to clipboard operation
shadowsocks-libev copied to clipboard

Some issue occurs when working with warp

Open Martinho0330 opened this issue 1 year ago • 0 comments

What version of shadowsocks-libev are you using?

shadowsocks-libev 3.3.5

What operating system are you using?

cat /proc/version Linux version 6.1.0-9-amd64 ([email protected]) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08)

What did you do?

// start warp bash <(curl -fsSL git.io/warp.sh) 6 //using curl to test

root@GreenCloud:~# curl https://google.com -v -I  --interface wgcf
*   Trying [2404:6800:4003:c06::8b]:443...
* Connected to google.com (2404:6800:4003:c06::8b) port 443 (#0)
* ALPN: offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384

//using warp to output /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -i wgcf -v -d 2001:4860:4860::8888,2001:4860:4860::8844

What did you expect to see?

sucessfully to proceed to visit the target website

What did you see instead?

connection reset, and the log burst out like:

2023/12/27 05:16:55 tcp:[::1]:53558 accepted tcp:127.0.0.1:0
 2023-12-27 05:16:55 INFO: new connection from client, 40 opened client connections
 2023-12-27 05:16:55 INFO: [1234] connect to github.com:443
 2023-12-27 05:16:55 INFO: failed to lookup v6 address DNS server returned answer with no data
 2023-12-27 05:16:55 INFO: found address name v4 address github.com
 2023-12-27 05:16:55 INFO: successfully resolved github.com
 2023-12-27 05:16:55 INFO: new connection to remote, 40 opened remote connections
2023/12/27 05:17:02 http: TLS handshake error from [::1]:53568: EOF
2023/12/27 05:17:05 http: TLS handshake error from [::1]:53572: EOF
 2023-12-27 05:17:11 ERROR: getpeername: Transport endpoint is not connected

What is your config in detail (with all sensitive info masked)?

// shadowsocks config.json { "server":["0.0.0.0"], "server_port": 1234, "password": "xxxx", "timeout":60, "method":"chacha20-ietf-poly1305", "plugin":"v2ray-plugin", "interface":"wgcf", "plugin_opts":"server;tls;host=example.com" } // warp config [Interface] PrivateKey = xxxxx Address = 172.16.0.2/32,2606:4700:110:81ec:555e:574c:9d03:16f6/128 DNS = 8.8.8.8,8.8.4.4,2001:4860:4860::8888,2001:4860:4860::8844 MTU = 1420 PostUp = ip -6 rule add from 2402:a7c0:8100:a015::528:6c35 lookup main prio 18 PostDown = ip -6 rule delete from 2402:a7c0:8100:a015::528:6c35 lookup main prio 18

[Peer] PublicKey = xxxxx AllowedIPs = ::/0 Endpoint = 162.159.192.1:2408

Martinho0330 avatar Dec 27 '23 10:12 Martinho0330