nginx variable for destination IP address in stream layer?

Greeshma A greeshma.avadhootha at gmail.com
Mon Nov 8 07:20:37 UTC 2021


Anyone has any insight on this?

Would really appreciate the help!


-Greeshma

On Fri, Nov 5, 2021, 5:02 PM Greeshma A <greeshma.avadhootha at gmail.com>
wrote:

> Hi,
> Is there any way to get the destination IP address in the stream layer
> (ngx_stream_core_module)
>
> The SNI header of the destination can be gotten from
> "ssl_preread_server_name"
>
> Similarly, how to get the destination IP address in the stream(L4) or L3
> layer from the request?
>
> Suppose my request is as follows
> curl https://DOMAIN.EXAMPLE* --resolve 'DOMAIN.EXAMPLE:443:192.0.2.17'*
>
> I want to get the IP 192.0.2.17
> Which nginx variable would be mapped to this?
>
> -Greeshma
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20211107/dc99d47d/attachment.htm>


More information about the nginx-devel mailing list