https://www.privoxy.org/sf-download-mirror/Sources/
1、挑选源码版本,下载,解压
2、增加用户 useradd privoxy
3、make & make install
4、配置: /usr/local/etc/privoxy/config
https://www.privoxy.org/user-manual/config.html
forward-socks5t / 127.0.0.1:1080 . listen-address 127.0.0.1:8118
systemctl restart privoxy
生效:
> vim /etc/profile export http_proxy=http://127.0.0.1:8118 export https_proxy=http://127.0.0.1:8118 > source /etc/profile
也可直接 export 让临时生效
测试:
curl www.google.com
修改 svn:
#vim ~/.subversion/servers [global] http-proxy-host = 127.0.0.1 http-proxy-port = 8118