User Tools

Site Tools


software:linux:squid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
software:linux:squid [2016/01/30 03:11] superwizardsoftware:linux:squid [2016/11/13 19:10] superwizard
Line 1: Line 1:
 +====== Routing DNS Through Squid ======
 +
 +From: http://ubuntuserverguide.com/2012/05/how-to-install-and-configure-proxy-server-with-squid3-on-ubuntu-server-12-04-lts.html
 +
 +<code>
 +/etc/squid3/squid.conf
 +#
 +# DNS OPTIONS
 +# ==========
 +#
 +dns_timeout 10 seconds
 +dns_nameservers 192.168.1.1 8.8.8.8 8.8.4.4 # DNS Server
 +#
 +</code>
 +
 +
 +From: http://www.lesismore.co.za/squid3.html
 +
 +
 +<code>
 +grep -v "^#" /etc/squid/squid.conf | sed -e '/^$/d'
 +</code>
 +
 +
 +=== Firefox Proxy settings ===
 +
 +
 +{{ :software:linux:firefox_proxy_settings_2016-11-12_14_54_00-connection_settings.png?200 |}}
 +
 +
 +====== Squid Package Tuning ======
 +
 +From: https://forum.pfsense.org/index.php?topic=57230.0
 +
 +<code>
 +So that would be my suggestion:
 +
 +    Hard disk cache size 15GB
 +    Hard disk cache system aufs or ufs (increase vfs.read like you did already) Test which 
 +    performs better
 +    Memory cache size 32MB
 +    Minimum object size 16KB (I set it to 64 KB because I do not want that so many small 
 +    files will be cached. This increases HDD read/write and my WAN bandwidth allows that
 +     to download such small files directly from the web and not from squid)
 +    Maximum object size 1GB ( ServicePacks do have sizeses until 1GB. If you do not want 
 +    to cache all kind of service packs than probably a size of 256MB will be enough to get 
 +    most of the available updates in cache)
 +    Maximum object size in RAM 2MB (In RAM I would like to have only small files which could 
 +    be served very fast. I do not want to have a 100MB file in RAM which wastes much space 
 +    and could be served fast enough even from HDD)
 +    Memory replacement policy LRU (RAM should cache actual objects)
 +    Cache replacement policy Heap LFUDA (what to cache servicepacks and big files on HDD)
 +</code>
 +
 +
 ====== How much memory do I need in my Squid server? ====== ====== How much memory do I need in my Squid server? ======
  
software/linux/squid.txt · Last modified: 2016/11/13 19:11 by superwizard