Skip to main content NGINX Reverse Proxy or HAProxy? : r/PFSENSE
r/PFSENSE icon
Go to PFSENSE

NGINX Reverse Proxy or HAProxy?

RESOLVED

Hi Guys, currently I have NGINX reverse proxy on a docker container running on raspberry pi with self signed certs.

For itch of my hands I wanted to explore HA Proxy on pfsense, so has anyone tried both and which one did you find to be best among both?

Slash review times, eliminate bugs, and get valuable insights into your projects and code.
  • Slash review times, eliminate bugs, and get valuable insights into your projects and code.
  • Slash review times, eliminate bugs, and get valuable insights into your projects and code.
  • Slash review times, eliminate bugs, and get valuable insights into your projects and code.
  • Sort by:
    Best
    Open comment sort options

    Have not tried both, but I do run HAProxy with LetsEncrypt certs and SSL offloading. It's been very stable and performant, FWIW.

    This is the way.

    Any good tutorials you might be able to suggest?

    More replies
    More replies

    Tried both and found HAProxy easier to understand and configure, and it worked with a wider range of backend apps that I use.

    I’m sure with more technical understanding that nginx could’ve been properly configured to work with them all too, but for someone who only has basic knowledge of proxies I preferred haproxy.

    Have it working with letsencrypt wildcard certs. It runs on a standalone Ubuntu container on proxmox rather than pfsense / opnsense.

    Solved

    More replies

    Everyone - Thank You for Your valuable feedback and guidance, I love this group about how everyone become together and guide each other.

    On pfsense you don't have nginx :) to manage off. Better not play with configs of web configurator. More over: pfsense good at part of backups and all in one config. When you use haproxy all your settings are saved to conf & backup. Even after reset your pfsense restoring from backup all settings will be in place.

    If you run pfsense HA cluster haproxy will work in HA as well, with all keepalived futures in place.

    Question about nginx or haproxy easily can be answered:

    1. You need a proxy or web server+proxy? HAproxy only proxy but it do his job better than nginx from my opinion

    2. Did you need load balancing? Haproxy at this point kill nginx in all ways. Nginx open source version do not support active health checks, sticked sessions, pure tcp in way haproxy can and so on. Only paid nginx can do it.

    3. Haproxy has build in Prometheus exporter when nginx not and his lua implemented exporter much more pure.

    If you’re already running pfSense, then HAProxy.

    I tried HA proxy on pfsense and working perfectly except wordpress website with broken contents. I am not experience so gave up whole idea n deploy stack behind nginx-proxy-manager.

    More replies