# HG changeset patch # User Yaroslav Zhuravlev # Date 1615408536 0 # Node ID 3760176ba83e8de1a7f793c8862b120362f2253c # Parent 468e6e14e5cc0474ab4cc53347780b2fd589bab2 Documented ngx_mail_realip_module. diff -r 468e6e14e5cc -r 3760176ba83e xml/en/GNUmakefile --- a/xml/en/GNUmakefile Wed Mar 10 19:41:09 2021 +0000 +++ b/xml/en/GNUmakefile Wed Mar 10 20:35:36 2021 +0000 @@ -99,6 +99,7 @@ mail/ngx_mail_imap_module \ mail/ngx_mail_pop3_module \ mail/ngx_mail_proxy_module \ + mail/ngx_mail_realip_module \ mail/ngx_mail_smtp_module \ mail/ngx_mail_ssl_module \ stream/ngx_stream_access_module \ diff -r 468e6e14e5cc -r 3760176ba83e xml/en/docs/index.xml --- a/xml/en/docs/index.xml Wed Mar 10 19:41:09 2021 +0000 +++ b/xml/en/docs/index.xml Wed Mar 10 20:35:36 2021 +0000 @@ -8,7 +8,7 @@
@@ -511,6 +511,11 @@ + +ngx_mail_realip_module + + + ngx_mail_ssl_module diff -r 468e6e14e5cc -r 3760176ba83e xml/en/docs/mail/ngx_mail_realip_module.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/en/docs/mail/ngx_mail_realip_module.xml Wed Mar 10 20:35:36 2021 +0000 @@ -0,0 +1,65 @@ + + + + + + + + +
+ + +The ngx_mail_realip_module module is used +to change the client address and port +to the ones sent in the PROXY protocol header (1.19.8). +The PROXY protocol must be previously enabled by setting the + parameter +in the listen directive. + + +
+ + +
+ + + +listen 110 proxy_protocol; + +set_real_ip_from 192.168.1.0/24; +set_real_ip_from 192.168.2.1; +set_real_ip_from 2001:0db8::/32; + + + +
+ + +
+ + + + address | + CIDR | + unix: + +mail +server + + +Defines trusted addresses that are known to send correct +replacement addresses. +If the special value unix: is specified, +all UNIX-domain sockets will be trusted. + + + + +
+ +
diff -r 468e6e14e5cc -r 3760176ba83e xml/ru/GNUmakefile --- a/xml/ru/GNUmakefile Wed Mar 10 19:41:09 2021 +0000 +++ b/xml/ru/GNUmakefile Wed Mar 10 20:35:36 2021 +0000 @@ -86,6 +86,7 @@ mail/ngx_mail_imap_module \ mail/ngx_mail_pop3_module \ mail/ngx_mail_proxy_module \ + mail/ngx_mail_realip_module \ mail/ngx_mail_smtp_module \ mail/ngx_mail_ssl_module \ stream/ngx_stream_access_module \ diff -r 468e6e14e5cc -r 3760176ba83e xml/ru/docs/index.xml --- a/xml/ru/docs/index.xml Wed Mar 10 19:41:09 2021 +0000 +++ b/xml/ru/docs/index.xml Wed Mar 10 20:35:36 2021 +0000 @@ -8,7 +8,7 @@
@@ -516,6 +516,11 @@ + +ngx_mail_realip_module + + + ngx_mail_ssl_module diff -r 468e6e14e5cc -r 3760176ba83e xml/ru/docs/mail/ngx_mail_realip_module.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/ru/docs/mail/ngx_mail_realip_module.xml Wed Mar 10 20:35:36 2021 +0000 @@ -0,0 +1,65 @@ + + + + + + + + +
+ + +Модуль ngx_mail_realip_module позволяет +менять адрес и порт клиента +на переданные в заголовке протокола PROXY (1.19.8). +Протокол PROXY должен быть предварительно включён при помощи установки +параметра +в директиве listen. + + +
+ + +
+ + + +listen 110 proxy_protocol; + +set_real_ip_from 192.168.1.0/24; +set_real_ip_from 192.168.2.1; +set_real_ip_from 2001:0db8::/32; + + + +
+ + +
+ + + + адрес | + CIDR | + unix: + +mail +server + + +Задаёт доверенные адреса, которые передают верный адрес +для замены. +Если указано специальное значение unix:, +доверенными будут считаться все UNIX-сокеты. + + + + +
+ +