Skip to content

使用 proxychains4 代理进程网络 #144

@jht6

Description

@jht6

安装与配置(Ubuntu/Debian 举例):

sudo apt install proxychains4

编辑配置(任选其一):
用户级:~/.proxychains/proxychains.conf
系统级:/etc/proxychains.conf

在配置文件末尾添加一行(按你的代理端口改):

socks5 127.0.0.1 7890

通过代理运行你的程序:

proxychains4 cargo run -p playground

说明:proxychains 通过劫持 connect() 强制 TCP 出口走代理,通常对 tokio-tungstenite 的 WS 也有效,是在不改代码情况下让 WS 走代理的“土办法”,但很好用

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions