ss-libev添加混淆协议

本文是再centos7 x86_64 的vps上做的。给ss-libev增加混淆协议。

1、首先增加各种必要的软件,不然安装会报错
yum install -y git automake libtool autoconf make

如果还报错,可yum install 增加相应模块。

2、下载和安装 simple-obfs
cd /opt
git clone https://github.com/shadowsocks/simple-obfs.git
cd simple-obfs
git submodule update --init --recursive
./autogen.sh
./configure --disable-documentation
make && make install

以上可以一步一步的执行,出错好找原因。

3、配置ss-libev

不会用vim命令的,可以用winscp软件,直接再winscp里面改。登陆服务器找到 /etc/shadowsocks-libev/config.json文件进行修改,增加

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

注意,如果在原来的配置文件最后一行加入上述,需要在原来的最后一行加入英文的 ,  ,不然会报错,反正配置文件除最后一行没有英文逗号,其他每行都有英文逗号。

4、重启ss-libev

执行下面命令重启ss-libev,注意看有没有报错,有报错需要根据情况修改。

/etc/init.d/shadowsocks restart

可以看下面命令看混淆插件是否正常运行/

ps -ef | grep -v grep | grep "server"
5、电脑或路由器看是否正常运行

A、下载最新 Windows 客户端
Windows 客户端下载网址:
https://github.com/shadowsocks/shadowsocks-windows/releases

B、下载 obfs-local.zip
下载网址:
https://github.com/shadowsocks/simple-obfs/releases
下载后,解压出来的文件一定要和 Windows 客户端的 exe 文件放在同一文件夹下

C、客户端配置,如下图

ss-libev添加混淆协议

插件:obfs-local
插件选项:obfs=http
插件参数:obfs-host=www.bing.com
插件选项和插件参数根据你服务端上的配置选择用 http 或者 tls,obfs-host 随便你用什么网址都行。

以上就加好了混淆插件,不过我实测下来,ss速度下降不少,具体什么原因还得再检查。

技术不断升级,请注意文章时效性。
本站文章,欢迎转发。转载请注明出处:https://www.bandwh.com/net/21.html

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注