This is my report of pfsense. I work in a school and we have 400+ daily connected. This is my setup:
pfSense 2.0-BETA5 (amd64) built on Thu Jan 27 01:29:01 EST 2011
Squid 2.7.9_4
squidguard 1.3_1 pkg v.1.6
3GB of ddr2 ram
Pentium(R) Dual-Core CPU E5300 @ 2.60GHz
3 intel 1000/pro desktop nics
Mods:
for squid:
in /boot/loader.conf
kern.ipc.nmbclusters="32768"
kern.maxfiles="131070"
kern.maxfilesperproc="32768"
net.inet.ip.portrange.last="65535"
in cache manager options in gui, used null for hard disk cache and alternate dns 127.0.0.1
in squid.inc(usr/local/pkg):
dns_children 20
for squidguard:
Haven't changed anything. Stock config. Increasing redirect children only makes it worse. I have 3. Seems enough.
for firewall in advanced:
net.inet.tcp.inflight.enable Enable TCP Inflight mode 0
net.inet.tcp.tso TCP Offload Engine default (1)
hw.bce.tso_enable TCP Offload Engine - BCE default ()
kern.ipc.maxsockbuf 16777216
net.inet.tcp.rfc1323 1
net.inet.tcp.sendbuf_max 16777216
net.inet.tcp.recvbuf_max 16777216
net.inet.tcp.sendbuf_auto Send buffer autotuning enabled by default 1
net.inet.tcp.sendbuf_inc 16384
net.inet.tcp.recvbuf_auto 1
net.inet.tcp.recvbuf_inc 524288
net.inet.tcp.hostcache.expire 1
kern.ipc.somaxconn 2048
net.inet.tcp.msl default 30000 10000
I've followed
this and
this to make this changes.
My fibre optic is 60/20 mbit/s