Ubuntu Server 安装 Shadowsocks-libev 服务端 及 simple-obfs

Ubuntu 14.04 和 Ubuntu 16.04 用户需新增 PPA 源
sudo apt-get install software-properties-common #如果提示「Command not found」才运行此命令
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev
安装 Shadowsocks-libev
sudo apt-get update
sudo apt install shadowsocks-libev
安装 simple-obfs
sudo apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev libc-ares-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
cd ..
rm -rf simple-obfs
编辑配置文件
sudo vim /etc/shadowsocks-libev/config.json
配置文件
{
    "server":"0.0.0.0",
    "server_port":8443,
    "local_port":1080,
    "password":"FuckGFW",
    "timeout":60,
    "method":"chacha20-ietf-poly1305",
    "plugin":"obfs-server",
    "plugin_opts":"obfs=http"
}

一般来说没有特殊需求只改服务器端口「server_port」和密码「password」,另外出于安全的考虑目前仅推荐使用 AEAD 算法:

chacha20-ietf-poly1305、aes-256-gcm、aes-192-gcm、aes-128-gcm

运行及开机启动
sudo /etc/init.d/shadowsocks-libev start    # 或
sudo systemctl start shadowsocks-libev
sudo systemctl enable shadowsocks-libev    #开机启动

Conners Hua

欢迎入群讨论:Telegram >QQ群 42302626 >(不交流不和谐话题)

You may also like...

2 Responses

  1. meowdan说道:
    Unknown Unknown Unknown Unknown

    还要加一条 sudo systemctl enable shadowsocks-libev 开机自启才能成功

发表评论

电子邮件地址不会被公开。