mbox

squidguard 1.5-beta: Added switch for DNS Blacklist

Message ID 20170122132425.1942-1-matthias.fischer@ipfire.org
State Superseded
Headers

Message

Matthias Fischer Jan. 23, 2017, 12:24 a.m. UTC
  squidguard 1.5 has this feature, so I thought I could test this:

This patch adds the option to block against dns based blacklists.

For details see:
http://www.squidguard.org/Doc/extended.html

"Attention:
This feature requires squidGuard 1.5 or later or the dnsbl
patch for squidGuard 1.4 provided by INL - http://www.inl.fr/.
If you want to use external dns based blacklists such as black.uribl.com
for blocking you can use !dnsbl to dynamically check domain names against such services."

Example (squidGuard.conf):

...
acl {
	default {
		pass !dnsbl:your.preferred.blacklist.domain.com all
		redirect http://localhost/block.html
	}
}
...

"If you use !dnsbl without specifying a domain, black.uribl.com is used as default."

This is what I did for testing.

Discussion in german IPFire-Forum:
https://forum.ipfire.org/viewtopic.php?f=17&t=18083&sid=94b26f24a3d97891af84286ed939e3bb

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 html/cgi-bin/urlfilter.cgi | 15 +++++++++++++++
 langs/de/cgi-bin/de.pl     |  1 +
 langs/en/cgi-bin/en.pl     |  5 ++++-
 langs/es/cgi-bin/es.pl     |  1 +
 langs/fr/cgi-bin/fr.pl     |  1 +
 langs/it/cgi-bin/it.pl     |  1 +
 langs/nl/cgi-bin/nl.pl     |  1 +
 langs/pl/cgi-bin/pl.pl     |  1 +
 langs/ru/cgi-bin/ru.pl     |  1 +
 langs/tr/cgi-bin/tr.pl     |  1 +
 lfs/squidguard             |  2 +-
 11 files changed, 28 insertions(+), 2 deletions(-)