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

    HAProxy Package: Incomplete?

    Scheduled Pinned Locked Moved pfSense Packages
    10 Posts 4 Posters 5.0k Views
    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.
    • D Offline
      drrighteous
      last edited by

      Hey all, newbie to pfsense/haproxy here (no no, don't run away yet!)…

      I was looking to use the new haproxy package to route incoming http (80) requests on one of my WAN virtual IPs to specific backend private ip servers based on the http 1.1 host header using ACLs. This does appear quite possible according to the HAProxy 1.3.x documentation.

      However I noted a discrepancy between the haproxy docs and the currently implemented pfsense web interface. According to my reading I should expect to find configurations for Frontends, Backends, and Servers. The frontends would define what to listen on and ACLs used to respectively match requests into backend pools of servers. However the pfsense haproxy package web interface only has backend and server configs. Any one in the know?

      Additionally, a minor bug appears to be that even if I select a virtual IP from the WAN pull down in backends, it still uses the WAN primary interface IP in the haproxy generated configs.

      Thanks, David

      1 Reply Last reply Reply Quote 0
      • S Offline
        sullrich
        last edited by

        Thanks, the listening IP address should be fixed.

        I am not really sure what to say in regards to front ends vs backends.

        Try setting up a pool with the acl + backend and see if it works?  Or are you specifically missing a feature (I suspect it will till work with it setup the way it is).

        EDIT: I see what is going on.  The frontend + backend have been merged to simplify the package.

        1 Reply Last reply Reply Quote 0
        • D Offline
          drrighteous
          last edited by

          Thanks for the listening repair. BTW: Other minor item, fields not in bold on the pages (e.g. to indicate they are not required) are generating submission errors that they must be filled in :)

          In regards to merging the backend+frontend, certain fields I can't imagine pertaining to both. is there supposed to be a listening interface for backends? etc…

          --David

          1 Reply Last reply Reply Quote 0
          • S Offline
            sullrich
            last edited by

            Please be specific on the fields.

            Keep in mind this is my first exposure to HAProxy as well – I am just trying to keep Remco's work from fading into the sunset (I am not the original package creator.).

            1 Reply Last reply Reply Quote 0
            • D Offline
              drrighteous
              last edited by

              ah, apologies from me then, didn't realize this was a revamp. Was looking for a basic http reverse proxy that could switch on http host header. I was going to impliment a second lighthttpd with a mod_proxy config but I wanted to stay within the web configuration as much as possible.

              1 Reply Last reply Reply Quote 0
              • S Offline
                sullrich
                last edited by

                No worries.  It should be able to do that now?  Have you tried?

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cryptnix
                  last edited by

                  I too am having problems with the HAProxy GUI choosing the wrong IP address…

                  BTW, I love the updates in pfSense 2.0-ALPHA doing great guys!

                  2.0-ALPHA also appears to be having the same issue.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sullrich
                    last edited by

                    Try the latest version.  I fixed this last night.

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cryptnix
                      last edited by

                      have the latest snapshot

                      php: /pkg_mgr_install.php: A communications error occurred while attempting HAProxy XMLRPC sync with : (pfsense.exec_php).

                      on both pfsense 1.x and 2.x

                      i emailed about some customization really hoping to see this in working order … :)

                      is it also possible to see aliasing on the 1.x branch?

                      i really like what haproxy has to offer... beats having to re-invent the wheel.

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        Abacabb
                        last edited by

                        I have this error as well:

                        php: /pkg_mgr_install.php: A communications error occurred while attempting HAProxy XMLRPC sync with : (pfsense.exec_php)

                        I tried putting in every ip address i have on the pfsense machine, but the error stays, i also can not save anything on the frontends//backends

                        please advise.

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