Run with SquidGuard2010/07/25 |
In addition to squidClamav, Run Squid with squidGuard that is a URL redirector used to use blacklists.
|
|
[1] | Install squidguard |
root@lan05:~# aptitude -y install squidguard root@lan05:~# mv /etc/squid/squidGuard.conf /etc/squid/squidGuard.conf.bk root@lan05:~# vi /etc/squid/squidGuard.conf # create new ( most simply setting )
dbhome /var/lib/squidguard/db logdir /var/log/squid # define category 'deny' dest deny { # define prohibited domain file for 'deny' domainlist deny/domains # define prohibited URL file for 'deny' urllist deny/urls } acl { default { # allow except 'deny' pass !deny all # redirect URL redirect http://www05.srv.world/error.html } } root@lan05:~# mkdir /var/lib/squidguard/db/deny root@lan05:~# vi /var/lib/squidguard/db/deny/domains # write domains you'd like to prohibit to access
yahoo.co.jp example.com root@lan05:~# vi /var/lib/squidguard/db/deny/urls # write URLs you'd like to prohibit to access
www.yahoo.co.jp/deny/ www.example.com/ root@lan05:~# squidGuard -C all root@lan05:~# chown -R proxy. /var/lib/squidguard/db/deny root@lan05:~# vi /etc/squidclamav.conf # line 16: uncomment and change PATH squidguard /usr/bin/squidGuard root@lan05:~# service squid restart squid start/running, process 16131 |
[2] | Try to access to the URL set as prohibited domain in [1]. |
Sponsored Link |