Mac使用Privoxy转发Socks5代理

Mac使用Privoxy转发Socks5代理

本文由 简悦 SimpRead 转码, 原文地址 www.jianshu.com

1. 安装

1
> brew install privoxy

2. 修改配置文件

/usr/local/etc/privoxy/config

forward-socks5 / 127.0.0.1:1086 . # 转发本机端口
listen-address 0.0.0.0:8118 # 监听 8118 端口

3. 运行

1
> brew services start privoxy

4. 检查状态

1
2
3
4
> ps -ef | grep privoxy
501 9099 1 0 7:56PM ?? 0:00.41 /usr/local/Cellar/privoxy/3.0.32/sbin/privoxy --no-daemon /usr/local/etc/privoxy/config
> netstat -an | grep 8118
tcp4 0 0 *.8118 *.* LISTEN

5. 设置环境变量, IP 为 Privoxy 服务器地址

1
2
export http_proxy="xxx.xxx.x.x:8118"
export https_proxy="xxx.xxx.x.x:8118"

Mac使用Privoxy转发Socks5代理
http://dantefung.github.io/2022/08/21/Mac使用Privoxy转发Socks5代理/
Beitragsautor
DANTE FUNG
Veröffentlicht am
August 21, 2022
Urheberrechtshinweis