找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 29875|回复: 82

利用kcptun加速VPS

 火.. [复制链接]
发表于 2016-11-24 23:02 | 显示全部楼层 |阅读模式
本帖最后由 BettermanBao 于 2016-11-24 23:08 编辑

最近一阵子一直在研究如何在ar71xx和ramips的路由器上完美运行kcptun。经过一段时间的折腾以及与作者的沟通,目前最新版的kcptun已经可以在mt7620 64M内存的路由器上完美运行了。
魔都电信之前s-s直连Sentris的VPS,速度 <1Mbps,通过kcptun加速以后速度可以稳定在4Mbps左右,U管1080p可以流畅播放。

PS. 其实速度可以做到更快,但是sentris的小鸡对大流量管的很严,加速太快server就会被suspended。所以,各位有给力的VPS的,可以把client端配置文件中的rcvwnd和server端的sndwnd继续调大。

推荐配置文件
路由端:
  1. {
  2.     "localaddr": ":12948",
  3.     "remoteaddr": "vps:29900",
  4.     "key": "it's a secrect",
  5.     "crypt": "salsa20",
  6.     "mode": "fast2",
  7.     "conn": 1,
  8.     "autoexpire": 300,
  9.     "mtu": 1350,
  10.     "sndwnd": 128,
  11.     "rcvwnd": 256,
  12.     "datashard": 10,
  13.     "parityshard": 3,
  14.     "dscp": 46,
  15.     "nocomp": true,
  16.     "acknodelay": false,
  17.     "nodelay": 0,
  18.     "interval": 20,
  19.     "resend": 2,
  20.     "nc": 1,
  21.     "sockbuf": 4194304,
  22.     "keepalive": 10
  23. }
复制代码
VPS端:
  1. {
  2. "listen": ":29900",
  3. "target": "127.0.0.1:12948",
  4. "key": "it's a secrect",
  5. "crypt": "salsa20",
  6. "mode": "fast2",
  7. "conn": 1,
  8. "autoexpire": 300,
  9. "mtu": 1350,
  10. "sndwnd": 256,
  11. "rcvwnd": 256,
  12. "datashard": 10,
  13. "parityshard": 3,
  14. "dscp": 46,
  15. "nocomp": true,
  16. "acknodelay": false,
  17. "nodelay": 0,
  18. "interval": 20,
  19. "resend": 2,
  20. "nc": 1,
  21. "sockbuf": 4194304,
  22. "keepalive": 10
  23. }
复制代码

路由端client程序下载:https://github.com/bettermanbao/openwrt-kcptun
VPS端server程序下载:https://github.com/xtaci/kcptun

64M内存的ar9341和mt7620的路由实测完美运行,各位自己搭的VPS速度慢的赶快试试吧。

顺便推荐一下,5.49刀用3年的 Sentris VPS,性价比超越搬瓦工。走的是PCCW的线路,这个价格的VPS,直连网速各位就不要苛求了。
购买链接:
http://www.sentris.net/billing/aff.php?aff=421&gid=18

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 4恩山币 +6 收起 理由
joem0 + 1 FQ速度不靠技术,靠资金。。
szbsy + 1 支付宝已转500w给你!
i0909aaaa + 1 亲,你太牛逼了,走,我请你吃鳇鱼头去~~~
zshwq5 + 3 我来恩山就是为了看你!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2016-11-24 23:11 | 显示全部楼层
看下。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-24 23:17 | 显示全部楼层
收藏先,感谢分享。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 08:26 | 显示全部楼层
顶楼主啦..希望楼主多发精品好帖啦.....
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 09:14 | 显示全部楼层
是什么地址呢?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 10:01 | 显示全部楼层
谢谢楼主分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 10:12 | 显示全部楼层
支持,顶一个
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 10:13 | 显示全部楼层
:smoke Mark一下,回头再学习
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 10:18 | 显示全部楼层
学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 10:32 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 10:35 | 显示全部楼层
这个有些时候有些问题好像是运营商会屏蔽KCPTUN。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 10:36 | 显示全部楼层
看费用好便宜啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 10:36 | 显示全部楼层
用了 效果是明显的但是缺点也一样,会多消耗 2倍-3倍的流量,据说 。。。。

点评

调配好参数就行了,流量翻倍是以前的情况,现在逐渐好转些  详情 回复 发表于 2016-11-30 08:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 10:38 | 显示全部楼层
现在在用搬瓦工,楼主推荐的便宜vps想看看。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-25 10:42 | 显示全部楼层
看看呢?这么便宜啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 17:19

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表