#yum -y install squid
(or #apt-get install squid)
locate squid files
#locate squid
open the squid configuration file
# vi /etc/squid/squid.conf
Read through the squid.conf file and uncomment necessary options that you may need
Here are the changes that you needed to do on squid.conf
#squid.conf
acl our_network src 192.168.2.0/24 # creating access list
http_access allow our_network # allowing your private network for the proxy
http_access allow localhost
http_access deny all #denying all other
http_port 3128 #define proxy listening port
# define caching peer
#cache_peer hostname type proxy_port
cache_peer proxy.example.com parent 3128
#caching memory size
cache_mem 50 MB
#define cache dir
cache_dir ufs /var/spool/squid 100 16 256
#define the access log file
access_log /var/log/squid/access.log squid
#------------------ EOF (squid.conf) --------------------
for advance squid configtations visit www.squid-cache.org
building the caching directory
# /usr/sbin/squid -z
add these line to .bashrc
[root@localhost ~]# vi .bashrc
alias squidup='/usr/sbin/squid -ND &'
alias squiddown='/usr/sbin/squid -k kill'
alias squidaclog='tail -f /var/log/squid/access.log'
Thats all .. (dont forget to configure your browser for the proxy)
start squid
#squidup
shutdown squid
#squiddown
Realtime access monitoring
#squidaclog