Working with DansGuardian.DansGuardian para BrazilFW 3.0:Dansguardian is a filter that integrates to Squid to filter "incorrect contents" acording to our configuration.
It is very useful in network environments where a high level of control of the browsed pages is needed, having yet much more complex rules compared to Squid. However, even though it is rigurous, it is extremely flexible.
WARNING:
It is advisable to use Dansguardian only in corporate networks. It is not recommended for ISP or Providers.
Dansguardian in action:
Let's explore some of the files to be configured in DansGuardian to achieve content blocking:Every file starting with "banner" are negation files and every file starting with "exception" are exception files.Files placed in the folder /etc/brazilfw/dansguardian/lists/o bannedextensionlist ==> File extention blocking list. Here you place the extentions of the files that you want to block.
o bannedsitelist ==> Sites blocking list. Place here your flile blacklist.
o filtergroupslist ==> Here you can assign a user to a particular group, at first all the users belong to the same group.
o bannediplist ==> List of blocked IPs. The IPs listed on this file will have no access at all.
o bannedmimetypelist ==> Type blocked MIME (blocked download).
o bannedphraselist ==> List of "forbidden" phrases within the page (not an URL).
o bannedregexpurllist ==> List of blocked regular expressions.
o bannedurllist ==> List of blocked URLs.
o banneduserlist ==> List of blocked users, users without Internet access.
o contentregexplist ==> Regular expressions based content to be replaced.
o exceptioniplist ==> Filtered IPs exception (Network IPs not to be filtered).
o exceptionsitelist ==> Free access sites. The sites listed here will be liberated of every content check.
o exceptionphraselist ==> List of phrases to be considered as an exeption.
o exceptionurllist ==> List of URLs to be considered as an exception (liberated urls).
o exceptionuserlist ==> List of users to be considered as an exception.
o greysitelist ==> White list sites ¿¿White??
o greyurllist ==> White list URLs ¿¿White??
o pics ==> PICS Labeling definition.
--------------------------
o weightedphraselist ==> List of phrases and their "weight" (the weights can be positive or negative)
--------------------------
Files placed in the directory folder /etc/brazilfw/dansguardian/
o dansguardian.conf ==> Main configuration file.
o dansguardianf1.conf ==> Users group configuration file.
Don't think twice, READ ALL THE CONFIGURATION FILES, that will help you to better understand the working logic of DansGuardian.
To enable DansGuardian in BFW do the following:- Código: Selecionar todos
edit /etc/brazilfw/custom/squid.cfg
En la linea WEB_CONTENT_FILTER='no'
Cambiar 'no' por 'yes'
Salvar y salir
Configure your blockings (then save and exit). Afterwards stop SQUID and restart it again.
To Stop SQUID- Código: Selecionar todos
/etc/init.d/squid stop
To Start SQUID- Código: Selecionar todos
/etc/init.d/squid start
When you modify any file in the directory folder /etc/brazilfw/dansguardian/lists/, do the following:
- Código: Selecionar todos
/etc/init.d/squid reload
When you move the files dansguardian.conf:
dansguardianf1.conf, bannedip and exceptionip that are all together in the same directory folder than dansguardian.conf, run the following command:
- Código: Selecionar todos
/etc/init.d/squid restart-dg
Sources:
* Woshman: memberlist.php?mode=viewprofile&u=1335
* DansGuardian:
http://www.dansguardian.org *
http://br-linux.org/tutoriais/003552.html * Squid + DansGuardian
*
http://www.vivaolinux.com.br/dica/Liber ... nsguardian
Click here to return to the index.