l4-proxy

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 33 Imported by: 0

README

L4 Proxy

The L4 proxy functions via a two-stage process:

  1. Client queries proxy to open a TCP or UDP endpoint to a service
    • Querying can be done via HTTP (for now). Query format is similar to currently existing proxy where the path segment of the URL specifies the service, except that it also includes the protocol ('tcp' or 'udp').
      • HTTP query URL format: http://proxyIP:proxyPort/(tcp | udp)/serviceName
    • Proxy resolves the service name to hash ID and connects to the service (or service's proxy once #36 is done), while opening a new listening socket and port for the requesting client.
    • The proxy returns the port number it has opened just for the client in the HTTP response.
  2. Client can then connect to the proxy via the newly opened port, which acts as a TCP or UDP proxy to the service.

In the long run, must also consider how to specify a potential chain of services.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL