Skip to content

paskozdilar/tcp-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

tcp-bridge

Simple TCP forwarding utility, written in Go.

Usage

tcp-bridge: [-h|--help] HOST PORTS...

Forwards all TCP connections to HOST, from a list of PORTS.

Arguments:
    HOST		destination host (e.g. "example.com", "192.168.1.42")
    PORTS		space-delimited list of ports to be forwarded (e.g. "8080")

Examples

  • tcp-bridge 192.168.1.150 8080 8081 8082 - forwards all local connections from ports 8080, 8081 and 8082 to to remote host 192.168.1.150

  • tcp-bridge example.com 80 443 - forwards all local connections from ports 80 and 443 to remote host example.com

Installation

Prerequisites:

go run

The simplest way to run tcp-bridge is using go run, e.g.:

go run github.com/paskozdilar/tcp-bridge@latest 192.168.1.150 8080 8081 8082

GOPATH

If you've set up GOPATH, you can install the binary locally:

go install github.com/paskozdilar/tcp-bridge@latest

Compile from source

To compile tcp-bridge from source:

    git clone https://github.com/paskozdilar/tcp-bridge.git
    cd tcp-bridge
    go build

About

Simple TCP forwarding utility, written in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages