- 需求: 找一个支持 go-ss2 前置 proxy ,http_proxy 和 proxychains 默认不支持 golang
正常响应
$ curl -x 127.0.0.1:8888 ip.sb
91.x.x.x
错误 DEBUG
- linux 环境:
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
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... << 卡住不动
- 程序二 cproxy
sudo ./cproxy --port 8888 -- curl ip.sb
Bad Request
- 程序三 proxychains-ng
$ 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
