Load Balancing TCP directive mail {}

andersonsserra nginx-forum at forum.nginx.org
Mon Jun 8 13:54:05 UTC 2020


Thomas,

Thanks for the answer! I made the corrections and the nginx service worked.
Thank you.
Although it worked, I saw that the backend servers are receiving the IP
request from the proxy, is there any way to pass the source IP of the proxy
request preserving the source IP and port?
take a look at this example:
from an IP test server 10.22.51.16 I make a request on port 25 to the proxy
server with address 10.22.8.153, as follows:
anderson @ support-seati: ~ $ telnet 10.22.8.153 25
Trying 10.22.8.153 ...
Connected to 10.22.8.153.
Escape character is '^]'.
220 mta-01.example.com
502 5.5.2 Error: command not recognized


look how it appears on the destination server ...
root @ mta-03: ~ # tail -f /var/log/mail.log | egrep -e "(10.22.51. 16 |
10.22.8.153)"
Jun 8 10:49:21 mta-03 postfix / smtpd [12607]: connect from unknown
[10.22.8.153]


How can I preserve the source port and IP address?

Regards.

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



More information about the nginx mailing list