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



  • 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??? ???



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



  • 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.


Log in to reply