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.