Get the App
SLTechnology News&Howtos  ›  Servers  › 

Shadowsocks installs kcptun acceleration

Shulou Source: shulou.com Published: 2022-06-03 05:11:32 09月21日 Update

Kcptun introduction

Kcptun is a very simple and fast UDP tunnel based on KCP protocol, which can convert TCP streams into KCP+UDP streams. KCP is a fast and reliable protocol, which can reduce the average delay by 30% 40% and the maximum delay by three times at the cost of wasting 10% of the bandwidth of TCP.

Kcptun is a simple application of KCP protocol, which can be used for the transmission and bearer of any TCP network program to improve network fluency and reduce offline. Because Kcptun is written in the Go language, it has a low memory footprint (tested to run stably on a 64m memory server) and is suitable for all platforms, even Arm platforms.

Schematic diagram of Kcptun:

KCP protocol: https://github.com/skywind3000/kcp

Kcptun project address: https://github.com/xtaci/kcptun

=

I) kcptun server configuration

Server operating system: CentOS7

You need to install the Shadowsocks server and start it.

1) download kcptun:

Find the version you want (x86:amd64, x32: 386)

Such as wget https://github.com/xtaci/kcptun/releases/download/v20170525/kcptun-linux-amd64-20170525.tar.gz

Extract to directory / share/kcptun

Tar xf kcptun-linux-amd64-20170525.tar.gz

2) write the relevant configuration into a file:

Cat > > config.json > / etc/supervisord.conf

Tags: Services customer client configuration run file fluency platform port monitor memory address situation server version network web page process transmission delay Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information MySQL Linux macOS Microsoft