Skip to content

tdeleanu/go-tcp-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcp-proxy

A TCP proxy command line tool.

Install

$ go get github.com/eirture/tcp-proxy/cmd/tcp-proxy

You can also download binary executor from release page.

Usage

Print the help:

$ tcp-proxy -h
Usage:
  tcp-proxy REMOTE_IP [LOCAL_PORT:]REMOTE_PORT [...[LOCAL_PORT:]REMOTE_PORT_N] [flags]

Flags:
      --address string   Addresses to listen on. (default "127.0.0.1")
  -h, --help             help for tcp-proxy
  -x, --proxy string     Use the specified proxy (format: [protocol://]host[:port]).
  -v, --version          Print the version information.

This command will proxy the 192.168.1.2:80 on localhost:80

$ tcp-proxy 192.168.1.2 80

or with another port on localhost

$ tcp-proxy 192.168.1.2 8080:80

with multiple ports

$ tcp-proxy 192.168.1.2 8080:80 8443:443

License

tcp-proxy is released under the Apache 2.0 license. See LICENSE.txt

About

A TCP proxy command line tool, written in Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 92.6%
  • Makefile 7.4%