Hi,
since quite some time, Zimbra's nginx supports the PROXY protocol to enable it to work behind haproxy.
When I enable this (you need to edit the templates in /opt/zimbra/conf/templates), I still don't get the original source IP of the request in the logs.
For this to work, it seems you need another module that Zimbra hasn't included (yet) - or rather two modules:
- http_real_ip
- mail_real_ip
https://docs.nginx.com/nginx/admin-guid ... -protocol/
I assume, short of Zimbra including these my only chance is to do a build of the OSS version and modify it so these two are built?
since quite some time, Zimbra's nginx supports the PROXY protocol to enable it to work behind haproxy.
When I enable this (you need to edit the templates in /opt/zimbra/conf/templates), I still don't get the original source IP of the request in the logs.
For this to work, it seems you need another module that Zimbra hasn't included (yet) - or rather two modules:
- http_real_ip
- mail_real_ip
https://docs.nginx.com/nginx/admin-guid ... -protocol/
I assume, short of Zimbra including these my only chance is to do a build of the OSS version and modify it so these two are built?
Statistics: Posted by rainer_d — Tue May 14, 2024 9:24 am