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

    HELP: HAProxy

    Scheduled Pinned Locked Moved pfSense Packages
    24 Posts 3 Posters 14.1k 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.
    • marcellocM
      marcelloc
      last edited by

      @canefield:

      Marcello, any update yet?

      Not yet, I'm really busy on my job and last month I had no time for package devel.  :(

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • C
        canefield
        last edited by

        Marcello,

        No problem. Do you have any estimate?

        Thanks,
        Canefield

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          @canefield:

          No problem. Do you have any estimate?

          Ill release a devel version soon with current code. I need some patches applied on mod_security freebsd ports to get all features working but after about 50 days, its still not merged by package commiter

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • N
            nimamhd
            last edited by

            Hello
            i install haproxy-full 1.4.21 pkg v 1.0 on pfsense 2.0.1 and configure it with 3 webserver,
            it works but do not insert cookies to clients and keep switching between servers.
            what`a wrong with my config? ???
            i use Round robin Balance in HTTP Type.

            Thanks a lot.

            1 Reply Last reply Reply Quote 0
            • C
              canefield
              last edited by

              Dear Nimamhd,

              How did you managed this? Do you also have one external IP? Forwarding based on host-header in case of port 80 and 443? Did you managed the '/haproxy?stats' part?

              I really hope you can help me out though.

              KR,
              Canefield

              1 Reply Last reply Reply Quote 0
              • marcellocM
                marcelloc
                last edited by

                @canefield:

                …Forwarding based on host-header in case of port 443....

                I think haproxy can balance only 443 connections without checking host header.

                It will work fine on server pools that has the same config.

                I`ll try to speed up apache2 devel package to help you. some features will be left out as I need changes on ports.

                Treinamentos de Elite: http://sys-squad.com

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  @nimamhd:

                  what`a wrong with my config? ???
                  I use Round robin Balance in HTTP Type.

                  Change it to source instead of round-robin

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • N
                    nimamhd
                    last edited by

                    Hello Dear marcelloc

                    It works when use Source instead of round robin.
                    but why the cookies dose not insert to client?

                    I was googleing and found " http://www.howtoforge.com/forums/archive/index.php/t-34573.html "

                    They have my problem, how can i add " cookie JSESSIONID insert " in to the HAproxy Config File?

                    Thanx.

                    1 Reply Last reply Reply Quote 0
                    • N
                      nimamhd
                      last edited by

                      @canefield:

                      Dear Nimamhd,

                      How did you managed this? Do you also have one external IP? Forwarding based on host-header in case of port 80 and 443? Did you managed the '/haproxy?stats' part?

                      I really hope you can help me out though.

                      KR,
                      Canefield

                      Hi Canefield

                      I have one External IP and Forwarding port 80 , /haproxy?stats works fine .
                      i had a problem when i use " NAT Port Forwarding " at the same time with same External Ip address. i disabled the Port Fw, and "/haproxy?stats" gone ok.

                      1 Reply Last reply Reply Quote 0
                      • marcellocM
                        marcelloc
                        last edited by

                        @nimamhd:

                        It works when use Source instead of round robin.
                        but why the cookies dose not insert to client?

                        Did you configure cookie on servers tab?

                        Treinamentos de Elite: http://sys-squad.com

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • N
                          nimamhd
                          last edited by

                          @marcelloc:

                          @nimamhd:

                          It works when use Source instead of round robin.
                          but why the cookies dose not insert to client?

                          Did you configure cookie on servers tab?

                          Yes , i configure it .

                          1 Reply Last reply Reply Quote 0
                          • N
                            nimamhd
                            last edited by

                            Finally the problem was solved . i add " cookie XXXX insert indirect nocache " in to front end "Advanced pass thru" , it works perfectly .

                            server insert cookie to clients now.

                            Thanx A lot team.

                            1 Reply Last reply Reply Quote 0
                            • marcellocM
                              marcelloc
                              last edited by

                              So this field should be custom options  instead of Advanced pass thru ?

                              Just another hint from haproxy mailing list.

                              If you want/need to detect offline servers, configure haproxy to use only one processor instead of detected cpus.

                              Treinamentos de Elite: http://sys-squad.com

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • N
                                nimamhd
                                last edited by

                                I was bewildered with " Advanced pass thru "`s  name actually .

                                Thanks again marcelloc for your help

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