如何手动安装和配置simple-obfs
# Debian / Ubuntu
sudo apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev libudns-dev libev-dev asciidoc xmlto
# CentOS / Fedora / RHEL
sudo yum install gcc autoconf libtool automake make zlib-devel openssl-devel asciidoc xmlto
# Arch
sudo pacman -Syu gcc autoconf libtool automake make zlib openssl asciidoc xmlto
git clone https://github.com/shadowsocks/simple-obfs.git
cd simple-obfs
git submodule update --init --recursive
./autogen.sh
./configure && make
sudo make install
配置:
重新配置 Shadowsocks-libev 的配置文件/etc/shadowsocks-libev/config.json
添加如下一行:
"plugin":"/usr/local/bin/obfs-server --obfs http"
确认 ss-server 和 obfs-server 进程已经正常启动。
命令如下:
ps -ef | grep -v grep | grep "server"
输出结果参考:
/usr/local/bin/ss-server -u -c /etc/shadowsocks-libev/config.json -f /var/run/shadowsocks-libev.pid
/usr/local/bin/obfs-server --obfs http