Centos7 Shadowsocks服务 Linux

Cool.Cat 2019-12-26 2464

1、yum -y install python-pip

2、pip install shadowsocks

3、vim /etc/ss.json

{  
     "server":"0.0.0.0",  
     "server_port":7517,  
     "local_address": "127.0.0.1",  
     "local_port":1080,  
     "password":"xxx",  
     "timeout":600,  
     "method":"aes-256-cfb",  
     "fast_open": false
}

4、vim /usr/lib/systemd/system/ss.service

[Unit]
Description=ssserver
[Service]
TimeoutStartSec=0
ExecStart=/usr/bin/ssserver -c /etc/ss.json &
[Install]
WantedBy=multi-user.target

5、systemctl enable ss;

6、systemctl start ss;

7、

# Debian / Ubuntusudo apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev libev-dev asciidoc xmlto automake# CentOS / Fedora / RHELsudo yum install gcc autoconf libtool automake make zlib-devel openssl-devel asciidoc xmlto libev-devel# Archsudo pacman -Syu gcc autoconf libtool automake make zlib openssl asciidoc xmlto# Alpineapk add gcc autoconf make libtool automake zlib-dev openssl asciidoc xmlto libpcre32 libev-dev g++ linux-headers

git clone https://github.com/shadowsocks/simple-obfs.gitcd simple-obfs
git submodule update --init --recursive
./autogen.sh
./configure && make
sudo make install

8、

obfs-server -s 0.0.0.0 -p 7518--obfs http -r 127.0.0.1:7517


最新回复 (0)
返回
发新帖
X