1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
dockerfiles/kcptun
2017-12-09 19:15:07 +08:00
..
systemd add kcptun.service 2016-08-10 16:49:13 +08:00
docker-compose.yml update kcptun 2017-10-24 16:35:19 +08:00
Dockerfile upgrade kcptun to 20171201 2017-12-09 19:15:07 +08:00
README.md update kcptun 2017-10-24 16:35:19 +08:00

kcptun

kcptun is an extremely simple & fast udp tunnel based on kcp protocol.

How It Works

docker-compose.yml

server:
  image: vimagick/kcptun
  command:
    --listen :29900
    --target google-public-dns-a.google.com:53
    --crypt aes
    --mode fast
  ports:
    - "29900:29900/udp"
  environment:
    - KCPTUN_KEY=******
  restart: always

client:
  image: vimagick/kcptun
  entrypoint: client_linux_amd64
  command:
    --localaddr :12948
    --remoteaddr easypi.pro:29900
    --crypt aes
    --mode fast
  ports:
    - "12948:12948/tcp"
  environment:
    - KCPTUN_KEY=******
  restart: always

Server Setup

$ docker-compose up -d server
$ docker-compose logs -f server

Client Setup

$ docker-compose up -d client
$ docker-compose logs -f client
$ dig @127.0.0.1 -p 12948 www.google.com +tcp