Skip to content

Can't see real client IPs passed with PROXY protocol v2 #498

@bam80

Description

@bam80

v2 header so both backends see the real client IP instead of HAProxy's
container address. The three pieces must stay in sync:

170346b doesn't work for me - still see internal container addresses everywhere in the logs:

haproxy-1  | 172.28.0.1:51416 [06/May/2026:20:45:14.098] tls mtg/mtg 2/0/61067 4887 cD 5/5/4/4/0 0/0
mtg-1      | {"level":"info","dc":203,"client-ip":"172.28.0.1" ...

Note I have #478 applied.

allow 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16

I also tried to add 172.28.0.0/24 here, didn't help.

@dolonet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions