ssl_preread question

Roman Arutyunyan arut at nginx.com
Sun Aug 27 20:41:31 UTC 2017


Hi,

On Sun, Aug 27, 2017 at 01:19:26PM -0400, aledbf wrote:
> Hi, it is possible to preservce the source IP address when ssl_preread is
> being used?

ssl_preread has nothing to do with the IP address.

> Right now I always get 127.0.0.1 as the source

Where exactly do you get it?

If you want to keep the address while proxying a TCP connection, you can use
the PROXY protocol.

http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html#proxy_protocol

-- 
Roman Arutyunyan


More information about the nginx mailing list