[GH-ISSUE #480] https转透明代理的兼容性问题 #384

Open
opened 2026-02-27 23:16:42 +03:00 by kerem · 1 comment
Owner

Originally created by @islercn on GitHub (Apr 29, 2022).
Original GitHub issue: https://github.com/snail007/goproxy/issues/480

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

Originally created by @islercn on GitHub (Apr 29, 2022). Original GitHub issue: https://github.com/snail007/goproxy/issues/480 proxy version is : v11.8 1. full command is : proxy sps -S http -T tcp -P https://userid:password@proxydomain:port --redir -p :1234 1. system is : openwrt x86 1. 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](https://user-images.githubusercontent.com/7038562/165885724-a17493f9-5caf-428b-9b28-a65a9a66db91.png) ![2](https://user-images.githubusercontent.com/7038562/165885728-aba29e04-71d0-4229-84bd-8d58cf123cc3.png)
Author
Owner

@islercn commented on GitHub (Jun 21, 2024):

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

<!-- gh-comment-id:2181948641 --> @islercn commented on GitHub (Jun 21, 2024): @snail007 请问这个问题还有解决的计划吗?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#384
No description provided.