Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HAProxy- how to send HTTPS IP address to web server, I keep getting errors

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 2 Posters 12 Views 2 Watching
    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.
    • C Offline
      cjbujold
      last edited by

      System Configuration:
      PfSense 27.07.01
      HAProxy-devel 0.64_2
      Snort 4.1.6_28
      PFBlockerNG 3.2.10

      Trying to get HAProxy to send the external HTTPS IP to the web server.

      Web Server: Windows Server 2025 - IIS with W3C logging and "X-Forward-for" option activated. The IIS log shows the "X-Forward-for" entry, but it is blank. The only IP shown in the log is the PFSense IP.

      When I look at the HAProxy Dashboard widget, I see the traffic with the external IP's that are connecting to the WEB server.

      0cd4996b-a4a0-403c-94e9-ee9916d67517-image.png

      My issue is how do I get these external HTTPS addresses to the WEB server.

      I have tried in the SSL front-end and in the SSL Backend, placing the "X-Forward-for" option in the advanced settings, "Bind pass thru" as well as "Advanced pass thru" and both gives errors when trying to save. Therefore, I know this is not the correct approach.

      What are the correct steps to get the HTTPS IP address sent to the Web server?

      Thanks

      V 1 Reply Last reply Reply Quote 0
      • V Offline
        viragomann @cjbujold
        last edited by

        "X-Forward-for" is a HTTP host header, which HAproxy adds and puts the client IP into, if configured.

        If you want to see it in the backend web servers log you have to add it to its logging options.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.