Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» Packages» HowTo analyze network bandwidth for WAN & LAN on pfSense box with Squid Proxy
Username:
Password:
 
 

Pages: [1]   Go Down
  Print  
Author Topic: HowTo analyze network bandwidth for WAN & LAN on pfSense box with Squid Proxy  (Read 2523 times)
0 Members and 1 Guest are viewing this topic.
jamesseen
Jr. Member
**
Offline Offline

Posts: 27


View Profile
« on: March 28, 2008, 09:49:14 pm »

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??? Huh
Logged
sullrich
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!



View Profile WWW
« Reply #1 on: March 29, 2008, 06:38:41 pm »

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

Follow me on Twitter! http://twitter.com/sullrich

pfSense Commercial Support

Paying customers receive support priority and detailed answers through the official commercial support channels, forum users receive as much help as time permits.
chudy
Full Member
***
Offline Offline

Posts: 126



View Profile WWW
« Reply #2 on: July 27, 2008, 10:56:08 pm »

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.
« Last Edit: July 31, 2008, 03:37:41 am by chudy » Logged

currently using lusca-HEAD(patched) for CDN(youtube vidoes) caching, bandwidth throttling(throttle if file is bigger than 32KB) and aggressive caching.

lusca and SRG for pfsense and some patch
http://code.google.com/p/pfsense-cacheboy
Pages: [1]   Go Up
  Print  
 
Jump to:  

 

Page created in 0.11 seconds with 19 queries.