Dear All,
I am a System Admin from India and using nginx as load balancer since some time.
I have few web servers which I am load balancing using nginx and they are working fine. I use --with-http_realip_module and
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://ws1;
}
and is working absolutely fine.
I have a situation here now I want to load balanced my email server using TCP support of nginx and I am having issue getting the real IP from my load balancer in TCP mode to my load balanced servers.
On the backend servers, I am getting the IP address of load balancer but not the actual client IP which I wanted it to be passed to them.
I am referring the website: https://tipstricks.itmatrix.eu/tcp-load-balancing-for-email-servers-with-nginx and able to load-balanced the traffic except the Real IP.
Please help.
Thanks in advance.
I am a System Admin from India and using nginx as load balancer since some time.
I have few web servers which I am load balancing using nginx and they are working fine. I use --with-http_realip_module and
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://ws1;
}
and is working absolutely fine.
I have a situation here now I want to load balanced my email server using TCP support of nginx and I am having issue getting the real IP from my load balancer in TCP mode to my load balanced servers.
On the backend servers, I am getting the IP address of load balancer but not the actual client IP which I wanted it to be passed to them.
I am referring the website: https://tipstricks.itmatrix.eu/tcp-load-balancing-for-email-servers-with-nginx and able to load-balanced the traffic except the Real IP.
Please help.
Thanks in advance.