Linux squid proxy server installation and configuration

  
        

Introduction to Squid Squid cache (Squid for short) is a popular free software that complies with the GNU General Public License. As the pre-cache server of the web server, Squid can proxy the user to request data from the web server and cache it. It can also be used in the local area network to enable LAN users to access the Internet through the proxy. Squid is primarily designed to run on Linux-like systems.

Squid is not only available on Linux systems, but also on AIX, Digital Unix, FreeBSD, HP-UX, Irix, NetBSD, Nextstep, SCO, and Solaris.

Squid is easier to download and install than other agent software such as Apache, Socks, TIS FWTK and delegate in Linux. It is simple and flexible to configure, supports caching and multiple protocols. With ipchains+Squid's solution, you can achieve high-performance access to the Internet while seamlessly accessing the Internet.

Squid is a software that caches internet data. It receives user download requests and automatically processes the downloaded data. That is, when a user wants to download a home page, it sends an application to Squid asking Squid to download it, then Squid connects to the requested website and requests the home page, then passes the home page to the user while preserving a backup. When other users apply for the same page, Squid immediately passes the saved backup to the user, making the user feel quite fast.


I. Environment

# lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0 -amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 5.9 (Final) Release: 5.9 Codename: Final


# getconf LONG_BIT 64


Second, Squid Installation

# yum -y install squid

# chkconfig --level 35 squid on


Third, squid configuration

# squid -z

# /etc/init.d/squid start

# cp /etc/squid/squid.conf /etc/squid/squid.conf.bak

# vim /etc/squid/squid.conf

Editing the main Configuration file:

Add the following content around 570 lines (used to control only the company's IP to use the proxy):

acl xtone src 125.77.254.58/255.255.255.255

In about 636 lines, add the following:

http_access allow xtone


# /etc/init.d/squid restart

< Br>



In order to be able to use the FTP software to configure the CONNECT proxy, you need to comment out the following contents of 620 lines:

#http_access deny CONNECT !SSL_ports


This article comes from “ ” Blog, please be sure to keep this source http://523514.blog.51cto.com/513514/1418691

Copyright © Windows knowledge All Rights Reserved