Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/makkes/l4proxy

A simple layer 4 TCP proxy and load balancer
https://github.com/makkes/l4proxy

load-balancer proxy

Last synced: 2 days ago
JSON representation

A simple layer 4 TCP proxy and load balancer

Awesome Lists containing this project

README

        

# L4Proxy

L4Proxy is a rudimentary layer 4 proxy, currently supporting IPv4 TCP connections.

## Quick Start

1. Download a version from the [releases page](https://github.com/makkes/l4proxy/releases) for your platform.
1. Create a configuration file. An example is provided [here](./l4proxy_example.yaml)
1. Run the proxy:
```
l4proxy -c l4proxy_example.yaml
```
1. Test it:
```
telnet localhost 1313
```
you should now see you're connected to either one of your configured backends.

## How it works

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.

### Features

* Supports multiple backends
* Exercises health checks for each backend
* Randomly chooses a healthy backend for each new connection