Thursday, 7 July 2016

Configuring DansGuardian with CentOS 7

A quick and dirty note on how to get DanbsGuardian up and running with squid on CentOS 7.

Firstly download the dansguardian rpm from:

cd /tmp
curl -O ftp.gwdg.de/opensuse/repositories/home:/Kenzy:/packages/CentOS_7/x86_64/dansguardian-2.12.0.3-1.1.x86_64.rpm

install the rpm:

rpm -i dansguardian-2.12.0.3-1.1.x86_64.rpm

Edit the default configuration:

vi /etc/dansguardian/dansguardian.conf

and ensure 'filterport' is set to the appropriate port for dansguardian

and 'proxyport' is set to the one squid is currently listening on.

Finally ensure dansguardian will start on boot:

systemctl enable dansguardian

and restart the service:

sudo service dansguardian restart

To test add a domain to /etc/dansguardian/lists/bannedsitelist e.g.:

vi /etc/dansguardian/lists/bannedsitelist

and add test.com

There are some good publicly available blacklists around - one being:

http://urlblacklist.com/?sec=download 

0 comments:

Post a Comment