yum install pam-devel openldap-devel openssl-devel yum -y install gcc automake make pam-devel openldap-devel cyrus-sasl-devel
wget https://sourceforge.net/projects/ss5/files/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
tar xvf ss5-3.8.9-5.tar.gz cd ss5-3.8.9-5 ./configure && make && make install
/etc/opt/ss5/ss5.conf
auth 0.0.0.0/0 - - permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - -
daemon /usr/sbin/ss5 -t $SS5_OPTS
在/etc/sysconfig/ss5 中,添加SS5_OPTS=" -u root -b 0.0.0.0:1080"
调整权限
- snippet.bash
chmod 700 /etc/rc.d/init.d/ss5
启动ss5
- snippet.bash
/etc/rc.d/init.d/ss5 restart # 方式一 service ss5 start # 方式二
检查ss5的服务
- snippet.bash
ss -tunlp |grep ss5
tcp LISTEN 0 6 *:1080 *:* users:(("ss5",29610,4))
chkconfig --add ss5 chkconfig --level 355 ss5 on
参考文档:[centos设置用socks5代理](https://www.jianshu.com/p/dc3de7ef2898)
下载安装包
- snippet.bash
wget https://www.privoxy.org/sf-download-mirror/Sources/3.0.28%20%28stable%29/privoxy-3.0.28-stable-src.tar.gz
安装
- snippet.bash
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
vim /usr/local/etc/privoxy/configlisten-address [::]:8118 forward-socks5t / 10.10.183.66:1080 .
启动privoxy
- snippet.bash
/etc/init.d/privoxy start
vim /etc/profile
export http_proxy=http://10.10.183.66:8118 export https_proxy=http://10.10.183.66:8118
source /etc/profile
wget http://baidu.com