Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I installed nginx and the HttpRealipModule to get the original ip of my visitors.I also add this in the http{ } part in my nginx.conf

  set_real_ip_from   204.93.240.0/24;
  set_real_ip_from   204.93.177.0/24;
  set_real_ip_from   199.27.128.0/21;
  set_real_ip_from   173.245.48.0/20;
  set_real_ip_from   103.22.200.0/22;
  set_real_ip_from   141.101.64.0/18;
  set_real_ip_from   108.162.192.0/18;
  set_real_ip_from   190.93.240.0/20;
  real_ip_header     CF-Connecting-IP;

However when i do

netstat -atun | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -n

To find out the ip address of my visitors , all the ip i get has ISP as Cloudflare(i traced those ip) Any idea why its not showing the original ip

-Some other question I want to limit the number of concurrent connections people use while downloading from my site.If i use limit_conn 4; it will do the job but if user is downloading and try to access site from browser he/she get 503 unavailable.Is there a way to limit connections but still allow users to view site simultaneously

share|improve this question

1 Answer 1

You're not seeing the web browser's IP address from netstat because the connections are coming from CloudFlare. This is how CloudFlare works.

To see the IP addresses you need to look at your nginx logs.

share|improve this answer
    
Thanks ....do u have an idea for the limit connections –  Werulz Aug 26 '12 at 5:54
    
That looks like a separate question. Posting two questions at once is frowned on here; they should be posted separately. –  Michael Hampton Aug 26 '12 at 5:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.