Squid is a high-performance caching proxy server that stores frequently accessed web content to improve network efficiency. It reduces bandwidth usage on busy networks by caching content locally. Squid communicates with peer caches using the Inter-Cache Protocol and can operate as a traditional proxy or front-end accelerator. Configuring Squid involves setting up TCP/IP on the server, editing squid.conf to change ports and define access rules, restarting Squid, and configuring clients to use the Squid server address.
1 of 3
Download to read offline
More Related Content
17937858 squid-server - [the-xp.blogspot.com]
1. SQUID SERVER:
Squid is a high-performance HTTP and FTP caching proxy server. It is also known as a Web proxy
cache. It can make your network connections more efficient. As it stores data from frequently used
Web pages and files, it can often give your users the data they need without their systems having to
look to the Internet.
Studies on very busy networks suggest that a Squid server can reduce the size, or bandwidth, of
your Internet connection. That can lead to considerable savings for larger offices.
Squid uses the Inter-Cache Protocol (ICP) for transfers between participating peer and parent/child
cache servers. It can be used either as a traditional caching proxy or as a front-end accelerator for a
traditional Web server.
STEPS TO CONFIGURE SQUID PROXY SERVER :
1. Configure a TCP/IP for Squid Server :
[root@localhost /]# netconfig or system-config-network or setup
IP address: ________________
Netmask:
___________
_____
Default
gateway (IP):
___________
_____
Primary
nameserver:
___________
_____
2. 2. Configure the /etc/squid.conf file :
揃 Change the default port no to 8080
揃 Create a acl rule under the 127.0.0.01
揃 Create a http_access allow and deny rule under the http_access
[root@localhost /]# vi /etc/squid/squid.conf
揃 Go to the port line : /3128 and change the port
#detault:
http_port 8080
揃 Go to the line and create a acl rule: /127.0.0.01
#Recommended minimum configuration:
# Near the src acl src section
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 172.16.0.0/255.255.0.0
acl to_localhost dst 127.0.0.0/8
acl yahoo dstdomain .yahoo.com
acl gmail dstdomain .gmail.com
acl cric dstdomain .cricinfo.com
acl CONNECT method CONNECT
揃 Go to the line and allow the rules: /http_access
#Recommended minimum configuration:
# Only allow cachemgr access from localhost
http_access deny yahoo
http_access deny gmail
http_access allow cric
http_access allow local
Restart the Squid services:
3. [root@localhost /]# service squid restart
[root@localhost /]# /etc/init.d/squid restrart
On the service of Squid server :
[root@localhost /]# chkconfig squid on
ON CLIENT SIDE :
Configure a TCP/IP for your Lan computers :
[root@localhost /]# netconfig or system-config-network or setup
IP address: ________________
Netmask: ________________
Default gateway (IP): ________________
Primary nameserver: ________________
Go to the internet explorer
Edit -> preferences -> internet connections-.
Set the squid server ip address and port no