general purpose tcp proxy server / port forwarder
Nim Batchfile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
License.txt
README.md
build.bat
upnet.nim

README.md

nimUpNet

general purpose tcp proxy / port forwarder

This is an async general purpose tcp proxy / port forwarder This listens on a local port and transports data back and forth multiple gateways. If one gateway is not online, we use the next. Tested on linux and windows.

upnet - upstream network
 tunnels all TCP connections
 established to the listen port
 to every gateway specified

Usage:
 -g:host    gateway hostname, allowed multiple times!
 -l:port    listening port
 -x:key     XORs the payload with key
              (only entry and exit node needs key)
 --sync     Queries the gateways in order, one after another
 --async    [DEFAULT] Queries the gateways in parallel and use the fastest


Example:
 # listens on port 1337 and tunnel TCP
 # back and forth service.myhost.loc:8080
 upnet -l:1337 -g:service.myhost.loc:8080

 # Sync strictly try the gateways in order
 upnet -l:1337 --sync -g:service.myhost.loc:8080 -g:192.168.2.155:8080