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.. :-)

Share this

Related Posts

Previous
Next Post »

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