Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author eskapism

    (@eskapism)

    You should be able to see the proxy ip if you click the time of the event. As I understand it those IP addresses can be spoofed, so that’s why I don’t show them by default.

    Thread Starter TheKolaNN

    (@thekolann)

    I would prefer to see client IP address not reverse proxies IPs.

    For Nginx webserver you can use the Module ngx_http_realip_module works especially well if you are behind Cloudflare or other reverse proxy.

    So you either put your origin server ip in a custom conf file loaded by or in nginx conf or:

    For a Cloudflare type setup

    In a custom folder (include) by nginx we would put (after loading the module):

    set_real_ip_from 103.21.244.0/22;
    set_real_ip_from 103.22.200.0/22;
    set_real_ip_from 103.31.4.0/22;
    set_real_ip_from 104.16.0.0/12;
    set_real_ip_from 108.162.192.0/18;
    set_real_ip_from 131.0.72.0/22;
    set_real_ip_from 141.101.64.0/18;
    set_real_ip_from 162.158.0.0/15;
    set_real_ip_from 172.64.0.0/13;
    set_real_ip_from 173.245.48.0/20;
    set_real_ip_from 188.114.96.0/20;
    set_real_ip_from 190.93.240.0/20;
    set_real_ip_from 197.234.240.0/22;
    set_real_ip_from 198.41.128.0/17;
    set_real_ip_from 199.27.128.0/21;
    set_real_ip_from 127.0.0.1/32;
    real_ip_header CF-Connecting-IP;

    set_real_ip_from 2400:cb00::/32;
    set_real_ip_from 2606:4700::/32;
    set_real_ip_from 2803:f800::/32;
    set_real_ip_from 2405:b500::/32;
    set_real_ip_from 2405:8100::/32;
    real_ip_header CF-Connecting-IP;

    https://nginx.org/en/docs/http/ngx_http_realip_module.html

    In conf file – include /etc/nginx.custom.d/*.conf;

    If that helps.

    stu

    Thread Starter TheKolaNN

    (@thekolann)

    Thank you for your input.

    I am pretty sure this can be achieved by making this feature available by plugin configuration. Many plugins I use has this feature.

    I am running my site on a virtual server provider, so I cannot install new modules to my instance.

    Correction: NGINX Ships with ngx_http_realip_module by default. On a vps in http directive nginx.conf:

    include conf.d/*.conf;
        include /etc/nginx.custom.d/*.conf;

    …and create a file in nginx.custom.d named anything ending in .conf and set the rules.

    Sorry for the late post.
    stu

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Reverse proxy (Cloudflare)’ is closed to new replies.