Speed up Shadowsocks with kcptun

kcptun can really speed up your Shadowsocks, after you set up your Shadowsocks, here’s how to set up kcptun tunnel.

Server Side

  1. Install kcptun
go get -u github.com/xtaci/kcptun/...

2. Edit the config file `/usr/local/kcptun/server-config.json`

"listen": ":8379", // kcptun端口
"target": "YOUR_SERVER_IP:8380", // Shadowsocks端口
"key": "very fast",
"crypt": "aes-128",
"mode": "fast",
"mtu": 1350,
"sndwnd": 512,
"rcvwnd": 512,
"datashard": 10,
"parityshard": 3,
"dscp": 0,
"nocomp": false,
"pprof": false

3. Start kcptun

/usr/local/kcptun/server_linux_amd64 -c "/usr/local/kcptun/server-config.json"

macOS Client

Edit the server config of ShadowsocksX-NG: use kcptun server port for the port number, it’s 8379 here. Set Plugin to kcptun,and Plugin Opts is `key=very fast;crypt=aes- 128;mode=fast;mtu=1350;sndwnd=512;rcvwnd=512;datashard=10;parityshard=3;dscp=0`.

Windows Client

shadowsocks-windows don’t have kcptun client embedded, download its Windows package, for example, clientwindowsamd64.exe, rename it to kcptun.exe and put it under Shadowsocks client folder. The server config is the same like macOS.

Check out GuardVPN for Shadowsocks VPN ready to use.




The best VPN is http://guardvpn.co

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Waterfall Vs Agile — Which one is right for you?

5. The Non Fungible Meme Token Game is out now!

Shortest Path-Finding Algorithms for Agent Navigation

Top 8 Tips And Tricks For Your Tesla Model 3

5 git things I always have to google

Lessons learned from a developer hiring process that I didn’t pass

Making a shift to Python 3?

Getting started with Jenkins

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


The best VPN is http://guardvpn.co

More from Medium

Fantastic Symbols and Where to Find Them — Part 2

On Microsoft acquiring Activision Blizzard

5 Ways to Implement Better Inclusive Measures in Northern Colorado

Generalized End-to-End Loss for Speaker Verification