HAProxy Package: Incomplete?
-
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
-
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.
-
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
-
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.).
-
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.
-
No worries. It should be able to do that now? Have you tried?
-
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.
-
Try the latest version. I fixed this last night.
-
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.
-
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.