Load Balancing TCP directive mail {}

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


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 I make a request on port 25 to the proxy
server with address, as follows:
anderson @ support-seati: ~ $ telnet 25
Trying ...
Connected to
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 |"
Jun 8 10:49:21 mta-03 postfix / smtpd [12607]: connect from unknown

How can I preserve the source port and IP address?


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

More information about the nginx mailing list