L4Proxy is a rudimentary layer 4 proxy, currently supporting IPv4 TCP connections.
- Download a version from the releases page for your platform.
- Create a configuration file. An example is provided here
- Run the proxy:
l4proxy -c l4proxy_example.yaml
- Test it:
you should now see you're connected to either one of your configured backends.
telnet localhost 1313
l4proxy is really mostly a proof of concept for my use case of injecting traffic into my on-premise Kubernetes cluster so don't expect miracles from it. However, I appreciate any feedback so please don't hesitate filing issues or PRs.
- Supports multiple backends
- Exercises health checks for each backend
- Randomly chooses a healthy backend for each new connection