[TOC]
Install obfs
Github:https://github.com/shadowsocks/simple-obfs
yum install gcc autoconf libtool automake make zlib-devel openssl-devel asciidoc xmlto libev-devel
git clone https://github.com/shadowsocks/simple-obfs.git
cd simple-obfs
git submodule update --init --recursive
./autogen.sh
./configure && make
sudo make install
Install Service
Github:https://github.com/shadowsocks/shadowsocks-libev
yum install git vim wget -y
yum install epel-release -y
yum install gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto c-ares-devel libev-devel libsodium-devel mbedtls-devel -y
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
git submodule update --init --recursive
./autogen.sh && ./configure
make && make install
Server configuration
touch /etc/shadowsocks.json
{
"nameserver": "x.x.x.x", #域名(不配置域名可删除此行)
"server":"0.0.0.0", #服务器IP
"server_port":12616, #端口(可自定义)
"password":"123456", #密码
"timeout":300, #超时时间
"plugin": "obfs-server", #插件信息
"plugin_opts": "obfs=http", #插件参数
"method":"aes-256-gcm", #加密方式
"fast_open": false #快速打开
}
Process Guardian
touch /usr/lib/systemd/system/shadowsocks.service
[Unit]
Description=Shadowsocks Server
After=network.target
[Service]
ExecStart=/usr/local/bin/ss-server -c /etc/shadowsocks.json
Restart=on-abort
[Install]
WantedBy=multi-user.target
systemctl start /usr/lib/systemd/system/shadowsocks.service
Client configuration
Download
China:MacOS、Android、Windows、obfs
Others:MacOS、Android、Windows、obfs
客户端添加配置时,注意以下两栏内容:
插件 : obfs-local
插件选项 : obfs=http;obfs-host=item.taobao.com
Windows 客户端需要下载 obfs 混淆插件,下载插件后,放入 Shadowsocks 根目录下。obfs-host 是待伪装的网站,可以自定义。