shadowsocks_libev 使用说明 - sdh2008/shadowsocks_install_wiki GitHub Wiki

安装 shadowsocks_libev(Debian & Ubuntu)

Install from repository

Shadowsocks-libev is available in the official repository for following distributions:

  • Debian 8 or higher, including oldstable (jessie), stable (stretch), testing (buster) and unstable (sid)
  • Ubuntu 16.10 or higher
sudo apt update
sudo apt install shadowsocks-libev

Configure and start the service

# Edit the configuration file
sudo vim /etc/shadowsocks-libev/config.json

# Edit the default configuration for debian
sudo vim /etc/default/shadowsocks-libev

# Start the service
sudo /etc/init.d/shadowsocks-libev start    # for sysvinit, or
sudo systemctl start shadowsocks-libev      # for systemd

config.json 配置文件

{
    "server":["::", "0.0.0.0"],
    "mode":"tcp_and_udp",
    "server_port":8843,
    "local_port":1080,
    "password":"password",
    "timeout":60,
    "method":"chacha20-ietf-poly1305"
}

如果不行:修改为"server":["::1", "127.0.0.1"],

个人使用:"timeout":600,

目前仅推荐使用AEAD算法:

chacha20-IETF-poly1305
AES-256-GCM
AES-192-GCM
AES-128-GCM

升级

sudo apt-get update && sudo apt-get upgrade

====================已去除该功能======================

shadowsocks_libev 添加混淆(非必须)

安装simple-obfs

sudo apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev libev-dev asciidoc xmlto automake git
git clone https://github.com/shadowsocks/simple-obfs.git
cd simple-obfs
git submodule update --init --recursive
./autogen.sh
./configure && make
sudo make install

config.json 配置文件添加字段

  "plugin":"obfs-server",
  "plugin_opts":"obfs=tls;obfs-host=www.hostname.com"