Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-28298

(8.0.z) UNDERTOW-2046 - ProxyHandler passes hostname not IP in X-Forwarded-For

XMLWordPrintable

    • False
    • None
    • False
    • 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
            rhn-engineering-lgao Lin Gao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: