Dhruv,

On 3/6/22 18:10, Dhruv Jain wrote:
In the following mqtt connection flow, mqtt_is_valid and mqtt_field_value
is not working as intended.

Client -> Google Load Balancer(proxy-protocol enabled) -> HAProxy

Currently the connection is rejected if the ACL rule(
https://pastebin.mozilla.org/TESFMj1b#L57) is mentioned in the frontend
config. Also, if this rule is omitted then mqtt_field_value does not work
due to which there is no entry in the stick table. Logs of the HAProxy
config mentioned in the pastebin can be found here
<https://pastebin.mozilla.org/8q0dUseO>.

Ideally, the connection should be established and an entry should be
created with the key as the client_identifier in the stick table.


I'm not seeing an `accept-proxy` anywhere in the configuration, so HAProxy is not actually interpreting (and stripping) the PROXY protocol header.

Best regards
Tim Düsterhus

Reply via email to