Topic on Project:Support desk

CheckUser extension - where is IP address taken from

3
Pspviwki (talkcontribs)

I recently had to install TorBlock, LoginNotify and CheckUser extensions. Tables were created successfully for Checkuser extension but during testing only localhost adress 127.0.0.1 showed in Special:CheckUser for a user access. I guess IP gets replaced during the process somewhere incorrectly but I need to find out where to fix it. It might be due to caching but in webserver logs and cache logs IPs are correct. I wonder if TorBlock and LoginNotify extensions may be influenced by this issue.

Bawolff (talkcontribs)

Did you set $wgCdnServersNoPurge correctly?

Its unlikely that TorBlock or LoginNotify affect this.

How is your web server setup. Do you have load balancers, caching proxies, etc in front of your web server. If so, do they set X-Forward-For headers properly?

Pspviwki (talkcontribs)

$wgCdnServersNoPurge was left at default value, that is []. There is varnish cache set up as recommended in Manual:Varnish caching, this setting works 

$wgUseCdn = true;$wgCdnServers = array(); $wgCdnServers[] = "ip address:port"; http.X-Forwarded-For is set up with received client IP address.

Reply to "CheckUser extension - where is IP address taken from"