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 on my load balancer in TCP mode on my servers.
I am referring the websire: https://tipstricks.itmatrix.eu/tcp-load-balancing-for-email-servers-with-nginx and able to loadbalanced the traffic except the Real IP.
Please help.
Thanks in advance.