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. Feature Requests
  3. Forwarding the true client IP Address

Forwarding the true client IP Address

Scheduled Pinned Locked Moved Feature Requests
4 Posts 3 Posters 1.4k 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
    #1

    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
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      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
      0
      • nebulonN nebulon marked this topic as a question on
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        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
        1
        • girishG girish marked this topic as a regular topic on
        • girishG girish moved this topic from Mastodon on
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

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

          1 Reply Last reply
          1
          • girishG girish referenced this topic 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