SS配置

{
"server":"0.0.0.0",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"liyang",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}

ss

A fast tunnel proxy that helps you bypass firewalls.

Features:

  • TCP & UDP support
  • User management API
  • TCP Fast Open
  • Workers and graceful restart
  • Destination IP blacklist

Server

Install

Debian / Ubuntu:

apt-get install python-pip
pip install git+https://github.com/*/*.git@master

CentOS:

yum install python-setuptools && easy_install pip
pip install git+https://github.com/*/*.git@master

Windows:

See Install * Server on Windows.

Usage

ssserver -p 443 -k password -m aes-256-cfb

To run in the background:

sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start

To stop:

sudo ssserver -d stop

To check the log:

sudo less /var/log/*.log

Check all the options via -h. You can also use a [Configuration] file
instead.

Usage with Config File

Create configeration file and run

To start:

ssserver -c /etc/*.json

Documentation

You can find all the documentation in the Wiki.

Configuration via Config File

Create a config file /etc/*.json. Example:
{
"server":"my_server_ip",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}

Name Explanation
server the address your server listens
server_port server port
local_address the address your local listens
local_port local port
password password used for encryption
timeout in seconds
method default: "aes-256-cfb", see Encryption
fast_open use TCP_FASTOPEN, true / false
workers number of workers, available on Unix/Linux

To run in the foreground:

ssserver -c /etc/*.json

To run in the background:

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

使用aes-256-gcm加密方式

pip install https://github.com/*/*/archive/master.zip -U

安装libsodium
apt-get install build-essential
wget https://github.com/jedisct1/libsodium/releases/download/1.0.10/libsodium-1.0.10.tar.gz
tar xf libsodium-1.0.10.tar.gz && cd libsodium-1.0.10
./configure && make -j2 && make install
ldconfig

上一篇:php5.6安装


下一篇:微信iOS WKWebview 网页开发适配指南