Proxy service in Linux

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.