The Wayback Machine - https://web.archive.org/web/20230408220523/https://github.com/net-byte/qtun
Skip to content

net-byte/qtun

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

qtun

A tcp/udp proxy over quic.

Travis Go Report Card image image

Usage

Cmd

Usage of ./qtun:
  -S    server mode
  -U    udp mode
  -ck string
        client key file path (default "../certs/client.key")
  -cp string
        client pem file path (default "../certs/client.pem")
  -from string
        from address (default ":1987")
  -sk string
        server key file path (default "../certs/server.key")
  -sp string
        server pem file path (default "../certs/server.pem")
  -t int
        connection timeout in seconds (default 30)
  -to string
        to address (default ":1080")

Docker

Run client

docker run -d --name qtun-client -p 1987:1987 netbyte/qtun -from=:1987 -to=SERVER_IP:1988 -ck=/app/certs/client.key -cp=/app/certs/client.pem -sk=/app/certs/server.key -sp=/app/certs/server.pem

Run server

docker run -d --name qtun-server -p 1988:1988/udp netbyte/qtun -S -from=:1988 -to=DST_IP:DST_PORT -ck=/app/certs/client.key -cp=/app/certs/client.pem -sk=/app/certs/server.key -sp=/app/certs/server.pem

Setting on linux

It is recommended to increase the maximum buffer size by running:

sysctl -w net.core.rmem_max=2500000