debian,ubuntu,linux,howtos,manuals,notes,manpages

a webcache for the local network

February 15, 2009
By

proxy.cipar.net (192.168.1.14)

http://manpages.songshu.org/manpages/lenny/en/man8/squid.8.html

a webcache for the local network
http://blog.last.fm/2007/08/30/squid-optimization-guide not really sure in how far this optimalisations are optimal for this particulair setting, but it works with or without. and at least for a small office environment i can see no noticable difference with the naked eye.

Installation

newvserver --vsroot /VSERVERS --hostname proxy --domain cipar.net --ip 192.168.1.14/24 --dist etch --mirror http://192.168.1.12:3142/debian.apt-get.eu/debian --interface dummy0
Your current time zone is set to Unknown
Do you want to change that? [n]:

Enter for default
 Enable shadow passwords?
<Yes> 
enter the root password
Create a normal user account now?
 <No>    
Choose software to install:
<Ok> 
nano /etc/vservers/proxy/apps/init/mark
default
vserver proxy start
vserver proxy enter
nano /etc/apt/sources.list
deb http://192.168.1.12:3142/security.debian.org/ etch/updates main contrib
deb http://192.168.1.12:3142/ftp.nl.debian.org/debian/ etch main contrib non-free
apt-get update
apt-get upgrade
apt-get install squid3
nano /etc/squid3/squid.conf
dns_nameservers 192.168.1.17
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA
maximum_object_size_in_memory 50 KB
cache_mem 100 MB
memory_pools off
maximum_object_size 50 MB
quick_abort_min 0 KB
quick_abort_max 0 KB
log_icp_queries off
client_db off
buffered_logs on
half_closed_clients off
http_port 3128 transparent
acl our_networks src 192.168.0.0/24
http_access allow our_networks
forwarded_for off
/etc/init.d/squid3 restart

Tags: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*