使用 privoxy 转发 socks 到 http

使用 privoxy 转发 socks 到 http

安装及配置

安装

1
2
$ sudo apt-get update
$ sudo apt-get install privoxy

配置,在文件​/etc/privoxy/config 末追加内容

1
2
3
4
# 把本地 HTTP 流量转发到本地 1080 SOCKS5 代理
forward-socks5t / 127.0.0.1:1080 .
# 可选,默认监听本地连接
listen-address 127.0.0.1:8118

重新加载配置

1
2
$ sudo /etc/init.d/privoxy start
$ sudo /etc/init.d/privoxy reload   # 不重启服务的情况下重新加载配置

privoxy 默认开机自启动

参考:

赞赏