代理配置系列之ss

2020-12-28 11:48:04 浏览数 (1)

for python in ubuntu

1. install ssserver

代码语言:txt复制
sudo apt install shadowsocks

2. edit configure file: vim ss_config.json

代码语言:txt复制
{
	"server": "0.0.0.0",
	"server_port": 8888,
	"local_port": 1080,
	"password": "password",
	"timeout": 600,
	"method": "aes-256-cfb"
}

3. run ssserver

代码语言:txt复制
ssserver -h

4. connect ssserver

代码语言:txt复制
sslocal -c ss_config.json -d start

for c in ubuntu

1. install server and client in ubuntu

代码语言:txt复制
sudo apt install shadowsocks-libev

2. edit configure file

代码语言:txt复制
sudo vim /etc/shadowsocks-libev/config.json
sudo vim /etc/default/shadowsocks-libev

or

代码语言:txt复制
sudo gedit /etc/shadowsocks-libev/config.json
sudo gedit /etc/default/shadowsocks-libev

3. start client as a daemen

代码语言:txt复制
systemctl start shadowsocks-libev-local@config
systemctl enable shadowsocks-libev-local@config

4. start server as a daemen

代码语言:txt复制
systemctl start shadowsocks-libev
systemctl enable shadowsocks-libev

0 人点赞