Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-2046

ProxyHandler passes hostname not IP in X-Forwarded-For

XMLWordPrintable

    • Hide
      1. Use Undertow to set up a public HTTP server with a ProxyHandler that implements a reverse proxy to an internal server.
      2. Use a web client, with an IP address that looks up to a hostname, to make a request to the reverse proxy
      3. Check the X-Forwarded-For header received on the internal server. It is the text hostname, not the IP address
      Show
      Use Undertow to set up a public HTTP server with a ProxyHandler that implements a reverse proxy to an internal server. Use a web client, with an IP address that looks up to a hostname, to make a request to the reverse proxy Check the X-Forwarded-For header received on the internal server. It is the text hostname, not the IP address

      I am using Undertow's ProxyHandler to implement a reverse proxy of public client requests to an internal server. The X-Forwarded-For header that the internal server receives has a hostname, not an IP address.

              rhn-cservice-bbaranow Bartosz Baranowski
              somni451 new acct (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: