服务器配置:shadowsocks

By | 2015年10月27日

1.安装pip055

wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
 python get-pip.py

2.通过pip安装

pip install shadowsocks

3.配置 shadowsocks

创建配置文件 /etc/shadowsocks.json. 例如:

{
    "server":"my_server_ip",
    "server_port":8388,
    "local_port":1080,
    "password":"barfoo!",
    "timeout":600,
    "method":"table"
}

Explanation of each field:

  • server: your hostname or server IP (IPv4/IPv6).
  • server_port: server port number.
  • local_port: local port number.
  • password: a password used to encrypt transfer.
  • timeout: connections timeout in seconds.
  • method: encryption method, “bf-cfb”, “aes-256-cfb”, “des-cfb”, “rc4”, etc. Default is table, which is not secure. “aes-256-cfb” is recommended.

 

To run in the foreground:

ssserver -c /etc/shadowsocks.json

To run in the background:

ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop

发表评论

邮箱地址不会被公开。 必填项已用*标注