Welcome! Log In Create A New Profile

Advanced

Proxy Protocol for IMAP and POP3

Posted by idfariz 
idfariz
Proxy Protocol for IMAP and POP3
January 03, 2018 06:00AM
Hello all,


Currently we do load balancing for NGINX server that included in Zimbra as
Proxy services with HAPROXY.


but as we see in nginx's log access file all incoming source IP was logged
as HaProxy's IP,

the question in how we configure nginx to show client's origin IP instead of
HaProx's for IMAP and POP3 (mail) ?

Note: there is solution using Proxy Protocol
(https://www.nginx.com/resources/admin-guide/proxy-protocol/) but it's
available for http and stream only.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277972,277972#msg-277972

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Alexander Naumann
Re: Proxy Protocol for IMAP and POP3
January 03, 2018 11:10AM
Hello,

you could use "set_real_ip_from 'IP from LB';"

http://nginx.org/en/docs/http/ngx_http_realip_module.html

--
Alexander Naumann

----- Urspr√ľngliche Mail -----
Von: "idfariz" <[email protected]>
An: nginx@nginx.org
Gesendet: Mittwoch, 3. Januar 2018 05:58:35
Betreff: Proxy Protocol for IMAP and POP3

Hello all,


Currently we do load balancing for NGINX server that included in Zimbra as
Proxy services with HAPROXY.


but as we see in nginx's log access file all incoming source IP was logged
as HaProxy's IP,

the question in how we configure nginx to show client's origin IP instead of
HaProx's for IMAP and POP3 (mail) ?

Note: there is solution using Proxy Protocol
(https://www.nginx.com/resources/admin-guide/proxy-protocol/) but it's
available for http and stream only.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277972,277972#msg-277972

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login