shadowsocks+ubuntu配置

shadowsocks+ubuntu

  1. sudo apt install shadowsocks

  2. vim ss.json

    1
    2
    3
    4
    5
    6
    7
    8
    {
    "server":"11.22.33.44",
    "server_port":50003,
    "local_port":1080,
    "password":"123456",
    "timeout":600,
    "method":"aes-256-cfb"
    }
  3. sslocal -c ss.json或者sudo sslocal -c ss.json .start

浏览器配置

  1. chrome 插件SwitchyOmega
  2. PAC列表 github

服务器端

配置文件

1
2
3
4
5
6
7
8
9
10
11
12
13
{
"server":"your_server_ip",
"port_password":{
"8381":"pass1",
"8382":"pass2",
"8383":"pass3",
"8384":"pass4"
},
"timeout":60,
"method":"rc4-md5",
"fast_open":false,
"workers":1
}

启动和停止

1
ssserver -c shadowsocks.json -d start

开机启动

1
2
3
vim /etc/rc.local
# 下面代码复制到 rc.local 中
ssserver -c /etc/shadowsocks.json -d start

###