[EXT] Re: Connect to NGINX reverse proxy through proxy

Ajay Sonawane Ajay_Sonawane at symantec.com
Mon May 7 10:37:08 UTC 2018

>>For details it's better to look into error.log.

Error log says "Broker header [some garbage chars] while reading PROXY protocol, client: IPADDRESS, server:
From: nginx <nginx-bounces at nginx.org> on behalf of Roman Arutyunyan <arut at nginx.com>
Sent: Monday, May 7, 2018 3:55:59 PM
To: nginx at nginx.org
Subject: [EXT] Re: Connect to NGINX reverse proxy through proxy


On Mon, May 07, 2018 at 05:15:34AM +0000, Ajay Sonawane wrote:
> I am using NGINX as a HTTPS reverse proxy and load balancer. My clients are able to connect to reverse proxy using SSL and reverse proxy is able to terminate SSL connection and establish a new connection with backend server, data exchange is also happening.
> Now I am trying to setup a proxy between a client and NGINX.  I am using SQUID proxy in between. I have enabled proxy protocol on nginx using
>         listen 443  ssl proxy_protocol;

This line instructs nginx to expect PROXY protocol header from SQUID.
Are you sure SQUID sends it?  It looks like SQUID didn't support sending PROXY
protocol header up until recently.

>         proxy_protocol on;
> Still my client is not able to connect to NGINX through proxy. Is there anything else I need to do.

For details it's better to look into error.log.

Roman Arutyunyan
nginx mailing list
nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180507/0773223f/attachment-0001.html>

More information about the nginx mailing list