1、安装privoxy
2、配置privoxy
vim /usr/local/etc/privoxy/config
listen-address 0.0.0.0:8118
forward-socks5 / localhost:1080 .
3、启动privoxy
sudo /usr/local/sbin/privoxy /usr/local/etc/privoxy/config
4、检查是否成功
netstat -na | grep 8118
5、使用
export http_proxy='http://localhost:8118'
export https_proxy='http://localhost:8118'
unset http_proxy
unset https_proxy
curl ip.cn
网友评论