Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-05-27, 15:43:23

Author Topic: Real IP of visitors ?  (Read 5760 times)

0 Members and 1 Guest are viewing this topic.

Offline sIiiS

  • Valuable Member
  • *
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Real IP of visitors ?
« on: 2014-02-04, 21:42:07 »
Hello Mustafa,

After some changes in kloxo-mr and update it via SSH then IP address of all visitors changed to 127.0.0.1 and real IP hide !

I don't know what happened and how can I fix it to return real IP of site visitors

Regards

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Real IP of visitors ?
« Reply #1 on: 2014-02-05, 03:34:15 »
It's usually appear when using proxy (like nginx-proxy) or enable webcache. Make sure, run 'yum install mod_rpaf'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sIiiS

  • Valuable Member
  • *
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Real IP of visitors ?
« Reply #2 on: 2014-02-05, 07:50:04 »
Yes, I used "nginx-proxy" and "varnish" and also after your command.... "Package mod_rpaf-0.6-4.mr.el6.x86_64 already installed and latest version" , so how can fix it, there is no way ?  :-\

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Real IP of visitors ?
« Reply #3 on: 2014-02-05, 08:49:59 »
Googling about varnish about 'real ip.

Varnish is unfinished work in 6.5.1.a.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sIiiS

  • Valuable Member
  • *
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Real IP of visitors ?
« Reply #4 on: 2014-02-05, 11:08:11 »
Googling about varnish about 'real ip.

Varnish is unfinished work in 6.5.1.a.

Found some tutorial but none of them working for me

Where is the varnish config file in kloxoMR ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Real IP of visitors ?
« Reply #5 on: 2014-02-05, 11:10:45 »
Try inside /home/varnish/tpl.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sIiiS

  • Valuable Member
  • *
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Real IP of visitors ?
« Reply #6 on: 2014-02-05, 13:17:51 »
Try inside /home/varnish/tpl.
Mustafa!  :o
there is not tpl folder
Code: [Select]
[root@ZTZN001 varnish]# ls -la
total 12
drwxr-xr-x   3 root root 4096 Jan 25 15:47 .
drwxr-xr-x. 26 root root 4096 Feb  1 17:08 ..
drwxr-xr-x   4 root root 4096 Jan 25 15:47 etc

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Real IP of visitors ?
« Reply #7 on: 2014-02-05, 14:37:21 »
Sorry, I mean inside etc.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sIiiS

  • Valuable Member
  • *
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Real IP of visitors ?
« Reply #8 on: 2014-02-06, 14:55:01 »
still can not solve it !  :(

After changing some config files, then not happened

Offline sIiiS

  • Valuable Member
  • *
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Real IP of visitors ?
« Reply #9 on: 2014-02-10, 07:20:19 »
Only for inform others about solution!

Problem solved by ....

open /etc/nginx/nginx.conf and add the following lines to your http{} statement

Code: [Select]
set_real_ip_from   127.0.0.1;
real_ip_header     X-Forwarded-For;

Now I have real IP from my visitors  :)

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.029 seconds with 18 queries.

web stats analysis