Haproxy + DNSDIST (DoT, DoH) enableProxyProtocol : exception Calling tryRead() with a too small buffer #14631
Unanswered
mineexchange89
asked this question in
Q&A
Replies: 1 comment 8 replies
-
With setProxyProtocolACL() unset, dnsdist will not expect a proxy protocol payload from the client.
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
dnsdist --version
haproxy -vv
/etc/dnsdist/dnsdist.conf
/etc/haproxy/haproxy.cfg
Logs :
==> /var/log/dnsdist.log <==
Got TCP connection from 127.0.0.1:59426
Got an exception while handling (reading) TCP query from 127.0.0.1:59426: Calling tryRead() with a too small buffer (2) for a read of 18446744073709551566 bytes starting at 52
==> /var/log/haproxy.log <==
Sep 7 09:01:50 SERVER1 haproxy[4948]: ::ffff:106.213.87.184:32523 [07/Sep/2024:09:01:49.531] DoT~ DOTDNS/dnsdist 300/2/498 0 1/1/0/0/0 0/0 SNI=client.domain.tech SSL_VERSION=TLSv1.3 CIPHER=TLS_AES_256_GCM_SHA384
When using
send-proxy-v2
with the DoT backend, we are encountering an exception, but the DoH backend works as expected. The goal is to pass the real client IP address to DNSDist through HAProxy.Can anyone please suggest me what is wrong here.
Beta Was this translation helpful? Give feedback.
All reactions