Git Product home page Git Product logo

udptun's Introduction

udptun

Multi-socket UDP tunnel

Usage

USAGE:
    udptun [FLAGS] [OPTIONS]

FLAGS:
    -h, --help                 Prints help information
    -4                         Exclusively use IPv4
    -6                         Exclusively use IPv6
    -L, --log-data             Print a log line per data packet transferred
    -B, --print-data-buffer    Print the contents of the data buffer for each packet transferred
    -v, --verbose              Print more information
    -V, --version              Prints version information

OPTIONS:
    -b, --bufsize <SIZE>                 Packet buffer size, if smaller than packets sent they will get truncated
                                         [default: 65536]
    -E, --entry <ADDRESS>                Specifies that this is the tunnel entry point; the specified address is the one
                                         clients connect to
    -f, --format <FORMAT>                Set the log line format
    -l, --listen <ADDRESS>               The address/port to use for communication inside the tunnel
    -r, --remote <ADDRESS>               Specifies the address of the other end of the tunnel
        --source-format <ADDRESS-FMT>    Specifies the IP address range for created dummy client sockets
    -T, --target <ADDRESS>               Specifies that this is the end of the tunnel the actual server is at; the
                                         specified address is the one of the actual server to proxy
    -x, --timeout <SECS>                 Time in seconds after the last received packet after which a connection is
                                         determined closed [default: 3600]

How does it work?

                                      tunneled connection
                                      (can be established
                .----------.            by either side*)
               /            \                  |                    .------ Client
              /              \                 v                   /
 Target server -------------- udptun -T ================ udptun -E -------- Client
 (not neces-  \              / (--target)                (--entry) \
  sarily acces-\            /                                       *------ Client
  sible by the  *----------*                                                  ^
  clients)           ^                                                        |
                     |                                                clients connected
            one connection per                                       to tunnel entrypoint
            client connected to
             tunnel entrypoint

*: the side that establishes the connection is the one that does not use the --listen flag,
   remote tunnel address specified by --remote
   note: this is seperate from --target/--entry!

udptun's People

Contributors

2xsaiko avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.