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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.4.20.CR1, 7.4.20.GA
    • None
    • Undertow
    • None
    • 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-engineering-lgao Lin Gao
              rhn-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: