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

    Forwarding the true client IP Address

    Feature Requests
    3
    4
    58
    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.
    • A
      alwynispat last edited by

      I have an NPM that helps to manage traffic to my NAS, Cloudron and other services.

      It appears that Cloudron is reporting the client IP Address as my NPM address.
      For my NAS, I’ll just need to indicate my Trusted Proxy IP Address and it’ll start reporting the true client IP Address.

      Where can I do the same for Cloudron? TIA!

      Find me at Mastodon

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

        Possibly the mastodon package then has to be adjusted to pick up the forwarded-for headers from the reverse proxy. Where in mastodon are the originating IP addresses used so we can validate a potential fix?

        1 Reply Last reply Reply Quote 0
        • Topic has been marked as a question  nebulon nebulon 
        • girish
          girish Staff last edited by

          In this setup, NPM makes the actually client call and thus Cloudron picks up that as the IP address. As you said, this requires us to change Cloudron's nginx configs to have a trusted proxy server setting and also then forward the X-Forwarded-For from the request to the apps.

          I will move this as a feature request since we don't have this feature.

          1 Reply Last reply Reply Quote 1
          • Topic is now a regular thread  girish girish 
          • Moved from Mastodon by  girish girish 
          • girish
            girish Staff last edited by

            FWIW, as a workaround - Cloudron itself can act as a NPM . https://docs.cloudron.io/apps/#app-proxy

            1 Reply Last reply Reply Quote 1
            • Referenced by  girish girish 
            • First post
              Last post
            Powered by NodeBB