ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Load balancer inside firewall or not...

    IT Discussion
    8
    28
    814
    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.
    • 1
      1337
      last edited by

      This is for our colo server setup we are working on. We are looking to set up load balancers (haproxy) after the firewalls (pfsense in fail-over config).

      Is it a good idea or a bad idea to run a load balancer on the same machine as the firewall?

      From a performance point of view I think the firewall servers (pfsense on bare metal) can handle the traffic in either case. Right now the firewalls each have a single 6-core Xeon @ 2.6GHz, 32GB RAM and SSDs. Otherwise I can throw higher GHz, another CPU and more cores at the problem.

      I also wonder about SSL for load balancers. Is it best to use SSL passthrough or SSL termination?

      travisdh1T JaredBuschJ 2 Replies Last reply Reply Quote 0
      • travisdh1T
        travisdh1 @1337
        last edited by

        @Pete-S If you're going to be using pfSense, why not use the built-in load balancer? https://www.howtoforge.com/how-to-use-pfsense-to-load-balance-your-web-servers

        1 1 Reply Last reply Reply Quote 2
        • 1
          1337 @travisdh1
          last edited by 1337

          @travisdh1 said in Load balancer inside firewall or not...:

          @Pete-S If you're going to be using pfSense, why not use the built-in load balancer? https://www.howtoforge.com/how-to-use-pfsense-to-load-balance-your-web-servers

          Not a bad idea. As I understand it's a load-balancer called relayd. Maybe it's good enough for what I need, otherwise HAproxy is also built in. You just need to enable the package first before it's settings shows up.

          1 Reply Last reply Reply Quote 2
          • scottalanmillerS
            scottalanmiller
            last edited by

            Load balancers typically use very few resources. So you should be relatively flexible.

            1 Reply Last reply Reply Quote 1
            • JaredBuschJ
              JaredBusch
              last edited by

              I am using HAProxy only as a proxy right now in a couple places (for Exchange on prem). But the load balancing setup is super simple.

              I like it.

              1 Reply Last reply Reply Quote 3
              • coliverC
                coliver
                last edited by

                HAProxy is really powerful. We use quite a few of them here.

                1 Reply Last reply Reply Quote 1
                • wrx7mW
                  wrx7m
                  last edited by

                  You would put the HAProxy behind the firewall, right?

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @wrx7m
                    last edited by

                    @wrx7m said in Load balancer inside firewall or not...:

                    You would put the HAProxy behind the firewall, right?

                    Generally, yes. Because you don't want to load balance things that you want to block.

                    JaredBuschJ 1 Reply Last reply Reply Quote 1
                    • JaredBuschJ
                      JaredBusch @scottalanmiller
                      last edited by

                      @scottalanmiller said in Load balancer inside firewall or not...:

                      @wrx7m said in Load balancer inside firewall or not...:

                      You would put the HAProxy behind the firewall, right?

                      Generally, yes. Because you don't want to load balance things that you want to block.

                      Right. For example, my firewall only sends ports 443 and 80 to haproxy.

                      1 Reply Last reply Reply Quote 2
                      • DashrenderD
                        Dashrender
                        last edited by

                        Are you looking to load balance two ISP connections or two servers inside your network providing access to the outside?

                        JaredBuschJ 1 Reply Last reply Reply Quote 0
                        • JaredBuschJ
                          JaredBusch @Dashrender
                          last edited by

                          @Dashrender said in Load balancer inside firewall or not...:

                          Are you looking to load balance two ISP connections or two servers inside your network providing access to the outside?

                          The OP clearly stated that the firewalls were already going to be setup for failover.

                          This is clearly a load balancer for the backend services. Not the WAN link..

                          DashrenderD 1 Reply Last reply Reply Quote 0
                          • JaredBuschJ
                            JaredBusch @1337
                            last edited by

                            @Pete-S said in Load balancer inside firewall or not...:

                            I also wonder about SSL for load balancers. Is it best to use SSL passthrough or SSL termination?

                            It has to terminate, or else it cannot load balance.

                            1 Reply Last reply Reply Quote 1
                            • DashrenderD
                              Dashrender @JaredBusch
                              last edited by

                              @JaredBusch said in Load balancer inside firewall or not...:

                              @Dashrender said in Load balancer inside firewall or not...:

                              Are you looking to load balance two ISP connections or two servers inside your network providing access to the outside?

                              The OP clearly stated that the firewalls were already going to be setup for failover.

                              Aww I didn't know what this meant, exactly

                              after the firewalls (pfsense in fail-over config).

                              But in seeing your response - OK yeah, the firewalls will be in fail-over config...

                              1 1 Reply Last reply Reply Quote 0
                              • wrx7mW
                                wrx7m
                                last edited by

                                Wasn't pfsense in production, I guess I would say, "frowned upon"?

                                1 travisdh1T black3dynamiteB 3 Replies Last reply Reply Quote 0
                                • 1
                                  1337 @Dashrender
                                  last edited by

                                  @Dashrender said in Load balancer inside firewall or not...:

                                  @JaredBusch said in Load balancer inside firewall or not...:

                                  @Dashrender said in Load balancer inside firewall or not...:

                                  Are you looking to load balance two ISP connections or two servers inside your network providing access to the outside?

                                  The OP clearly stated that the firewalls were already going to be setup for failover.

                                  Aww I didn't know what this meant, exactly

                                  after the firewalls (pfsense in fail-over config).

                                  But in seeing your response - OK yeah, the firewalls will be in fail-over config...

                                  Yes, one firewall will do the work and the other one will be in standby. All firewall states are synced between them. If the first one fails the other one will take over all the IPs and duties.

                                  Load balancer will send the request that passes the firewall to different webservers. If one webserver dies the other one(s) will do the job.

                                  wrx7mW 1 Reply Last reply Reply Quote 0
                                  • wrx7mW
                                    wrx7m @1337
                                    last edited by

                                    @Pete-S said in Load balancer inside firewall or not...:

                                    @Dashrender said in Load balancer inside firewall or not...:

                                    @JaredBusch said in Load balancer inside firewall or not...:

                                    @Dashrender said in Load balancer inside firewall or not...:

                                    Are you looking to load balance two ISP connections or two servers inside your network providing access to the outside?

                                    The OP clearly stated that the firewalls were already going to be setup for failover.

                                    Aww I didn't know what this meant, exactly

                                    after the firewalls (pfsense in fail-over config).

                                    But in seeing your response - OK yeah, the firewalls will be in fail-over config...

                                    Yes, one firewall will do the work and the other one will be in standby. All firewall states are synced between them. If the first one fails the other one will take over all the IPs and duties.

                                    Load balancer will send the request that passes the firewall to different webservers. If one webserver dies the other one(s) will do the job.

                                    Will you also have HA for the load balancers?

                                    1 1 Reply Last reply Reply Quote 0
                                    • 1
                                      1337 @wrx7m
                                      last edited by 1337

                                      @wrx7m said in Load balancer inside firewall or not...:

                                      Wasn't pfsense in production, I guess I would say, "frowned upon"?

                                      Maybe, I don't care. Pfsense is just a customized freebsd installation with a gui as far as I'm concerned. And freebsd is solid.

                                      1 Reply Last reply Reply Quote 0
                                      • travisdh1T
                                        travisdh1 @wrx7m
                                        last edited by

                                        @wrx7m said in Load balancer inside firewall or not...:

                                        Wasn't pfsense in production, I guess I would say, "frowned upon"?

                                        Yes it is.

                                        JaredBuschJ 1 Reply Last reply Reply Quote 0
                                        • 1
                                          1337 @wrx7m
                                          last edited by 1337

                                          @wrx7m said in Load balancer inside firewall or not...:

                                          @Pete-S said in Load balancer inside firewall or not...:

                                          @Dashrender said in Load balancer inside firewall or not...:

                                          @JaredBusch said in Load balancer inside firewall or not...:

                                          @Dashrender said in Load balancer inside firewall or not...:

                                          Are you looking to load balance two ISP connections or two servers inside your network providing access to the outside?

                                          The OP clearly stated that the firewalls were already going to be setup for failover.

                                          Aww I didn't know what this meant, exactly

                                          after the firewalls (pfsense in fail-over config).

                                          But in seeing your response - OK yeah, the firewalls will be in fail-over config...

                                          Yes, one firewall will do the work and the other one will be in standby. All firewall states are synced between them. If the first one fails the other one will take over all the IPs and duties.

                                          Load balancer will send the request that passes the firewall to different webservers. If one webserver dies the other one(s) will do the job.

                                          Will you also have HA for the load balancers?

                                          Yes, but I'm not sure how I will set it up. If firewall-1 goes down (completely or NIC failure) then firewall-2 will take over and that also means loadbalancer-2 will take over.

                                          1 Reply Last reply Reply Quote 1
                                          • wrx7mW
                                            wrx7m
                                            last edited by

                                            @travisdh1 said in Load balancer inside firewall or not...:

                                            @wrx7m said in Load balancer inside firewall or not...:

                                            Wasn't pfsense in production, I guess I would say, "frowned upon"?

                                            Yes it is.

                                            If you wanted to run a VM as your firewall, is there something that would be recommended?

                                            travisdh1T 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post