r/PFSENSE • u/pixel_of_moral_decay • 5h ago
Question/Support haproxy and post quantum cryptography
Given all the recent news.
Has anyone evaluated haproxy and enforcing post quantum cryptography? Was curious if anyone had looked at defining something beyond the defaults like https://configurator.tlsref.org/, which is a pretty solid baseline.
pfsense is pretty good about modern OpenSSL, so that’s a positive.
6
Upvotes
3
u/Fast-Product-4408 4h ago
Key exchange is the bit that matters right now because of harvest now decrypt later, the certs and signatures side can wait. If the haproxy package is built against OpenSSL 3.5 or newer you can put X25519MLKEM768 first in the curves list and keep X25519 after it as the fallback. I'd check what openssl version the box actually has first, older 3.0 builds wont do ML-KEM without the oqs provider. Enforcing PQ only would still break alot of clients so hybrid is the sane place to start.
3
u/tastyratz 4h ago
I actually came to the sub today to see what the generalized post quantum discussion looked like.
Not explicitly haproxy, but in general for all of *sense & related packages.
Given that the firewall is the face to the internet, the move to post quantum computing proof encryption needs to happen and that starts with at least understanding what impact it might have to move.
3
u/FallElectronic3774 3h ago
One thing the guides skip: this only covers the client-to-haproxy leg. If haproxy re-encrypts to the backend, that connection still negotiates classical groups unless the backend also supports ML-KEM, so the traffic is only PQ on the edge. Check what the package is linked against with
haproxy -vv | grep -i openssl(the pfSense package can lag the base system), setssl-default-bind-curves X25519MLKEM768:X25519:P-256, then verify withopenssl s_client -connect vip:443 -groups X25519MLKEM768 -brief. If it doesn't negotiate the hybrid group, the binary isn't on 3.5.