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

    HowTo analyze network bandwidth for WAN & LAN on pfSense box with Squid Proxy

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 3 Posters 7.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.
    • J
      jamesseen
      last edited by

      Dear Gurus,

      I noticed that there was bandwidth problem (slow) on pfSense with Squid Proxy Server installed. http://forum.pfsense.org/index.php/topic,7281.0.html. http://forum.pfsense.org/index.php/topic,7911.15.html.

      The speed would not be reduced if Squid Proxy is not installed in pfSense.

      How to improve the speed with Proxy Sever installed??? ???

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

        Search the forum.  The squid package has been fixed in the last couple of days.

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

          To Fix Squid

          add this to the /boot/loader.conf

          kern.ipc.nmbclusters=32768
          kern.maxfiles=65536
          kern.maxfilesperproc=32768
          net.inet.ip.portrange.last=65535

          or just delete it and replace with

          autoboot_delay="1"
          #kern.ipc.nmbclusters="0"
          hint.apic.0.disabled=1
          kern.hz=100
          #for squid
          kern.ipc.nmbclusters="32768"
          kern.maxfiles="65536"
          kern.maxfilesperproc="32768"
          net.inet.ip.portrange.last="65535"

          you might ask why squid is so slow? its because default configuration of pfsense is router not as a server
          thats why kern.ipc.nmbclusters="0" <- is set to zero. if you just simply remove this squid will be just fine.

          but to tune the squid i add this
          kern.ipc.nmbclusters=32768
          kern.maxfiles=65536
          kern.maxfilesperproc=32768
          net.inet.ip.portrange.last=65535

          i just figure out why squid is slow. but i don't like the binary package of squid. i'll be using the squid HEAD bec of the store_rewrite feature for caching youtubes videos and other video files and mp3.

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