Skip to content

EasyPi/openwrt-kcptun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

openwrt-kcptun

Build Status GitHub release

Kcptun on OpenWrt for Raspberry Pi (1/2/3)

Latest version:

How it works

  • This package works in client mode.
  • Please setup a server somewhere.

Directory Tree

openwrt-kcptun
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ Makefile
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ files
    โ””โ”€โ”€ etc
        โ”œโ”€โ”€ config
        โ”‚ย ย  โ””โ”€โ”€ kcptun
        โ””โ”€โ”€ init.d
            โ””โ”€โ”€ kcptun

Edit Makefile to support other platforms:

PKG_NAME:=kcptun
PKG_VERSION:=20170930
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-linux-arm-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/xtaci/kcptun/releases/download/v$(PKG_VERSION)
PKG_MD5SUM:=b40de337d590882cdf0218037662da00caf090e2

Run these commands to build:

$ cd sdk
$ git clone https://github.com/EasyPi/openwrt-kcptun.git package/kcptun
$ make package/kcptun/compile V=s
$ find bin -name 'kcptun*.ipk'

Sample config file:

# /etc/config/kcptun

config kcptun openvpn
    option enabled '0'
    option localaddr ':1194'
    option remoteaddr 'easypi.info:4911'
    option key 'secret'
    list extra_params 'sndwnd=128'
    list extra_params 'rcvwnd=1024'

config kcptun shadowsocks
    option enabled '0'
    option localaddr ':8388'
    option remoteaddr 'easypi.info:8399'
  • You can run multiple kcptun instances.
  • Make sure they listen on different ports.