Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: user58389239 on November 11, 2024, 12:48:10 PM

Title: Not able to get real IP of users
Post by: user58389239 on November 11, 2024, 12:48:10 PM
Hi,
We are running SMF 2.1.4. We are behind a Securi firewall at GoDaddy. All users are showing the Securi IP.

We went to Admin > Maintenance > Security and set "Reverse Proxy IP Header" to "X-Forwarded-For" which according to Securi documentation is the right setting to show client IP. But it didn't change anything.

Any other suggestions what we should try? Should we update the setting in the php.ini?
Title: Re: Not able to get real IP of users
Post by: Aleksi "Lex" Kilpinen on November 11, 2024, 01:13:04 PM
That's a known issue #7684 (https://github.com/SimpleMachines/SMF2.1/issues/7684)
The best solution I know would be to handle this on the server level, for example in Apache with mod_remoteip https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html

Some discussion and possible solutions also in Reverse Proxy IP Header selection not working (https://www.simplemachines.org/community/index.php?topic=585020.0)
Title: Re: Not able to get real IP of users
Post by: user58389239 on November 11, 2024, 08:08:25 PM
Ahh, I didn't realize it was a known issue. Yes I can do it the Apache mod_remoteip route. Thanks!