Run with squidGuard2010/06/03 |
Run Squid with squidGuard that is a URL redirector.
Configure squidClamav first.
|
|
[1] | Install and configure squidguard (this config is most simply example) |
[root@lan ~]# yum -y install squidGuard [root@lan ~]# mv /etc/squid/squidGuard.conf /etc/squid/squidGuard.conf.sample [root@lan ~]# vi /etc/squid/squidGuard.conf # create new
# # CONFIG FILE FOR SQUIDGUARD # dbhome /var/squidGuard/blacklists logdir /var/log/squid # define a category 'dame' dest dame { # prohibited domain list domainlist dame/domains # prohibited url list urllist dame/urls } acl { default { # allow to access except 'dame' pass !dame all # redirect URL redirect http://www.srv.world/error.html } } [root@lan ~]# cd /var/squidGuard [root@lan squidGuard]# tar zxvf blacklists.tar.gz [root@lan squidGuard]# mkdir ./blacklists/dame [root@lan squidGuard]# vi ./blacklists/dame/domains # write domains you'd like to prohibit to access
yahoo.co.jp example.com [root@lan squidGuard]# vi ./blacklists/dame/urls # write URLs you'd like to prohibit to access
www.yahoo.co.jp/deny/ www.example.com/ [root@lan squidGuard]# [root@lan ~]# squidGuard -C all [root@lan ~]# chown -R squid. /var/squidGuard/blacklists/dame [root@lan ~]# vi /etc/squidclamav.conf # line 59: uncomment and change squidguard /usr/bin/squidGuard [root@lan ~]# /etc/rc.d/init.d/squid restart Stopping squid: ............. [ OK ] Starting squid: . [ OK ]
|
[2] | Try to access to Yahoo set as prohibited domain in [1]. Prohibited domain is blicked normally. |
Sponsored Link |