ss5&ss搭建

#! /bin/bash
sudo su
yum -y install gcc automake make pam-devel openldap-devel cyrus-sasl-devel openssl-devel
wget https://jaist.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz --no-check-certificate
tar xvf ss5-3.8.9-8.tar.gz
cd ss5-3.8.9
./configure && make && make install
echo auth "0.0.0.0/0  -    u" >> /etc/opt/ss5/ss5.conf
echo "permit u       0.0.0.0/0       -       0.0.0.0/0       -       -       -       -       -" >>  /etc/opt/ss5/ss5.conf
echo "123 321" >> /etc/opt/ss5/ss5.passwd
echo "SS5_OPTS=\" -u root\"" >>  /etc/sysconfig/ss5
chmod a+x /etc/rc.d/init.d/ss5
service ss5 start
chkconfig --add ss5
chkconfig --level 345 ss5 on
echo "mkdir /var/run/ss5/" >> /etc/rc.d/rc.local
chmod a+x /etc/rc.d/rc.local
echo 1

  

#! /bin/bash
sudo su root
yum install -y yum-utils
yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io
systemctl start docker
systemctl enable docker
docker run -e PASSWORD=123 -p8888:8388 -p8888:8388/udp -d --restart=always shadow和谐socks/shadows和谐ocks-libev

  

posted @ 2023-07-21 15:27  zenghansen  阅读(39)  评论(0编辑  收藏  举报