好用的 golang 前置 proxy 推荐

2022-10-14 17:01:35 +08:00
 novolunt

正常响应

$ curl -x 127.0.0.1:8888 ip.sb
91.x.x.x

错误 DEBUG

Linux xxxx 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
graftcp/local/mgraftcp --enable-debug-log --http_proxy=127.0.0.1:8888  curl ip.sb
[2022-10-14 16:50:37] [INFO] graftcp-local start listening :0...  << 卡住不动
sudo ./cproxy --port 8888  -- curl ip.sb
Bad Request
$ egrep -v '^\s*$|^\s*#'  /etc/proxychains.conf
strict_chain
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
localnet 10.0.0.0/255.0.0.0
[ProxyList]
http    127.0.0.1 8888

运行结果

$ proxychains4 curl ip.sb
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib64/proxychains-ng/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] Strict chain  ...  127.0.0.1:8888  ...  ip.sb:80 <--denied
curl: (7) Failed to connect to 224.0.0.1: Connection refused
3067 次点击
所在节点    Go 编程语言
17 条回复
CEBBCAT
2022-10-14 18:06:37 +08:00
谁看懂了的可不可以帮我解释一下?谢谢🙏
1423
2022-10-14 18:19:23 +08:00
surge
但你上面用法都不对啊。。
jiangwei2222
2022-10-14 19:13:28 +08:00
@CEBBCAT 哈哈哈,我也没看懂
dic
2022-10-14 21:14:24 +08:00
go env -w GOPROXY=https://goproxy.cn,direct

golang 的代理这么设置不就可以了吗?
neighbads
2022-10-15 00:45:28 +08:00
go-graft ?
kkbblzq
2022-10-15 01:14:38 +08:00
你是要搞透明代理吗。。。你确定你 ss2 是 http ?我没记错 ss client 不是 socks 吗。。那你这配的就不对吧。。
DefoliationM
2022-10-15 01:36:34 +08:00
http 支持好吧
flynaj
2022-10-15 01:39:47 +08:00
gost 支持比较全面
novolunt
2022-10-15 19:06:54 +08:00
我的 ss 是美国的,能直接访问,速度也快,又有一个日本的 http proxy ,但不能只能访问。我想服务器端走 eth0 --> jp http --> ss proxy ,用的 go 版本的 ss ,测试了几个前置 proxy 客户端都不能用,测试用的是 curl 测试更方便。
@CEBBCAT
@1423
@jiangwei2222
@dic
mzz2017
2022-10-15 19:38:33 +08:00
1423
2022-10-15 19:58:47 +08:00
@novolunt 很显然,这些工具都是 OK 的。
如果用起来不对路,那是你没有用对
novolunt
2022-10-15 20:11:36 +08:00
@1423 测试过才有发言权, replit.com 的账号可以提供下,邀请测试。
1423
2022-10-15 22:25:45 +08:00
@novolunt w1423
novolunt
2022-10-16 20:23:44 +08:00
@1423 已邀请,点提醒
1423
2022-10-16 21:07:38 +08:00
@novolunt

话说你这也算提供了免费的 hola 代理出来,谢了。

不过我手里也有很多。。
1423
2022-10-16 21:13:25 +08:00
@novolunt

```
PROXY : 2022/10/16 13:11:22 handler.go:49: ERROR Can't satisfy CONNECT request: bad response from upstream proxy server: 403 Bad Port
```
看来 hola 的免费代理不给转发 80 端口。
1423
2022-10-16 21:47:39 +08:00
@novolunt 我也 share 下吧,摸索了下 hola 。
1. 国别域名可以遍历出所有服务器,比如 jp.vpn.hola.org (单个 DNS 不全,需要自己搜集
2. 服务器 sni 只有 *.hola.org (用 jp.vpn 的话需要自己信任或者 skip sni
3. 端口同样支持 http proxy (不在意安全可以获得更少 rtt

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/886965

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX