Home » Linux » How To » Squid Proxy Server

Squid Proxy Server

ABOUT SQUID PROXY SERVER:

Squid proxy server enables you to cache your web content and return it quickly on subsequent requests. A proxy server is a server that caches the internet. Clients connect to the proxy server with
a request for an internet server. The proxy server will connect to the internet server on behalf
of the client. The proxy server will also cache the pages retrieved from the internet server.
A proxy server may provide pages from his cache to a client, instead of connecting to the
internet server to retrieve the pages.
When web traffic passes via a proxy server, it is common practice to configure the proxy
with extra settings for access control. Access control in a proxy server can mean user account
access, but also website(url), ip-address or dns restrictions.

Installing Squid:

root@unixhops:~# apt-get install squid  (For DEBIAN system)

Installation squid on RHEL & Cent OS:

[root@RHEL5 ~]#yum install squid

squid’s main configuration file is /etc/squid/squid.conf. The file explains every parameter
in great detail.
root@unixhops:~# wc -l /etc/squid/squid.conf

By default the squid proxy server will listen to port 3128.
root@unixhops:~# grep ^http_port /etc/squid/squid.conf
http_port 3128
root@unixhops:~#

Starting and stopping service of squid:

root@unixhops:~# service squid start
Starting Squid HTTP proxy: squid.
root@unixhops:~# service squid restart
Restarting Squid HTTP proxy: squid.
root@unixhops:~# service squid status
squid is running.
root@unixhops:~# service squid stop
Stopping Squid HTTP proxy: squid.
root@unixhops:~#

Check Also

Install kernel 4.12 in centos 7

How to Install Kernel 4.12 in CentOS 7

Back in May, Linus Torvalds released Linux kernel 4.11, which was codenamed Fearless Coyote. It came …

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: