Sharing Knowledge | System Admin Articles

Squid Proxy Caching server Installation and Configuration in Linux



Below are the steps to setup the Squid Proxy Caching server on Red Hat Enterprise Linux

1. Install Required Packages for Proxy Server:
   
    Install the  "squid-2.5.STABLE14-1.4E"  RPM packages on the server
                  
                      rpm -ivh squid-2.5.STABLE14-1.4E.rpm

2. Customize the squid.conf configuration file
                
     a. vi /etc/squid/squid.conf




Configuring Squid File ( /etc/squid/squid.conf)

Just Specify the details with respect to your requirements in squid.conf file. Look for the following lines…

http_port 8080
cache_dir ufs /var/spool/squid 1400 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
dns_nameservers [YOUR_NAME_SERVERS]
acl our_networks src  192.168.1.0/24 192.168.2.0/24 [ADD_YOUR_NETWORK_ADDRESS_HERE]
http_access allow our_networks
visible_hostname [YOUR_PROXY_SERVER_NAME]


3. Change the squid directory "/var/spool/squid/" to be owned by nobody  


                a. chown nobody /var/spool/squid/
                b. chmod 700 /var/spool/squid/


4. Run squid
                service squid start

                         
Relax... You are done with the Job.. :-)


Labels: Linux, Quick HOWTO

My Profile PhotoAbout the Author

I'm Parthiban, An UNIX System Admin by Profession. I'm Experienced in Linux/Unix System Administration and Scripting. I have done lot of work on the infrastructure Mgmt side in Linux, UNIX and Windows system administration, Hardware, Storage and Data center. I'm blogging since 2008.
Follow Me On Twitter or On Facebook

0 Comments for "Squid Proxy Caching server Installation and Configuration in Linux"

What do you think about this Article? Add your Opinion..!

Back To Top