How To Install squidGuard on CentOS 7
Introduction
In this tutorial we learn how to install squidGuard
on CentOS 7.
What is squidGuard
squidGuard can be used to - limit the web access for some users to a list of accepted/well known web servers and/or URLs only. - block access to some listed or blacklisted web servers and/or URLs for some users. - block access to URLs matching a list of regular expressions or words for some users. - enforce the use of domainnames/prohibit the use of IP address in URLs. - redirect blocked URLs to an “intelligent” CGI based info page. - redirect unregistered user to a registration form. - redirect popular downloads like Netscape, MSIE etc. to local copies. - redirect banners to an empty GIF. - have different access rules based on time of day, day of the week, date etc. - have different rules for different user groups. - and much more.. Neither squidGuard nor Squid can be used to - filter/censor/edit text inside documents - filter/censor/edit embeded scripting languages like JavaScript or VBscript inside HTML
We can use yum
or dnf
to install squidGuard
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install squidGuard.
Install squidGuard on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install squidGuard
using yum
by running the following command:
Install squidGuard on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install squidGuard
using dnf
by running the following command:
How To Uninstall squidGuard on CentOS 7
To uninstall only the squidGuard
package we can use the following command:
References
Summary
In this tutorial we learn how to install squidGuard
on CentOS 7 using yum
and dnf
.