r/haproxy • • Jan 16 '26

Running HAProxy in L7 mode in front of Squid?

1 Upvotes

Hi all,

I've got a question that I'm hoping someone can help me get my head around...

I inherited some HAProxy servers which, from what I can determine, were implemented purely to provide load balancing / HA to some backend Squid services, however from what I can gather they've always been a bit troublesome but it was deemed they 'worked enough' such that I don't think it was ever really dug into...

My specific question is around running HAProxy in L4 & L7 mode in front of them...

My understanding (& previous experience) with using HAProxy in L7 mode in this kind of scenario is that while it might mostly work for purely HTTP traffic, in all likelihood it's going to cause strange / intermittent issues with TLS traffic or anything that uses the CONNECT method at some point...

Now one of the issues being experienced was that Windows clients were unable to update when going through this proxy setup (ultimately they were to be updated via internal WSUS so, again, it didn't end up being dug into) but as we had a need for a Windows client to now go straight out I tried switching HAProxy to L4 mode (it was in http / L7 mode on both frontend & backend) which seemed to resolve this and the client was then able to update without it timing out or any other issues...that seemed in fitting and in line with what I've previously seen or understand could happen...

However as I have a need to understand things I've been testing various scenarios in my lab using curl as the client with HAProxy in both L4 & L7 mode with a Squid backend however I don't seem to be able to get it to return any obvious errors...this has made me question my understanding...

Could someone help by shedding some light on these results please?

(I mean, don't get me wrong, in my experience I can't think of any use-cases where running it in L7 mode would have provided any benefits worth the overhead etc. but that's not really the point)


r/haproxy • • Jan 16 '26

Question 403 forbidden comes and goes

1 Upvotes

I've got an HAPROXY setup where a 403 forbidden error comes and goes when I try to access a certain host.

Sometimes it works, and sometimes it doesn't, without changing anything and simply retrying the operation.

I migrated this config from an older version 2,4 haproxy, and this didn't happen in that scenario. migrated to 3.2.7


r/haproxy • • Jan 13 '26

Release Announcing HAProxy Kubernetes Ingress Controller 3.2

Thumbnail
haproxy.com
12 Upvotes

r/haproxy • • Jan 05 '26

Question What happened to haproxytech/haproxy-alpine-quic docker imagees? for http3 - can I use standard haproxy now?

0 Upvotes

What happened to haproxytech/haproxy-alpine-quic docker images?

BEen using those for years, but now they gone from dockerhub it seems.

for http3 - can I use standard haproxy now?


r/haproxy • • Jan 02 '26

Question foward to a backend that only listens via https, with a self-signed cert?

1 Upvotes

I want to proxy a service that only listens to https, NO http. It uses a self-signed certificate.

How do I make haproxy forward properly to that? Haproxy has the "proper" ssl certificate for the domain.

My config:

frontend fe_main
  mode http
  bind :::80
  bind :::443 ssl crt /etc/haproxy/certs/mydomain.org.pem
  http-request redirect scheme https unless { ssl_fc }
  # If Host header is api.example.com then use
  # api.example.com backend
  use_backend %[req.hdr(Host),lower]

backend crafty.mydomain.org
  server crfty crafty-controller.home.arpa.:8443 init-addr last,libc,none

I had this forward working in nginx, there the config was as simple as:

proxy_pass https://crafty-controller.home.arpa.:8443;

however, haproxy doesn't seem to be able to foward to this.


r/haproxy • • Dec 30 '25

Tool A new Python SPOE Framework - self promotion

8 Upvotes

About 2 months ago I made a post while trying to wrap my head around how I could integrate Google OAuth into some administrative routes running through my HAProxy instance.

While the post didn't gain a ton of traction, my general research ultimately did lead me to using a SPOE Agent being one of the options available. Being a python dev, and this not being a super performance-critical task given my use case, I decided to try my had at implementing the SPOE Protocol.

One thing led to another and I ended up abstracting my solution into a framework. I introduce to you all SPOE Forge (github link).

I'm not sure if anyone has a use case for it as there are implementations in C, Lua, and Rust already out there, and I'm sure some others. But I was not able to find one that was up to date written in Python.

I definitely still need to write up some more robust documentation, but I figured I'd start sharing the framework out as it is fully operational and running.

Long term I have some other features I'd like to add, but in it's current state the framework fully implements the current SPOE Protocol.


r/haproxy • • Dec 21 '25

Loadbalancing solution for Exchange-Servers

Thumbnail reddit.com
1 Upvotes

r/haproxy • • Dec 20 '25

Question Ignore backends where DNS doesn't resolve?

1 Upvotes

I have set up my backends using local hostnames. However, sometimes some of the services are off / still booting. Can I set up haproxy to ignore backends that don't resolve (yet), and just serve the ones that do? Right now it refuses to even start if one doesn't resolve.

My config looks like this: (abbreviated, I have about 10 backends in there)

frontend fe_main
  mode http
  bind :::80
  bind :::443 ssl crt /etc/haproxy/certs/mydomain.org.pem
  http-request redirect scheme https unless { ssl_fc }
  # If Host header is api.example.com then use
  # api.example.com backend
  use_backend %[req.hdr(Host),lower]


backend jellyfin.mydomain.org
  option httpchk
  http-check send meth GET uri /health
  http-check expect string Healthy
  server jellyfin jellyfin.home.arpa.:8096

backend cloud.mydomain.org
  server nextcloud nextcloudpi.home.arpa.:80

r/haproxy • • Dec 16 '25

HAProxy hanging on SSL web requests on macOS Tahoe 26.2

2 Upvotes

I upgraded to latest macOS and haproxy as installed via Homebrew.

However, I am getting timeouts when connecting to SSL ports. This seem to even happen when downgrading to HAproxy 2.8.
Has anyone experienced SSL issues with Tahoe 26.2?

% haproxy --version
HAProxy version 3.3.0-7832fb2 2025/11/26 - https://haproxy.org/
Status: stable branch - will stop receiving fixes around Q1 2027.
Known bugs: http://www.haproxy.org/bugs/bugs-3.3.0.html
Running on: Darwin 25.2.0 Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:55 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T8103 arm64

Here is what I am doing, SSL is enabled on port 16443.

Timeouts happen about 80% of the time. No logs seen anywhere.

% telnet localhost 16443
Trying ::1...
^C(timeout)
lprimak@nova ~ % telnet localhost 16443
Trying ::1...
Connected to localhost.
Escape character is '^]'.

r/haproxy • • Dec 16 '25

Article HAProxy Performance Packages provide Next-Gen Speed for Open Source

Thumbnail
haproxy.com
11 Upvotes

r/haproxy • • Dec 11 '25

Article Revolutionizing app security with the next-gen HAProxy Enterprise WAF

Thumbnail
haproxy.com
0 Upvotes

r/haproxy • • Dec 04 '25

Article How HAProxy Takes Advantage of Multi Core CPUs

Thumbnail
haproxy.com
15 Upvotes

r/haproxy • • Dec 02 '25

Article KubeCon North America 2025 Recap: Federation and "Mesh Tax" End

Thumbnail
haproxy.com
1 Upvotes

r/haproxy • • Nov 26 '25

Release Announcing HAProxy 3.3

Thumbnail
haproxy.com
23 Upvotes

r/haproxy • • Nov 22 '25

Question acme letsencrypt DNS support?

0 Upvotes

When is DNS-1 support going to be supported?

I see http is supported from 3.2, when is DNS going to be support if anyone knows?

https://www.haproxy.com/blog/announcing-haproxy-3-2#acme-protocol


r/haproxy • • Nov 22 '25

haproxy on opnsense suddenly broke for iphones only going to qnap nas

0 Upvotes

I've been running an haproxy on opnsense firewall for a while, and behind it I have a qnap nas. My whole family uses this nas. Yesterday all my family with iphones reported being unable to connect. Androids continue to work, browsers on laptops and mobiles appear to continue to work, but the qfile app (not recently updated) ceased to connect to the qnap nas. I've tried numerous settings changes, and packet captures appear to show the clients and haproxy negotiating TLS but I think it hiccups there at some point. I can't seem to get any logs on the connections even with debug level set on the haproxy plugin, so I'm stumped. Any help is appreciated.


r/haproxy • • Nov 22 '25

CrowdSec SPOA component for HAProxy - new update

Thumbnail reddit.com
1 Upvotes

r/haproxy • • Nov 17 '25

Ingress NGINX retirement

5 Upvotes

r/haproxy • • Nov 16 '25

HAProxy+Cloudflare - Client Certificates

Thumbnail reddit.com
1 Upvotes

r/haproxy • • Nov 11 '25

Release Announcing HAProxy Unified Gateway (beta)

Thumbnail
haproxy.com
8 Upvotes

r/haproxy • • Nov 05 '25

Updated Terraform Provider for HAProxy: Now with Plugin Framework!

Thumbnail reddit.com
1 Upvotes

r/haproxy • • Nov 04 '25

High Td value and log format definitions

3 Upvotes

Hello,

I need help understanding a problem with HAProxy that I don't understand.

We have queries with a very high total time (Tt, Ta, and Td), exceeding 10 seconds, even though the backend responds quickly.

The phenomenon appeared when upgrading from version 2.4.29-1 to 2.8.5-1 (without changing our configuration). This upgrade is related to our update of the Ubuntu server, from 18 to 24.

We extracted the values from one of the queries in question and are having difficulty understanding how certain calculations are performed, compared to the definition provided by HAProxy in the following link

We use these log format:

And here is an excerpt from one of the requests in question:

From our point of view, the high Td value would indicate where the problem lies and we drew inspiration from the following HAProxy diagram to try to apply it to our metrics and better account for certain mechanisms:

  • Where do the arrow representing time Tt and the arrow representing time Ta end ?

    • For Tt, is it when we received the last FIN from the TCP session ?
    • For Ta, the emission of the last byte of the response body is it out HTTP Data or about TCP session ?
  • Which closes the TCP session first, the server or haproxy?
  • Is the closure of the TCP session included in the calculation of Td?

On another note, does the Tr value include the SSL handshake time between haproxy and the server?

Thank you in advance for your help.


r/haproxy • • Oct 24 '25

Announcing HAProxy ALOHA 17.5

Thumbnail
haproxy.com
7 Upvotes

r/haproxy • • Oct 22 '25

Question oauth2-proxy SPOE Agent

3 Upvotes

Hey all - big disclaimer that I am much more of a developer than I am a dev ops guy so flying by the seat of my pants here.

I have a basic infra setup I’ve been working on with HAProxy sitting out on the edge of my infrastructure to round robin requests to a various ECS Clusters and a separate CDN network.

This is all to begin work on deploying an application.

I am looking into ways to secure things like my entire staging deployment as well as specific paths on my production deployment. I figure if I can get something working that manages all traffic for staging - I can tweak as needed for production later so I am only really focused on the former for now.

I use Google workspace to manage accounts for SSO already for myself and a few others working with me and in my mind it would be very nice to be able to secure my staging deployment behind a Google OAuth SSO.

My reading so far has landed me on possibly setting up a SPOE Agent with a little bit of glue code to forward requests to an instance of oauth2-proxy to handle my auth. This would then send the response back through my glue code which would ultimately decide if the request to my application is authorized or not. This would then be round robin’d to my app servers/go to cdn/whatever.

The thing I am not sure about is if this is a good idea? I haven’t seen any resources of this sort of implementation which is usually where I pause to check if I even should be doing something like this.

I do recognize there is complexity in standing this up where a VPN would be easier - but long term this feels like it’d be a really clean system as it wraps my application environments into my google auth that already controls access to the various tools we use.

Just looking for general thoughts on the approach, are there other things I should look at to accomplish this, is this just a terrible idea at all.