Welcome! Log In Create A New Profile

Advanced

Re: Load Balancing TCP directive mail {}

June 08, 2020 09:54AM
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.
Subject Author Posted

Load Balancing TCP directive mail {}

andersonsserra June 06, 2020 06:51PM

Re: Load Balancing TCP directive mail {}

Thomas Ward June 06, 2020 07:52PM

Re: Load Balancing TCP directive mail {}

andersonsserra June 08, 2020 09:54AM

Re: Load Balancing TCP directive mail {}

itpp2012 June 07, 2020 06:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 62
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready