linux:kcptun
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:kcptun [2018/01/04 12:57] – percy | linux:kcptun [2018/01/05 12:33] (current) – percy | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== kcptun usage with shadowsocks ===== | ===== kcptun usage with shadowsocks ===== | ||
==== start the server ==== | ==== start the server ==== | ||
- | On you VPN, you should already run your shadowsocks server with port ' | + | On you VPS, you should already run your shadowsocks server with port ' |
alias kcptun_start=' | alias kcptun_start=' | ||
or just use the command | or just use the command | ||
Line 14: | Line 14: | ||
==== start client ==== | ==== start client ==== | ||
- | So in your client: | + | So in your local machine, start the client: |
- | sudo ./ | + | sudo ./ |
Now we have set the connection from local port 838 to the remote port 4000. | Now we have set the connection from local port 838 to the remote port 4000. | ||
Line 22: | Line 22: | ||
+ | ==== 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/attic/linux/kcptun.1515041844.txt.gz · Last modified: 2018/01/04 12:57 by percy