Code Monkey home page Code Monkey logo

kcptun-asio's Introduction

Name

kcptun-asio -- A Secure Tunnel Based On KCP with N:M Multiplexing
kcptun-asio is based on C++11 and Asio, fully compatible with kcptun(go)

Synopsis

$ ./kcptun_client -l :6666 -r xx:xx:xx:xx:yy --key password --crypt aes --mtu 1200 --ds 20 --ps 10 --nocomp
$ ./kcptun_server -l :7777 -t xx:xx:xx:xx:yy --key password --crypt aes --mtu 1200 --ds 20 --ps 10 --nocomp

Features

  • reliable data transfering based on kcp protocol
  • support aes*/xor/xtea/none/cast5/blowfish/twofish/3des/salsa20 encryption
  • multiplexing
  • snappy streaming compression and decompression,based on google/snappy.The data frame format is frame_format
  • forward error correction
  • lower resource consumption

Build

Prerequisites

  1. asio
  2. cryptopp
  3. snappy

Unix-like system

  1. Get the latest code
$ git clone https://github.com/ccsexyz/kcptun-asio.git  
  1. Run build.sh
$ ./build.sh  

odd Windows

Fuck MSVC.

TODO

  • performance optimization(memory optimization & CPU optimization)  
  • improve smux

kcptun-asio's People

Contributors

ccsexyz 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kcptun-asio's Issues

build error

make[3]: *** No rule to make target gflags/libgflags_nothreads.a', needed by kcptun_client'. Stop.
make[2]: *** [CMakeFiles/kcptun_client.dir/all] Error 2
make[1]: *** [CMakeFiles/kcptun_client.dir/rule] Error 2

我在使用 kcptun_asio_windows_x86 进行HTTP加速发现不能建立连接

你好!
我在使用 kcptun_asio_windows_x86 进行HTTP加速发现不能建立连接,

server 192.168.1.1
client 192.168.1.2

client 发起http请求 <--> sock5-client <--> kcptun_client <--> 服务端 kcptun_server <--> sock5-server

HTTP客户端代理使用的是 privoxy, IE设置LAN代理为 127.0.0.1:8123
privoxy配置文件 -- 把HTTP协议转换成sock5
listen-address 127.0.0.1:8123
show-on-task-bar 0
activity-animation 0
forward-socks5 / 127.0.0.1:1080 .
hide-console

kcptun_client -l :1080 -t 192.168.1.1:1899 --key password --crypt aes --mtu 1200 --ds 20 --ps 10 --nocomp
kcptun_server -l :1899 -t 127.0.0.1:1088 --key password --crypt aes --mtu 1200 --ds 20 --ps 10 --nocomp

socks5_server IP端口 127.0.0.1:1088

直接测试
privoxy->socks5_server 可以上网,添加了 kcptun 就不能访问网站了

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.