OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: vaibhavtawade144@gmail.co on September 11, 2020, 08:48:42 AM

Title: Combination of Haproxy and Nginx for Load Balancing
Post by: vaibhavtawade144@gmail.co on September 11, 2020, 08:48:42 AM
We have UDP file transfer server with web UI, and have 3 backend servers serving the same.
want to load-balance those servers with OPNsense plugins Nginx and Haproxy.

My question is:

Can I use TCP and web server load-balancing with Haproxy and nginx only for UDP load-balancing. Will combination of these 2 work. How do I configure the same?
Title: Re: Combination of Haproxy and Nginx for Load Balancing
Post by: Fright on September 11, 2020, 12:29:47 PM
I don't see why not.
but why not to use nginx for both?
Title: Re: Combination of Haproxy and Nginx for Load Balancing
Post by: vaibhavtawade144@gmail.co on September 11, 2020, 06:50:19 PM
More familiar with Haproxy. But as it doesn't allow UDP load-balancing so for that purpose only will be using Nginx.
Title: Re: Combination of Haproxy and Nginx for Load Balancing
Post by: Fright on September 11, 2020, 07:00:54 PM
got it. there should be no problem with nginx. no http-server - no port usage)