proxy tcp with ip range and port mapping
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jay f890970f84 add readme 1 year ago
config first version, unittest not fin 1 year ago
pkg add config load test 1 year ago
.drone.yml fix config 1 year ago
.gitignore change package name 1 year ago
Dockerfile add common unit test 1 year ago
Makefile add common unit test 1 year ago
README.md add readme 1 year ago
go.mod change package name 1 year ago
go.sum add common unit test 1 year ago
main.go change package name 1 year ago

README.md

TCP Proxy


Build Status

Build

Bin

$ make

Docker

$ docker build -t tcp-proxy .

Usage

Config

# verbose level 0=info, 1=verbose, 2=very verbose
verbose: 0
listen:
    # connect target host and port
  - target_host: 192.168.1.1
    target_port: 22
    # local listen port
    listen_port: 22000

    # connect target host ip range and port
  - target_host: 192.168.1.2-5
    target_port: 22
    # local listen port start number (with connect to ip range)
    listen_port: 22010

    # connect target host with domain name and port
  - target_host: domain.name
    target_port: 80
    listen_port: 22100

Run

$ tcp-proxy -f /path/to/config.yml