Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Cloudflare IP logging

    Feature Requests
    cloudflare
    4
    4
    82
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      matthijs last edited by girish

      This can be implemented for Apache packages with mod_remoteip as per https://support.cloudflare.com/hc/en-us/articles/200170786#C5XWe97z77b3XZV.

      Other solutions for non Apache based apps would also be nice 🙂

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        Do you have any more information on what "Cloudflare IP logging" is in this context? In Cloudron outside requests anyways first hit the nginx reverse proxy and apache may or may not be part of an app further upstream. The apps usually already handle the remoteip, if not we should fixup those first.

        robi 1 Reply Last reply Reply Quote 0
        • robi
          robi @nebulon last edited by robi

          @nebulon If you click on that link in the OP, it has an NGINX section that suggests using real_ip_header to get the customer IP instead of the CF proxy IPs.

          More here:
          https://danielmiessler.com/blog/getting-real-ip-addresses-using-cloudflare-nginx-and-varnish/

          Life of Advanced Technology

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            My understanding is that this will allow apps to get the real IP when behind Cloudflare. Currently, the apps get Cloudflare's IP.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB