Squid + SquidGuard2014/06/08 |
In addition to configure SquidClamav,
Configure SquidGuard which is the URL redirector to use blacklists.
|
|
[1] | Install SquidGuard |
root@prox:~#
root@prox:~# apt-get -y install squidguard mv /etc/squidguard/squidGuard.conf /etc/squidguard/squidGuard.conf.bk
root@prox:~#
vi /etc/squidguard/squidGuard.conf # create new ( simply settings as an example )
dbhome /var/lib/squidguard/db logdir /var/log/squidguard dest deny { # define 'deny' category for prohibited domain domainlist deny/domains # define 'deny' category for prohibited URL urllist deny/urls } acl { default { # permit all except 'deny' category pass !deny all # the redirected URL if matchs 'deny' redirect http://www.srv.world/error.html } } mkdir /var/lib/squidguard/db/deny
root@prox:~#
vi /var/lib/squidguard/db/deny/domains # write domains you'd like to prohibit to access
yahoo.co.jp
example.com
root@prox:~#
vi /var/lib/squidguard/db/deny/urls # write URLs you'd like to prohibit to access
www.yahoo.co.jp/deny/
www.example.com/ squidGuard -C all 2014-06-08 13:25:35 [14132] INFO: squidGuard 1.5 started (1402287935.664) 2014-06-08 13:25:35 [14132] INFO: db update done 2014-06-08 13:25:35 [14132] INFO: squidGuard stopped (1402287936.001) root@prox:~# chown -R c-icap:proxy /var/lib/squidguard
root@prox:~#
chown -R c-icap:proxy /var/log/squidguard
root@prox:~#
vi /etc/squidclamav.conf # line 21: uncomment and change squidguard /usr/bin/squidGuard
/etc/init.d/c-icap restart * Restarting c-icap Server c-icap ...done. |
[2] | Try to access to the URL you set as prohibited domains in [1]. |
Sponsored Link |
|