centos设置用socks5代理

http://www.privoxy.org/sf-download-mirror/Sources/

tar axf privoxy-3.0.28-stable-src.tar.gz
cd privoxy-3.0.28-stable
yum -y install gcc autoconf
useradd privoxy



autoheader  &&  autoconf
./configure
make && make install

编辑/usr/local/etc/privoxy/config

isten-address 127.0.0.1:8118  
forward-socks5t   /               10.0.0.254:10808 .

启动
/etc/init.d/privoxy start

export http_proxy=http://127.0.0.1:8118
export https_proxy=http://127.0.0.1:8118

你可能感兴趣的:(centos设置用socks5代理)