snail007 / goproxy

🔥 Proxy is a high performance HTTP(S) proxies, SOCKS5 proxies,WEBSOCKET, TCP, UDP proxy server implemented by golang. Now, it supports chain-style proxies,nat forwarding in different lan,TCP/UDP port forwarding, SSH forwarding.Proxy是golang实现的高性能http,https,websocket,tcp,socks5代理服务器,支持内网穿透,链式代理,通讯加密,智能HTTP,SOCKS5代理,黑白名单,限速,限流量,限连接数,跨平台,KCP支持,认证API。
https://snail007.host900.com/goproxy/manual/zh/
GNU General Public License v3.0
15.43k stars 2.96k forks source link

https转透明代理的兼容性问题 #480

Open islercn opened 2 years ago

islercn commented 2 years ago

proxy version is : v11.8

  1. full command is : proxy sps -S http -T tcp -P https://userid:password@proxydomain:port --redir -p :1234
  2. system is : openwrt x86
  3. full log is: nothing

有一个带密码的https代理,我把它转成了透明代理,用iptables转发。在测试中,上网、远程桌面什么的都没问题,但是用xshell之类的软件通过ssh连代理后的服务器,直接没反应(提示连接,然后就卡在那了),加debug参数后后也看不到访问提示,抓包看,就是没反应的,似乎是goproxy没接?而且: 1.kill掉goproxy,起ss的透明代理(其他都不变),秒连(意味着iptables转发没有问题) 2.用putty,秒连;用MobaXterm,连不上,和xshell一样(ss下可连) 3.将这个https代理用goproxy转成socks5,然后xshell下ssh设置这个socks5代理,秒连

抓包的数据上看,除了xshell的包长度超过1500,putty没超,别的地方似乎没有任何区别了。应该是goproxy的透明代理处理包或者丢包策略上有问题?但是goproxy似乎没有相关的设置,请问是否有解决方案?

1 2

islercn commented 1 week ago

@snail007 请问这个问题还有解决的计划吗?