udpproxy

command module
v0.0.0-...-6e61c9e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

README

UDP Proxy with Service Activation Support

Why required -

Swiftwave uses HAProxy as ingress and it can handle TCP/HTTP traffic. But it can't handle UDP traffic. So, we need a UDP proxy to handle UDP traffic.

You may thought why we not using Docker Swarm Ingress for UDP traffic.

The reason is

  • we need some control over the port mapping.
  • we need something which can monitor traffic and can take action based on that. (future requirement)
  • we have some feature in our roadmap which required UDP proxy. (future requirement)

How it works -

  • It will listen on a port and forward the traffic to the destination based on the configuration.
  • It will have a backup mechanism to alert swiftwave if service is unreachable. (future requirement)
  • Will support runtime configuration change.
  • Will only managed over unix socket.

Environment Variables -

  • SOCKET_PATH - Path of the unix socket. Default: /etc/udpproxy/api.sock
  • RECORDS_PATH - Path of the records file. Default: /var/lib/udpproxy/records

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