×
Blue Eagle 1.5.2 Released (Yesterday)

The Kunena team has announce the arrival of Kunena Blue Eagle 1.5.2 which is now available for download as a native Joomla extension for Kunena 5.1. This version addresses most of the issues that were discovered in K 1.5.1 and issues discovered during the development stages of K 1.5.2.

× This is for users to help other users, to discuss topics that are related to forum administration in general or problems in running Joomla. This is not the place to ask for Joomla support. If you want assistance with Joomla please ask at forum.joomla.org

Question Kunena and Cloudflare

More
7 years 4 months ago #1 by Lucas W
User posts come up with one of Cloudflare's IPs. I've tried installing Cloudflare's Joomla module, which fixed IPs in other parts of my website but Kunena still logs Cloudflare's IPs.

Please Log in or Create an account to join the conversation.

  • sozzled
  • Visitor
7 years 4 months ago #2 by sozzled
Replied by sozzled on topic Kunena and Cloudflare
Please read the posting guide printed at the top of this page.

I am having difficulty understanding the specific problem or question that you are asking and, in what way, there is something broken, defective or not working in Kunena that requires support.

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #3 by Lucas W
Replied by Lucas W on topic Kunena and Cloudflare
Cloudflare acts as a proxy at the DNS level. To the webserver all the traffic appears to be coming from Cloudflare, but a module for the CMS or webserver allows it to see the real IP cloudflare is giving it. When I installed the Joomla module components of my website which previously recorded Cloudflare's IPs started recording the user's actual IPs. Kunena is the exception as it appears to still be recording Cloudflare's IPs.

Here's my report log:

This message contains confidential information

Database collation check: The collation of your table fields are correct

Legacy mode: Enabled | Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 30 seconds | Max execution memory: 100M | Max file upload: 50M

This message contains confidential information

Joomla default template details : rhuk_milkyway | author: Andy Miller | version: 1.0.2 | creationdate: 11/20/06

Kunena default template details : Blue Eagle (default) | author: Kunena Team | version: 1.6.3 | creationdate: 2011-01-31

Kunena version detailled: Installed version: 1.6.3 | Build: 4344 | Version name: Parlare | Kunena detailled configuration:

Warning: Spoiler! [ Click to expand ]

Third-party components: AlphaUserPoints: Disabled or not installed | CommunityBuilder: Installed (Version : 1.3.1) | Jomsocial: Disabled or not installed | UddeIm: Installed (Version : 2.2)

Third-party SEF components: sh404sef: Disabled or not installed | ARTIO JoomSEF: Disabled or not installed | AceSEF: Disabled or not installed

Plugins: System - Mootools12: Disabled | System - Mootools Upgrade: Enabled | JFirePHP: Disabled or not installed | Kunena Discuss: Disabled or not installed | Kunena Search: Disabled or not installed | My Kunena Forum Menu: Disabled or not installed | My Kunena Forum Posts: Disabled or not installed

Modules: Kunena Latest: Disabled or not installed | Kunena Stats: Disabled or not installed | Kunena Login: Enabled (Version : 1.6.2)


So basically, How can I get Kunena to show the user's real IP?

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #4 by Lucas W
Replied by Lucas W on topic Kunena and Cloudflare
I've found this: support.cloudflare.com/kb/troubleshootin...ith-a-php-forum-site

But I don't know where this would go.

Please Log in or Create an account to join the conversation.

  • C0n
  • C0n's Avatar
  • Offline
  • Premium Member
  • Only the strongest will survive
More
7 years 4 months ago - 7 years 4 months ago #5 by C0n
Replied by C0n on topic Kunena and Cloudflare
I stuck it in joomla's root index.php and it fixed my issue thank you :D
if ($_SERVER["HTTP_CF_CONNECTING_IP"]) {
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
Last edit: 7 years 4 months ago by C0n.
The following user(s) said Thank You: Lucas W

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago - 7 years 4 months ago #6 by Lucas W
Replied by Lucas W on topic Kunena and Cloudflare

C0n wrote: I stuck it in joomla's root index.php and it fixed my issue thank you :D

if ($_SERVER["HTTP_CF_CONNECTING_IP"]) {
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}


Thanks for the tip.

EDIT: It doesn't seem to have worked for me, I copied the code into index.php but the users are still coming up with Cloudflare's IPs.
Last edit: 7 years 4 months ago by Lucas W.

Please Log in or Create an account to join the conversation.

  • C0n
  • C0n's Avatar
  • Offline
  • Premium Member
  • Only the strongest will survive
More
7 years 3 months ago #7 by C0n
Replied by C0n on topic Kunena and Cloudflare
If your looking at a whois online then yes it will display cloudflare ip's but in forum post's it should not also make sure you keep it seperate from the other joomla code in the index.php with opening and closing php tags. like so.
<?php
if ($_SERVER["HTTP_CF_CONNECTING_IP"]) {
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
?>
<?php
// you will find all joomlas needed crap here gzip etc.
The following user(s) said Thank You: Lucas W

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #8 by Lucas W
Replied by Lucas W on topic Kunena and Cloudflare
Thanks C0n, I got it to work and user posts are showing the user's IP now.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.105 seconds