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

    Varnish

    Scheduled Pinned Locked Moved pfSense Packages
    25 Posts 5 Posters 19.2k 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

      Hi all,

      Varnish package 0.8.8 is out whith fail over for load balance pools.

      There is also a new option to force "no cache" to a specific mapping or director.

      att,
      Marcello Coutinho

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

      Help a community developer! ;D

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

        Thanks for the update Marcello!

        I did notice a bug with the package. If I disable varnish and restart the router, varnish starts-up again. The file varnish.sh should be deleted when you disable varnish to prevent it from starting when you reboot the router. Once you re-enable varnish, it should create the file and startup.

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

          Thanks again for your feedback, I will check this option.

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

          Help a community developer! ;D

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

            **varnish 0.8.9 is out.

            Actual state:**
            Good for production servers.
            Just looking if are any main options for gui until release candidate.

            main improvements:
            Per user session cache control
            better static cache options
            new sync gui
            Application and client cache control are now respected by varnish.

            main fixes:
            JSESSION verification before cookies are set.
            reload sync between varnish boxes works again.
            varnish will not start after a reboot if it is disabled.

            TODO:
            PURGE gui options
            listen on interface options
            a way to change backends and directors order in gui
            ssl suport via 'hidden' pound reverse proxy (maybe)

            att,
            Marcello Coutinho

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

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • M
              MicroMasters
              last edited by

              Thanks marcelloc for all your help. This thread has been very valuable in getting the service up and running correctly. I agree with previous post about somehow sorting the order of entries for the director.

              1 Reply Last reply Reply Quote 0
              • W
                wkmail
                last edited by

                I seem to have found a minor bug in the GUI

                In the Custom VCL tab, whatever is input into the vcl_pipe_early windows i written into the vcl_fetch_early window as well as the vcl_pipe_early window. That code is also put into the vcl_fetch clause of the config file.

                Same with vcl_pipe_late -> vcl_fetch_late

                I have tested on two different install ins both FireFox and Safari.  PfSense ver 2.0 Varnish package 0.8.9.1

                The Varnish package works great otherwise.

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

                  thanks for your feedback, i'll take a look

                  EDIT

                  The Custom options are placed correctly in varnish conf file.

                  Can you check this on your setup?

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

                  Help a community developer! ;D

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

                    Varnish 0.8.9.2 is out, now with dashboard widget.

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

                    Help a community developer! ;D

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

                      I've sucessfully compiled varnish 3.0.2 to pfsense.

                      So, packager version for varnish 2.1.5 gets its release status and now varnish3 is out in beta stage.

                      There are many improvements between 2.1.5 and 3.0.2, one of the major features included is streaming support.

                      Take a look at varnish website to see how this tool can help you.

                      If you have time, give it a try and feedback. ;)

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

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • S
                        shad061
                        last edited by

                        Hi Marcelloc, I tried to get this working last night as I stated in my other post "Topic: Using DNS in PFSense to split traffic based on host request".

                        I feel like I understand the principle pretty well but I can not get it to work. The attachment shows my config file. I was not sure what to do with the NAT settings so I tried with them enabled and disabled but it still did not work.

                        The only options I setup where two Backends and two LB Directors. Am I missing something?

                        config.txt

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

                          check backend status on varnish widget.

                          You must disable nat for port 80, varnish will do the job.

                          Until you get this working, publish varnish on port 81 for example, create a wan rule to permit port 81 communication and do tests.

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

                          Help a community developer! ;D

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