proxy tcp with ip range and port mapping
Go to file
Jay f890970f84
All checks were successful
continuous-integration/drone/push Build is passing
add readme
2020-02-05 02:00:32 +00:00
config first version, unittest not fin 2020-01-14 09:58:05 +00:00
pkg add config load test 2020-01-15 02:09:27 +00:00
.drone.yml fix config 2020-01-15 02:24:44 +00:00
.gitignore change package name 2020-01-14 10:02:25 +00:00
Dockerfile add common unit test 2020-01-14 15:00:01 +00:00
go.mod change package name 2020-01-14 10:02:25 +00:00
go.sum add common unit test 2020-01-14 15:00:01 +00:00
main.go change package name 2020-01-14 10:02:25 +00:00
Makefile add common unit test 2020-01-14 15:00:01 +00:00
README.md add readme 2020-02-05 02:00:32 +00:00

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