A Blog about technology, linux, peer2peer, cool new downloads and software development.

Saturday, February 9, 2008

configuring squid proxy on ubuntu

$ sudo su -
# apt-get install squid
# vi /etc/squid/squid.conf
configure the proxy port to 8081 (this the port that needs to be configured in the browser)
search for "http_port" and change to "http_port 8081"
configure the cache to use 2GByte storage
search for "cache_dir" and change to "cache_dir aufs /var/spool/squid 2000 16 256"
(change the storage type from ufs to aufs, explanation from the squid.conf file :
# The aufs store type:
#
# "aufs" uses the same storage format as "ufs", utilizing
# POSIX-threads to avoid blocking the main Squid process on
# disk-I/O. This was formerly known in Squid as async-io.)
configure the access list for example :
acl our_networks src 192.168.0.1/24
http_access allow our_networks
start squid :
# /etc/init.d/squid restart

No comments: