请教下,目前有一台 centos 服务器,装了 ss 客户端,配置好 http_proxy 和 https_proxy,所有的 http 请求,目前可以访问被墙网站,现在的问题是,怎么让 websocket 也通过代理来请求被墙的服务地址?
把 all_proxy 都设置上了,也是不管用。搜了很多资料没找到解决办法,特来请求帮助,谢谢。
把 all_proxy 都设置上了,也是不管用。搜了很多资料没找到解决办法,特来请求帮助,谢谢。
|
1
用 proxychains4 来 hook 一下
|
|
2
让 websocket 走本地的 socket5 就行了,走 http 是不行的。
|
|
YourshellSep 8, 2020
3
是 socks5,老打错
|
|
5
@liuminghao233 这个也支持在代码里面跑的请求?
|
|
liuminghao233Sep 8, 2020 via iPhone
6
@ob 反过来 你需要用 proxychains4 来跑你的程序
|
|
7
用 clash 客户端,可以走代理。
|
|
interimSep 8, 2020
8
补一下图,我也是玩贪吃蛇不卡了才发现 ws 走了代理,补一下图 https://imgchr.com/i/wKRyz4
|
|
interimSep 8, 2020
9
这年头没必要用 ss 了...直接 docker 部署 trojan 几分钟的事情 https://ssu.tw/index.php/archives/40/
|
|
10
@liuminghao233
我装了这个: https://github.com/rofl0r/proxychains-ng 在 /etc/proxychains.conf 底部配置了我原本可以用的代理: socks5 127.0.0.1 8118 http 127.0.0.1 8118 ------------------------------- 前面有装 privoxy,上面的端口用 8118 和 1080 都不起作用 $ proxychains4 curl ip.sb [proxychains] config file found: /etc/proxychains.conf [proxychains] preloading /usr/lib/libproxychains4.so [proxychains] DLL init: proxychains-ng 4.14-git-12-gacf2f47 [proxychains] Strict chain ... 127.0.0.1:1080 ... 127.0.0.1:1080 ... ip.sb:80 <--socket error or timeout! curl: (7) Failed to connect to 224.0.0.1: 拒绝连接 是我配置错了吗? |
|
VsevenMagicSep 8, 2020 via iPhone
11
走 http 的话配置 v2ray 应该可以
|
|
supermoonieSep 8, 2020 via iPhone
12
@Yourshell websocket 是可以有 http 代理的哦
|