Squid cache (Squid for short) is a popular free software (GNU General Public License) proxy server and Web cache Server. Squid has a wide range of uses, from cache-related requests as front cache servers of Web servers to improving the speed of Web servers, to cache the World Wide Web for a group of people to share network resources, domain Name System and other network search, to help network security by filtering traffic, to the LAN through the proxy to access the Internet. Squid is designed to run in Unix systems.
Lab environment CentOS-5.5
Lab software squid-2.6.STABLE21-6.el5.i386.rpm
Mount/dev/cdrom/mnt/
Mount: block device/dev/cdrom is write-protected, mounting read-only
Cd/mnt/CentOS/
Find * squid *
Squid-2.6.STABLE21-6.el5.i386.rpm
Install software
Rpm-ivh squid-2.6.STABLE21-6.el5.i386.rpm
Warning: squid-2.6.STABLE21-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ######################################## ### [100%]
1: squid ####################################### #### [100%]
Start the service
/Etc/rc. d/init. d/squid restart
Stopping squid:. [OK]
Starting squid:. [OK]
View port
Netstat-tupl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
Tcp 0 0 *: sunrpc *: * LISTEN 2651/portmap
Tcp 0 0 localhost. localdomain: ipp *: * LISTEN 2814/cupsd
Tcp 0 0 *: squid *: * LISTEN 3077/(squid)
Tcp 0 0 *: ssh *: * LISTEN 2986/sshd
Udp 0 0 *: turbonote-1 *: * 3077/(squid)
Udp 0 0 *: icpv2 *: * 3077/(squid)
Udp 0 0 *: bootpc *: * 2366/dhclient
Udp 0 0 *: sunrpc *: * 2651/portmap
Udp 0 0 *: ipp *: * 2814/cupsd
Configuration File
/Etc/squid. conf: the location where the configuration file is stored
Cp-R/etc/squid. conf/etc/squid. conf. bak must be added to ensure the same permissions.
In this way, the server configuration is complete.
Enter the Server ip address and port number.
In this way, you can access the Internet through the proxy server.