搬瓦工搭建kcptun加速ShadowsocksR

上一次介绍使用finalspeed加速shadowsocksR效果很好  但是太占系统资源且只能在PC端使用
网上又搜索了下  发现可以使用kcptun加速Shadowsocks  优点是占用系统资源少  支持路由器安卓PC使用,最新安卓版本的shadowsocks客户端中已经集成了KCP协议,SS原作者推荐的准好使,于是又折腾了下,发现确实好使  加速效果也好。最后决定放弃使用finalspeed加速shadowsocks了。
搬瓦工官网https://bandwagonhost.com/
免翻墙备用域名https://bwh1.net/
查看所有在售套餐https://bwh1.net/cart.php
欢迎使用我的邀请链接https://bandwagonhost.com/aff.php?aff=10904 购买
加速后看1440P的油管都可以流畅不卡   测试链接https://www.youtube.com/watch?v=16eF8IQzgP8


搬瓦工是一个主打低价的Linux主机VPS提供商,其性价比超高。支持支付宝付款。
购买VPS不要挂SS,否则容易被判断为欺诈。解决搬瓦工官网被屏蔽的解决办法
Windows中hosts文件一般在C:\Windows\System32\drivers\etc目录下,用记事本在hosts文件下加一行
104.20.6.63 bandwagonhost.com

搭建ShadowsocksR、kcptun前期准备

(以Centos 6 x86为例)
yum update    #运行更新升级
/sbin/iptables -I INPUT -p tcp --dport 8888 -j ACCEPT    #开启SSR默认服务器端口8388
/sbin/iptables -I INPUT -p tcp --dport 29900 -j ACCEPT   #开启Kcptun默认服务器端口29900
/etc/rc.d/init.d/iptables save      #保存
/etc/init.d/iptables restart       #重启防火墙生效
/etc/init.d/iptables status        #查看是否开启成功
默认端口号可以自定义其它的

ShadowsocksR 服务端安装教程

yum install git  #基本库安装
git clone -b manyuser https://github.com/breakwa11/shadowsocks.git   #获取源代码
cd /root/shadowsocks   #进入SSR安装目录
cp config.json user-config.json   #创建配置文件
vi user-config.json      #修改配置文件i编辑完后ESC返回:wq保存退出
cd /root/shadowsocks   #进入SSR安装目录
python server.py -d start   #开启后台运行SSR
如果系统重启了的话重复以下2步骤开启
详情请查看https://github.com/breakwa11/shadowsocks-rss/wiki/Server-Setup
cd /root/shadowsocks   #进入SSR安装目录
python server.py -d start   #开启后台运行SSR
不想手动折腾安装SSR的可以在KiwiVM控制面板中开启一键安装Shadowsocks

Kcptun 服务端一键安装脚本

wget https://raw.githubusercontent.com/kuoruan/kcptun_installer/master/kcptun.sh
chmod +x ./kcptun.sh
./kcptun.sh
使用kcptun前必须确保SS安装完毕并且能正常使用,接下来按提示操作即可 加速IP 127.0.0.1 加速端口8388 Kcptun的服务端端口29900 Kcptun key密码test(示范)crypt salsa20 mode fast2详情请查看https://blog.kuoruan.com/110.html
客户端使用
WindowsPC如下

安卓如下
打开启用KCP协议
KCP端口29900
手机端参数可以使用:
--key test --crypt salsa20 --mode fast2

发表评论

1 评论

  1. 手机端不能用,参数一致还是无法连接

    回复删除