Skip to content

利用 polipo 实现全局代理

安装

配置

配置文件: /etc/polipo/config

# polipo 监听的端口
proxyAddress = "0.0.0.0"
proxyPort = 3334

# 代理软件的端口, 比如 clash 的 socks5 端口是 7891
socksParentProxy = "127.0.0.1:7891"
socksProxyType = socks5

使用

前提肯定是需要把代理软件 (比如 clash, v2ray) 开着

# 直接用 ALL_PROXY 似乎不起作用
export https_proxy=http://127.0.0.1:3334
export http_proxy=http://127.0.0.1:3334
systemctl restart polipo

搞定

Comments