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

How to Install and Configure Squid Server on Linux Mint 20

  • 00:22 cat /etc/os-release
  • 00:37 apt-get install squid
  • 00:54 systemctl start squid
  • 01:07 systemctl status squid
  • 01:20 vi /etc/squid/squid.cong
  • 03:33 vi /etc/squid/block.txt
  • 04:14 service squid reload
6375

To Install and Configure Squid Server on Linux Mint 20

Introduction:

Install & Configure the Squid server on LinuxMint20: A proxy server is acting as a gateway between the user and the internet. It is used to restrict websites and browsers from particular users. This tutorial covers the installation process of the squid proxy on LinuxMint 20. Let check the version of the OS by using the following command

root@linuxhelp:~# cat /etc/os-release
NAME="Linux Mint"
VERSION="20 (Ulyana)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20"
VERSION_ID="20"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=ulyana
UBUNTU_CODENAME=focal

Once the OS version is checked, now install the squid server by using the following command

root@linuxhelp:~# apt-get install squid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
.
.
.
  libdbi-perl libecap3 squid-common squid-langpack
Processing triggers for ufw (0.36-6) ...
Processing triggers for systemd (245.4-4ubuntu3) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...

After the squid is installed, now start the squid service by using the following command

root@linuxhelp:~# systemctl start squid

After the squid service is started. Check the status of the squid service by using the following command

root@linuxhelp:~# systemctl status squid
● squid.service - Squid Web Proxy Server
     Loaded: loaded (/lib/systemd/system/squid.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-11-04 09:25:17 IST; 5h 40min ago
       Docs: man:squid(8)
    Process: 5768 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
   Main PID: 2646 (squid)
      Tasks: 4 (limit: 2244)
     Memory: 17.0M
     CGroup: /system.slice/squid.service
             ├─2646 /usr/sbin/squid -sYC
             ├─2648 (squid-1) --kid squid-1 -sYC
             ├─5769 (logfile-daemon) /var/log/squid/access.log
             └─5770 (pinger)

Nov 04 14:51:55 linuxhelp squid[2648]: Squid plugin modules loaded: 0
Nov 04 14:51:55 linuxhelp squid[2648]: Adaptation support is off.
Nov 04 14:51:55 linuxhelp squid[2648]: Store logging disabled
Nov 04 14:51:55 linuxhelp squid[2648]: DNS Socket created at [::], FD 11
Nov 04 14:51:55 linuxhelp squid[2648]: DNS Socket created at 0.0.0.0, FD 12
Nov 04 14:51:55 linuxhelp squid[2648]: Adding nameserver 127.0.0.53 from /etc/resolv.conf
Nov 04 14:51:55 linuxhelp squid[2648]: HTCP Disabled.
Nov 04 14:51:55 linuxhelp squid[2648]: Pinger socket opened on FD 15
Nov 04 14:51:55 linuxhelp squid[2648]: Finished loading MIME types and icons.
Nov 04 14:51:55 linuxhelp squid[2648]: Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 13 flags=9

After the squid server status is checked. Let configure some rules using squid.conf file

root@linuxhelp:~# vi /etc/squid/squid.conf
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
include /etc/squid/conf.d/*
acl newlist src 192.168.7.236
acl blok dstdomain "/etc/squid/block.txt"
http_access deny newlist blok
http_access allow newlist

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
#http_access allow localnet
http_access allow localhost

After the configuration is complete. Let configure block.txt by using the following command.

root@linuxhelp:~# vi /etc/squid/block.txt
facebook.com
google.com

After the configuration is complete, now reload the squid service by using the following command

root@linuxhelp:~# service squid reload

Open the setting on browser and clock preference snap1 Click the network setting option snap2 Configure Proxy Access to the Internet snap3 Here the facebook.com is blocked by squid proxy service snap4 Here the google.com is blocked by squid proxy service snap5 Here the Instagram page will be allowed by the squid server snap6

The installation process of the Squid Proxy server on LinuxMint 20 comes to an end.

Tags:
aiden
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is the port number of squid proxy?

A

The port number of squid proxy is 3128.

Q

Where the squid proxy configuration location?

A

The location of the squid proxy configuration file is /etc/squid/squid.conf.

Q

Which command is used to restart the squid service?

A

To restart the squid service use systemctl.

Q

Which protocols support the squid server?

A

The squid server supports HTTP, FTP, SSL, DNS protocols.

Q

What is the file format of Squid stores data?

A

Squid stores data file format is UFS(Universal Flash Storage).

Related Tutorials in How to Install and Configure Squid Server on Linux Mint 20

Related Tutorials in How to Install and Configure Squid Server on Linux Mint 20

How to install WinRAR 5.11 on Linuxmint 18.03
How to install WinRAR 5.11 on Linuxmint 18.03
May 22, 2018
How to Setup VNC Server on Linux Mint 20
How to Setup VNC Server on Linux Mint 20
Dec 22, 2020
How to limit bandwidth in Squid - Part 4
How to limit bandwidth in Squid - Part 4
Jun 28, 2016
How to install and configure samba setup in Linux mint - 18.3
How to install and configure samba setup in Linux mint - 18.3
Mar 26, 2018
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How to Install and Configure Samba on Linux Mint 20
How to Install and Configure Samba on Linux Mint 20
Nov 9, 2020
How to Install NextCloud on Linux Mint 18.3
How to Install NextCloud on Linux Mint 18.3
Feb 27, 2018
How To Install And Update OpenSSL On Linuxmint 18.3
How To Install And Update OpenSSL On Linuxmint 18.3
Jun 8, 2018

Related Forums in How to Install and Configure Squid Server on Linux Mint 20

Related Forums in How to Install and Configure Squid Server on Linux Mint 20

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
Squid
hobbs class=
WARNING: Could not determine this machines public hostname. Please configure one or set visible_hostname.
Sep 21, 2017
Squid
oliver class=
How to allow only one site in SQUID
Feb 11, 2017
Squid
nathan class=
SARG : make[1]: *** [check-macro-version] Error 1
Sep 27, 2017
Linux
isaac class=
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-8.0/mysql-client-core-8.0_8.0.21-0ubuntu0.20.04.4_amd64.deb 404 Not Found
Dec 4, 2020
Linux Mint
AlxH class=
Complete beginner, install bluegriffon
Jul 1, 2020
Squid
owen class=
How to view squid logs in human readable format
Sep 21, 2017

Related News in How to Install and Configure Squid Server on Linux Mint 20

Related News in How to Install and Configure Squid Server on Linux Mint 20

A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
Apr 9, 2019
Linux Mint 18.2 Ubuntu based Operating System is named Sonya
Linux Mint 18.2 Ubuntu based Operating System is named Sonya
May 2, 2017
Refreshed Linux Mint Debian Edition (LMDE) 2 'Betsy' ISO images now available
Refreshed Linux Mint Debian Edition (LMDE) 2 'Betsy' ISO images now available
Mar 14, 2017
The Best Linux Operating System is in the house: Mint 18.2
The Best Linux Operating System is in the house: Mint 18.2
Aug 12, 2017
Linux Mint 18.1 released with smooth features and offers long-term support
Linux Mint 18.1 released with smooth features and offers long-term support
Apr 11, 2017
Linux Mint 18.2 Sonya Beta version now available for download
Linux Mint 18.2 Sonya Beta version now available for download
Jun 7, 2017
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 legeek ?
Installation of the call center module

hello

I wish to install a call center in virtual with issabel, I downloaded the latest version of it , but I don' t arrive to install the call center module in issabel. please help me

thanks!

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.