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

    Varnish configuration

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 3.4k 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.
    • C
      crazyzoar Banned
      last edited by

      Please tell me the configuration of varnish. i am new on pfsense.
      i don't know that what values i shall have to write on varnish setting:
      Listening port ??????
      Managment interface??????
      Advanced startup options?????
      Storage type ???????
      Cache storage size in megabytes/??????
      Minimum worker threads ?????????
      Maximum worker threads ??????
      Worker thread timeout??????
      Client identity method?????????
      Don't cache posts ?????
      Don't cache posts ???????
      Session Cache???????
      Cache static content??????
      Fix gzip compression ???????
      Be RFC2616 compliant ?????????????
      Foward client IP ????????
      Fetch Grace???????
      Retries ??????????
      Saintmode?????
      Custom Html error message???????

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

        take a look at varnish documentation.
        Varnish is not so easy to configure, the gui helps, but it still need some varnish knowledge.
        @crazyzoar:

        Please tell me the configuration of varnish. i am new on pfsense.
        i don't know that what values i shall have to write on varnish setting:
        Listening port (usually 80)
        Managment interface (usually localhost)
        Advanced startup (usually empty)
        Storage type (ram for better performance)
        Cache storage size in megabytes/ (depends on how much ram/disk you have)
        Minimum worker threads (could be 32 but depends on your hardware)
        Maximum worker threads (could be 1024 but depends on your hardware)
        Worker thread timeout (could be 300)
        Client identity method (ip address is more compatible with sessions)
        Don't cache posts (yes, don't)
        Session Cache (per user is a good choice ) take a look on field documentation link
        Cache static (when possible cache only in session, always remove cookies before cache)
        Fix gzip compression recommended
        Be RFC2616 compliant recommended
        Foward client IP userfull to log remote ip on web servers using x-forwarder-varnish var
        Fetch Grace How many time varnish will keep cached objects. HINT 60s, 30m, 1h
        Retries how many times retry url before sending error to users or checking for fail over
        Saintmode How many time varnish will send cached objects from a down backend to client. HINT 60s, 30m, 1h
        Custom Html error message how to send error messages to users

        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.