Run with squidGuard2009/06/20 |
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 blacklists/dame/domains # prohibited url list urllist blacklists/dame/urls } acl { default { # allow to access except 'dame' pass !dame all # redirect URL redirect http://www.srv.world/error.html }
}[root@lan ~]# mkdir /var/squidGuard/blacklists/blacklists/dame [root@lan ~]# vi /var/squidGuard/blacklists/blacklists/dame/domains # write domains you'd like to prohibit to access
yahoo.co.jp example.com [root@lan ~]# vi /var/squidGuard/blacklists/blacklists/dame/urls # write URLs you'd like to prohibit to access
www.yahoo.co.jp/deny/ www.example.com/ [root@lan ~]# squidGuard -C all [root@lan ~]# vi /etc/squidclamav.conf # line 52: 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 |
|