Giter Site home page Giter Site logo

openwrt-kcptun's Introduction

openwrt-kcptun

Kcptun Client/Server for OpenWrt

OpenWrt/LEDE 上可用的 Kcptun 客户端/服务端

Release Version Latest Release Download

安装说明

  1. release 页面下载最新版的kcptun-clientkcptun-server(注:请根据你的路由器架构下载对应版本)

  2. 将文件上传到你的路由器上,进行安装

opkg install kcptun-client_*.ipk
opkg install kcptun-server_*.ipk

安装完毕,你可以在 /usr/bin 目录下找到对应的二进制文件。

root@OpenWrt:~# kcptun-client -v
kcptun version 20190109-2_OpenWrt

root@OpenWrt:~# kcptun-server -v
kcptun version 20190109-2_OpenWrt

配合 luci-app-kcptun 使用时,请将 客户端文件 路径配置为 /usr/bin/kcptun-client

  • 注意:luci-app-kcptun 并不支持 kcptun-server

编译说明

请使用最新版的 OpenWrt SDK 或 master 版源代码。

进入 SDK 根目录或源码根目录,执行命令下载 Makefile:

git clone https://github.com/kuoruan/openwrt-kcptun.git package/kcptun

编译流程:

./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig

Network  ---> Web Servers/Proxies  ---> <*> kcptun-client
Network  ---> Web Servers/Proxies  ---> <*> kcptun-server

make package/kcptun/{clean,compile} V=s

卸载说明

opkg remove kcptun-client
opkg remove kcptun-server

openwrt-kcptun's People

Contributors

kuoruan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openwrt-kcptun's Issues

希望考虑更新使用nftables替代iptables

OpenWRT 22.03已经默认使用nftables了,是尝试重新编译打包ipk安装可以正常运行,但是会让openwrt增加了一个iptables包,跟系统有些不和谐。希望可以更新一下,使用nftables替代iptables。谢谢!

编译报错,请高手帮忙

错误如下:os/user
runtime/debug
runtime/race
testing
testing/iotest
testing/quick
text/scanner

( cd "/home/ubuntu/1/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/host/go-1.19.5/src" ; GOROOT_FINAL="/home/ubuntu/1/staging_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/host/lib/go-cross" GOROOT_BOOTSTRAP="/home/ubuntu/1/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/host/go-1.19.5/.go_bootstrap" GO_LDFLAGS="-buildmode pie" GOCACHE="/home/ubuntu/1/tmp/go-build" GOENV=off CC="gcc" CXX="g++" bash make.bash --no-banner ; )
Building Go cmd/dist using /home/ubuntu/1/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/host/go-1.19.5/.go_bootstrap. (go1.4-bootstrap-20170531 linux/amd64)
Building Go toolchain1 using /home/ubuntu/1/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/host/go-1.19.5/.go_bootstrap.

bootstrap/cmd/compile/internal/ssa

/home/ubuntu/1/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/host/go-1.19.5/src/cmd/compile/internal/ssa/rewritedec64.go:63[/home/ubuntu/1/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/host/go-1.19.5/pkg/bootstrap/src/bootstrap/cmd/compile/internal/ssa/rewritedec64.go:67]: out of memory
go tool dist: FAILED: /home/ubuntu/1/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/host/go-1.19.5/.go_bootstrap/bin/go install -gcflags=-l -tags=math_big_pure_go compiler_bootstrap purego bootstrap/cmd/...: exit status 2
Makefile:366: recipe for target '/home/ubuntu/1/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/host/go-1.19.5/.built' failed
make[2]: *** [/home/ubuntu/1/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/host/go-1.19.5/.built] Error 2
make[2]: Leaving directory '/home/ubuntu/1/feeds/packages/lang/golang/golang'
package/Makefile:105: recipe for target 'package/feeds/packages/golang/host/compile' failed
make[1]: *** [package/feeds/packages/golang/host/compile] Error 2
make[1]: Leaving directory '/home/ubuntu/1'
/home/ubuntu/1/include/toplevel.mk:192: recipe for target 'package/openwrt-kcptun/compile' failed
make: *** [package/openwrt-kcptun/compile] Error 2

路由器KCPTUN-client经常需要重新启动

LEDE kcptun-client时不时就断了,需要重新启动才能恢复链接(然后又断)。

LEDE kcptun-client

Client Status: Running
Client Version: 20200409-1
LuCI Version: 1.5.3
Memory percentage: 0

Server: ********:29198
Local host: 12948
crypt: NONE
mode: FAST
sndwnd: 512
nocomp: Disable Compression
剩余的是默认,已确认与服务器端一致

Last 50 lines of log file:

2020/04/24 18:02:23 stream closed in: 192.168.0.1:39444 out: ********:29198(561)
2020/04/24 18:02:23 stream closed in: 192.168.0.1:39716 out: ********:29198(753)
2020/04/24 18:02:23 stream closed in: 192.168.0.1:39738 out: ********:29198(767)

没有相关的syslog

Shadowsocks端
UDP-Relay Server: Disable
Local Port: 1234
Override MTU: 1492

TCP Fast Open: no
TCP no-delay: no

谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.