linux:kcptun
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:kcptun [2018/01/04 12:22] – created percy | linux:kcptun [2018/01/05 12:33] (current) – percy | ||
---|---|---|---|
Line 5: | Line 5: | ||
- kcp: https:// | - kcp: https:// | ||
- v2ray: https:// | - v2ray: https:// | ||
+ | |||
+ | ===== kcptun usage with shadowsocks ===== | ||
+ | ==== start the server ==== | ||
+ | On you VPS, you should already run your shadowsocks server with port ' | ||
+ | alias kcptun_start=' | ||
+ | or just use the command | ||
+ | ./ | ||
+ | |||
+ | ==== start client ==== | ||
+ | So in your local machine, start the client: | ||
+ | sudo ./ | ||
+ | |||
+ | Now we have set the connection from local port 838 to the remote port 4000. | ||
+ | ==== config your shadowsocks ==== | ||
+ | Set the server to localhost/ | ||
+ | |||
+ | |||
+ | ==== Testing the speed ==== | ||
+ | I did the follow testing | ||
+ | * Just download it directly, curl https:// | ||
+ | * Download it with Shadowsocks, | ||
+ | * Download it with Shadowsocks and kcptun, curl --socks5-hostname localhost: | ||
+ | |||
+ | So we can see the speed is 8689 -> 60858 -> 1088k, the speed is increased significant. | ||
+ | 8.6k * 136, 60k * 18 = 1088k | ||
+ | |||
+ | < | ||
+ | Jianqings-MBP: | ||
+ | % Total % Received % Xferd Average Speed | ||
+ | | ||
+ | 0 72.3M 0 175k 0 | ||
+ | Jianqings-MBP: | ||
+ | % Total % Received % Xferd Average Speed | ||
+ | | ||
+ | 1 72.3M 1 1055k 0 | ||
+ | Jianqings-MBP: | ||
+ | % Total % Received % Xferd Average Speed | ||
+ | | ||
+ | 100 72.3M 100 72.3M 0 | ||
+ | |||
+ | </ | ||
+ | |||
/var/www/dokuwiki/wiki/data/pages/linux/kcptun.txt · Last modified: 2018/01/05 12:33 by percy