FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Proxy IP Issue

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    4
    847
    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.
    • H
      haziqt
      last edited by

      Hi i have a fusion auth self hosted behind

      Cloudflare -> Ingress -> FusionAuth

      my configuration is :

      b79834f8-4797-4788-a197-9c520857f6c7-image.png

      For testing i have added add_header X-Debug-XFF $http_x_forwarded_for;

      When i did curl to the fusionauth domain it gives a correct IP Address

      but in logs for logins still the ip is of cloudflare. Anything m missing?

      mark.robustelliM 1 Reply Last reply Reply Quote 0
      • mark.robustelliM
        mark.robustelli @haziqt
        last edited by

        @haziqt have you taken a look at the documentation on How To Us a Proxy? There are a few headers you will need to add.

        H 1 Reply Last reply Reply Quote 0
        • H
          haziqt @mark.robustelli
          last edited by

          @mark-robustelli Hi, sorry for the late reply, but yeah, we have followed the documentation, and after that, we have done testing as well, but still, the issue persists. We are using version 1.57.0

          nginx.ingress.kubernetes.io/configuration-snippet: |
            proxy_set_header X-Forwarded-For $http_cf_connecting_ip;
            proxy_set_header X-Forwarded-Proto https;
            proxy_set_header X-Forwarded-Port	 443;
            proxy_set_header X-Forwarded-Server	domain.com;
            proxy_set_header X-Forwarded-Host	domain.com;
            add_header X-Debug-XFF $http_x_forwarded_for;
          
          mark.robustelliM 1 Reply Last reply Reply Quote 0
          • mark.robustelliM
            mark.robustelli @haziqt
            last edited by

            @haziqt Sounds like FusionAuth is up and working except reporting the wrong IP address of the user on login. You may want to consider opening a issue.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post