MENU

OpenVZ开启BBR加速SSR一键包

March 22, 2017 • Read: 34584 • 网络笔记

Google的BBR算法相信玩SSR的大家都已经知道了,相对于锐速而言,现在BBR可谓是火爆的很。
首先感谢91云的教程,本次教程因为没有服务器测试,所以只是直接复制了下代码

前期准备

  • 本一键包 Openvz 专用,其他虚拟技术的绕道。。
  • 请选择安装 64bit 的操作系统,目前还没做 32bit 的包
  • VPS 必须支持并开启 TUN/TAP

安装脚本

  1. Alpine linux 小内存版: UML 的系统是 Alpine linux ,需要 64M 内存启动,主机最低 128M 内存

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/uml/master/bbr/uml.sh && bash uml.sh

  1. Centos 版: UML 的系统是 CentOS ,需要 256M 内存启动,主机建议最低 512M 内存

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/uml/master/bbr/uml-centos.sh && bash uml-centos.sh

装完 ssr 和 bbr 就已经运行了,如果你不想改密码和端口的话就可以直接用。。默认配置在下面。。

UML 相关说明

如何进入 uml

screen -x 或者在目录下运行 bash run.sh status
用户名: root , 密码: root

如何退出 uml

在 uml 模式里,通过按快捷键 ctrl+a+d 来退出 screen

删除 uml 进程

bash run.sh stop

启动 uml

bash  run.sh start

如何把文件传入 UML

我已经在 root 目录下新建了个 umlshare 目录( /root/umlshare ) , 在 uml 里也做了挂载,位置同样是 /root/umlshare, 只要把文件放进去就可以了

SSR 相关说明

默认配置
端口:9191
密码:www.91yun.org
加密:RC4-MD5
协议:auth_sha1_v4
混淆:tls1.2_ticket_auth

如何修改 SSR 配置

第一步

根据上面的教程进入 uml

第二步

修改 mudb.json 文件

vi /root/shadowsocksr/mudb.json

把相关的配置改成你自己需要的就可以了。需要说明的是,因为没有编译相关的依赖库,不支持 chacha20 的加密方法

第三步

重启 SSR 程序

bash /root/shadowsocksr/run.sh

最后一步

在母机的安装目录下打开 run.sh 找到下面的代码,把 9191 改成你自己刚才修改的端口

iptables -t nat -A PREROUTING -i venet0 -p tcp --dport 9191 -j DNAT --to-destination 10.0.0.2
iptables -t nat -A PREROUTING -i venet0 -p udp --dport 9191 -j DNAT --to-destination 10.0.0.2

然后重启即可

SSR 添加多用户

python mujson_mgr.py -a -p 端口 -k 密码 -m 加密方式 -O 协议 -o 混淆

加完记得在母机增加 iptables 端口转发相关的代码

Archives QR Code Tip
QR Code for this page
Tipping QR Code
Leave a Comment

8 Comments
  1. 装上BBR 搬瓦工起死回生。

    1. @韩小七你在板瓦工上测试了吗?

    2. @空白网络测试了,装上BBR速度飞起来。

  2. I am truly glad to glance at this weblog posts which consists of lots of useful facts,
    thanks for providing these kinds of statistics.

  3. Saved as a favorite, I love your site!

  4. Meinungen Zu Priligy Amoxicillin Overuse cialis Other Names For Amoxicillin Rhine Inc

  5. Hey! I know this is kinda off topic but I was
    wondering which blog platform are you using for this
    website? I'm getting tired of Wordpress because I've had issues with hackers and I'm looking at
    alternatives for another platform. I would be great if you could point me in the direction of a good platform.

    1. @https://www.viagrapascherfr.com/sildenafil-prix-belgique-live/The blog I use is typecho, which you can access to the typecho.org download