From PFSenseDocs
| This article is part of the HOWTO series.
|
What is a squidGuard
SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free. SquidGuard is published under GNU Public License.
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 info page.
- redirect banners to an empty GIF.
- have different access rules based on time of day, day of the week, date etc.
Installation
- Open Packages list: click System > Packages
- Install the Squid package, if it is not installed.
- Configure Squid package.
- Install SquidGuard package.
Configure the SquidGuard Package
Blacklist
SquidGuard comes with a small blacklist basically for testing purposes. In production you don't want to use them. A better way is to start with one of the blacklist collections listed (alphabetically) below.
Downloading blacklist:
- Open General page in SquidGuard package GUI.
- Enter blacklist url in the field Blacklist URL.
- Press Upload URL button.
- Wait, while blacklist will downloaded and prepared to use(10-35 min). Process will showed on top of the General page (renew for control).
Basic configuration
Here describes how to enable and configure SquidGuard, and common users access.
- Open General settings page.
- Set Enable field for activate package.
- Set Blacklist field for use blacklist categories.
- Click Save button.
- Open Default page.
- Click Destination ruleset string for showing blacklist categories
- Define default user access: select Default access [all] as allow or deny.
- Define other blacklist categories:
- Select '---', if you not use category.
- Select allow, if you allow this category for you clients.
- Select deny, if you deny this category for you clients.
- Select white, if you want to allow this category without any restrictions. This option is used for exceptions to the prohibited category.
- If you want to prohibit their customers to use the IP address in the URL, you must set Not to allow IP addresses in URL field.
- Select Redirect mode:
- Internal error page - for use the built-generator, the error page.
- Internal blank page
- ... here will be more ...
- Spec: Use safe search engine - set this option, if you need protect customers from unwanted search results. Now it is supported by Google, Yandex, Yahoo, MSN, Live Search. Make sure that these search engines are available. All other search engines, we recommend that you disable.
-= HERE UNDER CONSTRUCTION =-
HowTo
Exclude domain/URL from blacklist
squidGuard GUI:
- Open Destinations page
- Append new item - 'myWhitelist' for example.
- Add you domains/URL's to form
- Save
- Open Default or ACL page (where you want to make an excluding).
- Set Destinstion > Ruleset > MyWhiteList as white
- Save, Apply.
-= to be continued =-