实验环境
centos6.5_x64
实验软件
ss5-3.8.9-8.tar.gz
软件安装
yum -y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel
tar zxvf /root/ss5-3.8.9-8.tar.gz
cd /root/ss5-3.8.9
./configure && make && make install
cp -pv /etc/opt/ss5/ss5.conf /etc/opt/ss5/ss5.conf.bak
cat /etc/opt/ss5/ss5.conf
auth 0.0.0.0/0
permit - 0.0.0.0/0 - 0.0.0.0/0 取消#
cp -pv /etc/sysconfig/ss5 /etc/sysconfig/ss5.bak
cat /etc/sysconfig/ss5
SS5_OPTS=" -u root"
cp -pv /etc/opt/ss5/ss5.passwd /etc/opt/ss5/ss5.passwd.bak 配置用户名/验证
echo test1 123456 > /etc/opt/ss5/ss5.passwd
cat /etc/opt/ss5/ss5.passwd
test1 123456
chmod +x /etc/init.d/ss5
systemctl restart ss5 && systemctl enable ss5
netstat -tuplna | grep LISTEN
tcp 0 0 0.0.0.0:1080 0.0.0.0:* LISTEN 11514/ss5
linux客户端配置proxy
yum install -y privoxy
cp -pv /etc/privoxy/config /etc/privoxy/config.bak
cat /etc/privoxy/config | grep 1080
forward-socks5t / sockip:1080 .
cp -pv /etc/profile /etc/profile.bak
echo "PROXY_HOST=154.83.17.231" >> /etc/profile
echo "export all_proxy=http://127.0.0.1:8118" >> /etc/profile
echo "export http_proxy=http://127.0.0.1:8118" >> /etc/profile
echo "export https_proxy=http://127.0.0.1:8118" >> /etc/profile
source /etc/profile
service privoxy restart && chkconfig --level 35 privoxy on
netstat -tuplna | grep LISTEN
tcp 0 0 127.0.0.1:8118 0.0.0.0:* LISTEN 2048/privoxy
curl ifconfig.io 显示sock_ip
















