User Tools

Site Tools


software:linux:squid

Differences

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

Link to this comparison view

Next revision
Previous revision
software:linux:squid [2016/01/29 17:35] – created superwizardsoftware:linux:squid [2016/11/13 19:11] (current) 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: 
 +
 +
 +<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? ======
 +
 +From: http://wiki.squid-cache.org/SquidFaq/SquidMemory#How_much_memory_do_I_need_in_my_Squid_server.3F
 +
 +<code>
 +As a rule of thumb on Squid uses approximately 10 MB of RAM per GB of the total of all cache_dirs 
 +(more on 64 bit servers such as Alpha), plus your cache_mem setting and about an additional 10-20MB. 
 +It is recommended to have at least twice this amount of physical RAM available on your Squid server.
 +</code>
 +
 ====== curl-loader ====== ====== curl-loader ======
  
software/linux/squid.1454088948.txt.gz · Last modified: 2016/01/29 17:35 by superwizard