# HAProxy

> The Reliable, High Performance TCP/HTTP Load Balancer

Source: https://talira.ai/catalog/haproxy-19gvbtth
Every listing: https://talira.ai/catalog.md

- Kind: Open core
- Types: Infrastructure, Command-line tool
- Categories: [infrastructure / proxies / load balancers](https://talira.ai/categories/infrastructure/proxies/load-balancers), [infrastructure / proxies / reverse proxies](https://talira.ai/categories/infrastructure/proxies/reverse-proxies)
- Platforms: linux, docker, kubernetes[^2][^6][^12]
- Licence: GPL-2.0-or-later AND LGPL-2.1-or-later[^8][^10]
- Pricing: Free and open source[^7][^9]
- Pricing notes: HAProxy Community is free and open source. HAProxy Technologies sells HAProxy Enterprise and support; no prices are published (trial, then request pricing).
- Free tier: yes[^7][^9]
- Self-hostable: yes[^6][^7]
- API: yes[^11]
- Plugins: yes[^6]
- Backed by: [HAProxy Technologies](https://talira.ai/orgs/haproxy-technologies.md)
- Creator: Willy Tarreau

HAProxy is a free, open source load balancer and reverse proxy for TCP and HTTP applications, made for very high-traffic sites and shipped with most mainstream Linux distributions. Its event-driven, multi-threaded engine terminates TLS, switches on any part of a request, health-checks servers, keeps clients on the same server with stick-tables replicated between peers, rate-limits and blocks abusive clients, rewrites HTTP, compresses responses and caches small objects in RAM, with HTTP/2, QUIC/HTTP/3 and ACME certificate management in recent releases. It is changed at runtime through a CLI socket, scripted in Lua, and exposes its statistics to [Prometheus](https://talira.ai/catalog/prometheus-198e2rss.md) through a built-in exporter. The core is GPL-2.0-or-later; HAProxy Technologies, whose CTO Willy Tarreau wrote HAProxy, sells HAProxy Enterprise with a WAF, bot management, a management GUI and support.

## Links

- Website: https://www.haproxy.org/
- GitHub: https://github.com/haproxy/haproxy
- Docs: https://docs.haproxy.org/

## Ways to install

### On your own server

- [Proxmox VE Helper-Scripts](https://talira.ai/catalog/proxmox-ve-helper-scripts-3h36wtyj.md): <https://community-scripts.org/scripts/haproxy>[^1]

### On Kubernetes

- [Artifact Hub](https://talira.ai/catalog/artifact-hub-s43pzyps.md): <https://artifacthub.io/packages/helm/haproxytech/haproxy>[^2]

### Hosted for you

- [Elestio](https://talira.ai/catalog/elestio-kc92fhjp.md): <https://elest.io/open-source/haproxy>[^3]

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/haproxy>[^4]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/haproxy>[^5]

## Problems it solves

- spread incoming HTTP requests across a pool of web servers and skip the ones failing health checks
- load balance raw TCP connections to a database or mail server cluster
- terminate TLS for thousands of domains with SNI on one load balancer
- keep each user on the same backend server for their whole session
- share stickiness and rate counters between two load balancers running active-active
- track request rates per IP and slow down or block clients abusing my API
- route requests to different backend pools by path, Host header or cookie
- serve HTTP, HTTPS and SSH on the same port and route each connection by protocol
- drain a backend server for maintenance or change its weight without reloading the proxy
- add or change backend pools at runtime without a reload
- export load balancer statistics to Prometheus and graph them in Grafana
- shield fragile backend servers from SYN floods and malformed HTTP requests
- load balance PHP-FPM application servers over FastCGI without another web server in between
- get Let's Encrypt certificates directly in the load balancer with ACME
- add custom routing and authentication logic to my load balancer with scripts
- an enterprise load balancer we run ourselves with a WAF, bot management and vendor support
- spread TCP and HTTP traffic across a pool of servers and take dead ones out automatically
- a load balancer in front of Postgres or MySQL replicas that checks which node is healthy
- keep a user on the same backend server for their whole session
- terminate TLS for many sites and pass plain HTTP to the apps
- route requests to backends by host, path or header rules
- drain a server for maintenance without dropping in-flight connections
- change backend weights and server states at runtime without a reload
- protect backends with connection limits, queues and rate limiting
- a load balancer with long-term support releases we can run for years

## Features

- TCP proxy and HTTP reverse proxy, HTTP/1.x and HTTP/2 on either side with ALPN detection
- SSL/TLS termination, initiation and offload with SNI, wildcard certificates, client certificates and OCSP stapling
- certificates updated at runtime without restarting; deployments with tens of thousands of certificates
- QUIC/HTTP/3, ACME certificate management, OpenTelemetry and TLS ECH in recent releases
- dynamic backends (3.4 LTS)
- content-based switching on any element of the request, including several protocols on one port
- TCP and HTTP load balancing with health checks; weights changed on the fly from the CLI
- stick-tables for stickiness and per-client statistics, replicated active-active between peers
- rate limiting, traffic prioritization and DDoS and abuse protection
- TCP and HTTP normalization that drops invalid packets and requests
- URL and header rewriting for requests and responses
- HTTP compression offload and an in-memory response cache
- FastCGI gateway for load balancing FastCGI application servers
- PROXY protocol to pass the client address to servers
- transparent bind and connect, network namespaces (Linux)
- statistics page and a built-in Prometheus exporter
- CLI over a UNIX or TCP socket for runtime changes
- Lua scripting
- event-driven, multi-threaded engine; shown at 2 million requests/s over SSL and 100 Gbps forwarded
- long-term support branches maintained for about five years

## Limitations

- Doesn't serve static files: it can't be used as a static web server, so it's put in front of one such as Apache or nginx[^6]
- Doesn't work as a forward proxy for browsers: it isn't an explicit HTTP proxy like Squid[^6]
- Doesn't do packet-level load balancing: it doesn't see IP packets or UDP datagrams, and does no NAT or direct server return[^6]

## Ways to run it

### HAProxy Community

You run it, GPL-2.0-or-later AND LGPL-2.1-or-later. Price: free.[^7][^8]

Not included:

- a management GUI, WAF, bot management, global rate limiting and native SSO module, which HAProxy Enterprise adds[^9]
- premium support from HAProxy Technologies[^9]

Self-hosting docs: https://www.haproxy.org/

### HAProxy Enterprise

You run it, under a commercial licence. Price: no price listed: trial, then request pricing.[^7][^9]

Only in this edition:

- WAF, bot management, CAPTCHA and JavaScript challenge modules
- global rate limiting
- native single sign-on module for Active Directory and SAML identity providers
- centralized management with HAProxy Fusion, including role-based access control
- device detection modules and automatic updates of ACL, map and geolocation files
- premium support
- Linux packages and cloud images for AWS and Azure

Self-hosting docs: https://www.haproxy.com/products/upgrade-haproxy-to-haproxy-enterprise

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.51 out of 1.
Signals: backing 0.50, extensibility 0.60.

- backed by HAProxy Technologies
- created by Willy Tarreau
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [nginx](https://talira.ai/catalog/nginx-nfjkekkp.md): HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy server, and mail proxy server
- [Sōzu](https://talira.ai/catalog/sozu-414k3zyy.md): A lightweight, fast, always-up HTTP reverse proxy built in Rust
- [Traefik Proxy](https://talira.ai/catalog/traefik-proxy-rzfqntzc.md): The Cloud Native Application Proxy
- [Caddy](https://talira.ai/catalog/caddy-vc8j4642.md): The Ultimate Server with Automatic HTTPS
- [Envoy Proxy](https://talira.ai/catalog/envoy-proxy-bd85ktgf.md): Envoy is an open source edge and service proxy, designed for cloud-native and AI-native applications
- [F5 NGINX Ingress Controller](https://talira.ai/catalog/f5-nginx-ingress-controller-rpaf8hd0.md): A production-grade Ingress Controller for Kubernetes, powered by NGINX or NGINX Plus.

## Sources

[^1]: https://github.com/community-scripts/ProxmoxVE/blob/main/ct/haproxy.sh (checked 21 Nov 2026)
[^2]: https://github.com/haproxytech/helm-charts (checked 19 Nov 2026)
[^3]: https://elest.io/open-source/haproxy (checked 19 Nov 2026)
[^4]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^5]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^6]: https://docs.haproxy.org/3.4/intro.html (checked 19 Nov 2026)
[^7]: https://www.haproxy.org/ (checked 19 Nov 2026)
[^8]: https://github.com/haproxy/haproxy/blob/master/LICENSE (checked 19 Nov 2026)
[^9]: https://www.haproxy.com/products/upgrade-haproxy-to-haproxy-enterprise (checked 19 Nov 2026)
[^10]: https://github.com/haproxy/haproxy/blob/master/src/haproxy.c (checked 19 Nov 2026)
[^11]: https://docs.haproxy.org/ (checked 19 Nov 2026)
[^12]: https://hub.docker.com/_/haproxy (checked 19 Nov 2026)
