Skip to content

simplenetes-io/proxy-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simplenetes proxy

A single process composed of two parts: cluster ports proxy and local ports proxy.

The cluster ports proxy goal is to listen to a range of ports, referred to as cluster ports, and to proxy connections to the respective cluster hosts.

The local ports proxy serves to proxy traffic coming in from a single port to local ports, in sequenced order, exiting upon first success or on failure at the end of the configured sequence.

Features

  • Round table connecting on single host
  • Proxy protocol forwarding
  • Customizable max number of connections
  • Multiple proxy ports

Run

Serve on all local interfaces:

go run src/entrypoint.go

Serve on specific host IP:

go run src/entrypoint.go 192.168.99.100

Tests

Run all proxy verification tests inside a container:

./test/run_as_containers.sh

If Docker is not running on localhost, then set the Docker IP to the respective VM address by redefining the DOCKER_IP environment variable:

DOCKER_IP=192.168.99.100 ./test/run_as_containers.sh

Releases

No releases published

Packages

No packages published