qwj / python-proxy

HTTP/HTTP2/HTTP3/Socks4/Socks5/Shadowsocks/ShadowsocksR/SSH/Redirect/Pf TCP/UDP asynchronous tunnel proxy implemented in Python 3 asyncio.
MIT License
2.01k stars 338 forks source link

Trojan client error #107

Closed grayguest closed 3 years ago

grayguest commented 3 years ago

for example, client config:

- name: T06
  server: vt-06.linkbba.com
  port: 4433
  type: trojan
  password: b5abe8d9-13ce-439b-97f3-46x5p54ed021
  sni: linkbba.com
  skip-cert-verify: false

i used in cli

$ pproxy -l socks5://:2333 -r trojan://chacha20-ietf-poly1305:b5abe8d9-13ce-439b-97f3-46x5p54ed021@vt-06.linkbba.com:4433 -v
Serving on :2333 by socks5 

then curl happend error below

$ proxychains curl https://ifconfig.me/
ProxyChains-3.1 (http://proxychains.sf.net)
|S-chain|-<>-127.0.0.1:2333-<><>-216.239.32.21:443-<><>-OK
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to ifconfig.me:443 

the pproxy cli show

$ pproxy -l socks5://:2333 -r trojan://chacha20-ietf-poly1305:b5abe8d9-13ce-439b-97f3-46x5p54ed021@vt-06.linkbba.com:4433 -v
Serving on :2333 by socks5 
socks5 127.0.0.1:41550 -> trojan vt-06.linkbba.com:4433 -> 216.239.32.21:443
socks5 127.0.0.1:41556 -> trojan vt-06.linkbba.com:4433 -> 216.239.32.21:443
qwj commented 3 years ago

Trojan should be used together with ssl. There is no need to specify cipher like chacha20. Please read the trojan example part of README.md

grayguest commented 3 years ago

My problem, thanks to your reply, hia~ btw, older bro, any plan to support vmess? https://github.com/qwj/python-proxy/issues/105