18 May '15, 2am

Getting Real IP For nginx & Blocking IP on HAProxy

In Tech in Asia , we are using HAProxy as our load balancer and the request is passed on to either of the two web servers running on nginx to process the request. Because the request always comes from the load balancer, under the access logs, the IP will always be the load balancer IP. HAProxy Our HAProxy uses the setting option forwardfor which will forward the original client’s IP under the “X-Forwarded-For” header. nginx On nginx, there is a module called ngx_http_realip_module which is used to change the client address to the one sent in the specified header field. This module is already included in the nginx’s pre-built packages. Here is the snippet of code that we are using in nginx to get the client’s IP from the X-Forwarded-For header so that the access logs will record the client’s IP correctly. /etc/nginx/nginx.conf set_real_ip_from 10.10.10.2; # Load Balancer In...

Full article: https://lesterchan.net/blog/2015/05/18/getting-real-ip-fo...

Tweets

The 7 levels of IP verification

design-reuse.com 18 May '15, 8am

The quality of semiconductor intellectual property (IP) is a major issue for design teams utilizing third-party sources fo...

#ARM and #UMC Target New 55nm ULP Physical IP S...

design-reuse.com 18 May '15, 6am

“IoT silicon designers are being asked to deliver more highly integrated solutions within more power constrained environme...

Getting Priorities Right

ohsofickle.blogspot.com 17 May '15, 11am

After being a mother, I am no longer active in the nightlife and because of that, I haven't seen a lot of friends. I've sa...