SQUID Configuration (Proxy Caching Server) Step 1 : Install the packages for squid [root#] yum install squid* Step 2 : Verify the installed packages [root#] rpmquery -qa | grep squid o/p: squid-3.1.4-1.el6.i686 Step 3 : Get the IP Address of your machine [root#] ifconfig o/p : 192.168.2.108 Step 4 : Get the hostname of your machine [root#] hostname o/p : localhost.localdomain Step 5 : Using GUI open the file /etc/squid/squid.conf Go to Line Number 35 and write the following lines : acl deny_host src 192.168.137.130 acl allow_network src 192.168.2.108 acl web_deny dstdomain "/etc/squid/web_deny" acl block_domain dstdomain .yahoo.com http_access deny block_domain Step 6 : Create web_deny file in /etc/squid and write following : www.yahoo.com Step 7 : Start the squid service [root#] service squid start Step 8 : Stop the firewall [root#] service iptables stop Step 9 : ReStart the squid service [root#] service squid restart Step 10 : Make squid enable at boot [root#] chkconfig squid on Testing the Squid Server Step 1 : Open the Browser Mozilla Firefox Step 2 : Clear All History and Cache Step 3 : Using GUI Navigate to Edit - Preferences - Network - Settings 3.1 In configure Proxies to access Internet Select " Manual Proxy Configuration" 3.2 In HTTP Proxy text box : Write IP Address (192.168.2.108) 3.3 In Port No : Write 3128 3.4 Click OK Step 4 : Open yahoo.com - You will see its blocked by Squid