Skip to content

(stable/zed) Add proxy protocol support for real client IP logging#961

Open
xtrusia wants to merge 4 commits intojuju:stable/zedfrom
xtrusia:xtrusia/lp2107999/zed
Open

(stable/zed) Add proxy protocol support for real client IP logging#961
xtrusia wants to merge 4 commits intojuju:stable/zedfrom
xtrusia:xtrusia/lp2107999/zed

Conversation

@xtrusia
Copy link
Copy Markdown
Contributor

@xtrusia xtrusia commented Apr 13, 2026

currently, log shows proxy ip but need actual client ip

This PR suggest to add required module and
configuration method to setup options for Apache2 templates
and options for haproxy templates

#918
#919

xtrusia added 4 commits April 9, 2026 05:19
Currently, log shows proxy IP but need actual client IP.
This patch adds required module and configuration to setup
options for Apache2 templates and haproxy templates.

Use PROXY protocol v1 (send-proxy) instead of v2 (send-proxy-v2)
to avoid Apache mod_remoteip incompatibility with PROXYv2 LOCAL
command (unsupported command 0x20) during health checks.

Also adds missing 'check' keyword to haproxy server lines to
ensure health checks are properly performed.

Closes-bug: LP#2107999
Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
(cherry picked from commit f516806)
Add ::1 to the RemoteIPProxyProtocolExceptions directive alongside
127.0.0.1 to properly handle IPv6 loopback connections in both
the HTTPS frontend and WSGI templates.

Closes-Bug: #2107999
Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
(cherry picked from commit ccdc2bd)
Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
(cherry picked from commit 63c009c)
Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant