• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.
  • M
    marcelloc
    last edited by Sep 12, 2012, 2:54 PM

    @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 Sep 12, 2012, 6:33 PM

      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 Sep 13, 2012, 9:06 AM

        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
        • M
          marcelloc
          last edited by Sep 13, 2012, 2:33 PM

          @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
          • M
            marcelloc
            last edited by Sep 13, 2012, 2:35 PM

            @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 Sep 13, 2012, 5:36 PM Sep 13, 2012, 5:10 PM

              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 Sep 13, 2012, 5:18 PM

                @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
                • M
                  marcelloc
                  last edited by Sep 13, 2012, 7:26 PM

                  @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 Sep 14, 2012, 1:11 PM Sep 13, 2012, 8:13 PM

                    @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 Sep 14, 2012, 1:13 PM

                      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
                      • M
                        marcelloc
                        last edited by Sep 14, 2012, 2:45 PM

                        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 Sep 17, 2012, 6:07 AM

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

                          Thanks again marcelloc for your help

                          1 Reply Last reply Reply Quote 0
                          24 out of 24
                          • First post
                            24/24
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received