• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install and configure Squid proxy server on CentOS 7

  • 00:52 yum install squid -y
  • 02:01 vim blocklist.txt
  • 05:35 systemctl status squid
  • 05:49 systemctl start squid
  • 06:19 systemctl status squid
6641

To Install and Configure Squid proxy server on Cent OS 7

Introduction

Squid Proxy server which is the widely used in unix like platforms. It is mainly used for to reduce the traffic and lower the bandwidth from server to client. A squid server which stores the mostly requesting data from the client and stores that data in the form of cache. Squid can also be used for security purpose.

Installing the squid service

[root@linuxhelp /]# yum install squid -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
Resolving Dependencies
--> Running transaction check
---> Package squid.x86_64 7:3.5.20-17.el7_9.6 will be installed
--> Processing Dependency: squid-migration-script for package: 7:squid-3.5.20-17.el7_9.6.x86_64
--> Running transaction check
---> Package squid-migration-script.x86_64 7:3.5.20-17.el7_9.6 will be installed
--> Finished Dependency Resolution
Installed:
  squid.x86_64 7:3.5.20-17.el7_9.6                                           

Dependency Installed:
  squid-migration-script.x86_64 7:3.5.20-17.el7_9.6                          
Complete!

Editing the configuration file Snap 1

[root@linuxhelp /]# vim /etc/squid/squid.conf

Creating the block list Snap 2

[root@linuxhelp /]# vim blocklist.txt

Again Editing the configuration file Snap 3

[root@linuxhelp /]# vim /etc/squid/squid.conf
To see the status of the squid service
[root@linuxhelp /]# systemctl status squid
● squid.service - Squid caching proxy
   Loaded: loaded (/usr/lib/systemd/system/squid.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

Sep 03 06:56:19 linuxhelp.localdomain squid[9630]: Squid Parent: will star...
Sep 03 06:56:19 linuxhelp.localdomain squid[9630]: Squid Parent: (squid-1)...

To start the squid squid service

[root@linuxhelp /]# systemctl start squid

To Enable the squid service to start on boot

[root@linuxhelp /]# systemctl enable squid
Created symlink from /etc/systemd/system/multi-user.target.wants/squid.service to /usr/lib/systemd/system/squid.service.

Again see the status of the squid service

[root@linuxhelp /]# systemctl status squid
● squid.service - Squid caching proxy
   Loaded: loaded (/usr/lib/systemd/system/squid.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2021-09-03 07:06:33 EDT; 22s ago
 Main PID: 9992 (squid)
   CGroup: /system.slice/squid.service
           ├─9992 /usr/sbin/squid -f /etc/squid/squid.conf
           ├─9995 (squid-1) -f /etc/squid/squid.conf
           └─9999 (logfile-daemon) /var/log/squid/access.log

Checking the non blocked sites Snap 4!

Checking the blocklist site Snap 5

With this installation on squid proxy server on centos 7 comes to end

Tags:
hebrewgranger
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is squid proxy server ?

A

Squid is a Unix-based proxy server that can do both caching and proxying.

It can cache any web content to the user or requestor that is from a closer data storage point

Q

What is Squid proxy port?

A

This is the port on which Squid listens for client requests.
The default port is 3128, but 8080 is also common

Q

What are protocols supported by the Squid proxy server?

A

Squid is not a generic proxy. It normally proxies only HTTP connections.
It supports the protocols FTP, Gopher, SSL, and WAIS,
but it does not support other Internet protocols,
such as the news protocol,
or video conferencing protocols.

Q

What is proxy and why it is used?

A

A proxy server provides a gateway between users and the internet. It is a server, referred to as an “intermediary” because it goes between end-users and the web pages they visit online

Q

What is the use of proxy?

A

Proxy servers act as a firewall and web filter, provide shared network connections, and cache data to speed up common requests

Related Tutorials in How to install and configure Squid proxy server on CentOS 7

Related Tutorials in How to install and configure Squid proxy server on CentOS 7

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to install and configure Squid proxy server on CentOS 7

Related Forums in How to install and configure Squid proxy server on CentOS 7

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
Squid
oliver class=
how to clear squid cache
Feb 7, 2017
Squid
owen class=
How to change default logformat in squid access log
Sep 1, 2017
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.