Welcome! Log In Create A New Profile

Advanced

Hi All, Have some issue on Real IP

Posted by logicking 
Hi All, Have some issue on Real IP
February 09, 2016 11:05AM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready