版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/MaxWoods/article/details/89463912
安装:
yum -y install privoxy
启动:
systemctl enable privoxy
systemctl start privoxy
systemctl status privoxy
编辑配置:
vi /etc/privoxy/config
确保有下列配置,根据实际的socks5代理修改端口:
listen-address 127.0.0.1:8118 # 是默认端口
forward-socks5t / 127.0.0.1:1080 . #转发到本地端口1080
修改/etc/profile增加如下配置:
export http_proxy=http://127.0.0.1:8118
export https_proxy=http://127.0.0.1:8118
刷新配置:
source /etc/profile
访问google测试:
curl www.google.com