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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Trusted IP Address

Trusted IP Address

Scheduled Pinned Locked Moved Solved Support
networkingcloudflaretrusted ips
4 Posts 3 Posters 698 Views 3 Watching
  • 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.
    • A Offline
      A Offline
      alwynispat
      wrote on last edited by girish
      #1

      So I'm using the Trusted IP Address feature to add my Nginx Proxy Manager which is in front of the Cloudron.
      My domains are protected by Cloudflare, so the apps are giving me Cloudflare's IP Addresses instead of the Users' actual IP Address.

      Suggestions?

      Find me at Mastodon

      girishG 1 Reply Last reply
      0
      • A alwynispat

        So I'm using the Trusted IP Address feature to add my Nginx Proxy Manager which is in front of the Cloudron.
        My domains are protected by Cloudflare, so the apps are giving me Cloudflare's IP Addresses instead of the Users' actual IP Address.

        Suggestions?

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @alwynispat not an expert on nginx proxy manager, but if you have a test subdomain without cloudflare proxying, maybe you can check if the client IPs are correct? Atleast, this lets us debug with 2 unknowns instead of 3 unknowns.

        1 Reply Last reply
        0
        • BrutalBirdieB Offline
          BrutalBirdieB Offline
          BrutalBirdie
          Partner
          wrote on last edited by
          #3

          Had a similar issue with Kubernetes and only seeing the IP of the Loadbalancer.
          Magic word was https://docs.nginx.com/nginx/admin-guide/load-balancer/using-proxy-protocol/

          Like my work? Consider donating a drink. Cheers!

          1 Reply Last reply
          1
          • A Offline
            A Offline
            alwynispat
            wrote on last edited by
            #4

            So I think I've found the solution.
            Modify the Proxy Host config > Advanced and paste the following:

            set_real_ip_from    03.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/13;
            set_real_ip_from    104.24.0.0/14;
            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;
            
            #use any of the following two
            
            real_ip_header CF-Connecting-IP;
            #real_ip_header X-Forwarded-For;
            

            this will allow True Client IP Address to be passed to Cloudron.

            Find me at Mastodon

            1 Reply Last reply
            2
            • girishG girish marked this topic as a question on
            • girishG girish has marked this topic as solved on
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search