1、安裝privoxy
2坦袍、配置privoxy
vim /usr/local/etc/privoxy/config
listen-address 0.0.0.0:8118
forward-socks5 / localhost:1080 .
3、啟動(dòng)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