shadowsocks-libev and simple-obfs

网络 by 神秘人 at 2017-03-24

shadowsocks安装

simple-obfs

Debian / Ubuntu

apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev libudns-dev libev-dev asciidoc xmlto

git clone https://github.com/shadowsocks/simple-obfs.git

cd simple-obfs

git submodule update --init --recursive

./autogen.sh

./configure --prefix=/usr && make

make install

How to fix “failed to run aclocal: No such file or directory”

On Debian, Ubuntu or Linux Mint:

$ apt-get install automake 

安装完成obfs后,在vim /etc/shadowsocks-libev/config.json加入

"plugin":"obfs-server",
"plugin_opts":"obfs=http"

3、给ss-server, root权限,比如:chmod 4755 /usr/bin/ss-server

以便可以使用小于1024以下的端口

4重启vps,看是否自动启动SS及obfs

思考问题(这些不用看)

1、我一般把-u参数放在ss-server后边,或者使用默认的配置文件。

2、我不知道你是通过deb还是编译安装的,看看

/lib/systemd/system 有没有 shadowsocks-libev.service (开机启动服务)

/etc/init.d 有没有 shadowsocks-libev (须要执行权限)

/etc/default 有没有 shadowsocks-libev (默认配置文件)

/etc/shadowsocks-libev 有没有 config.json (自定义配置文件)

以上4个文件如果没有可以在。。/shadowsocks-libev/debian文件夹中找到。

3、看看你的ss-*是在/usr/local/bin下还是在/usr/bin里边,如果在前者,就给移动到/usr/bin里

4、如果以上都没问题 systemctl enable shadowsocks.service就可以开机启动了,你重启检测下

debian下shadowsocks-libev的config.json加了obfs参数,重启后无法自动运行,如何设置

如果配置全部正确的话,那你就是使用1024以下的端口了

解决方法有2种任选其1

1,使用大于1024端口,

2,给ss-server, root权限,比如:chmod 给ss-server, root权限,比如:chmod 4755 /usr/bin/ss-server

通过which ss-server找到路径,换/usr/bin/ss-server