Run with SquidGuard2010/11/11 |
Run Squid with SquidGuard that is a URL redirector. Configure squidClamav first.
|
|
[1] | Install and configure SquidGuard (this config is most simply example) |
[root@lan03 ~]# yum -y install squidGuard [root@lan03 ~]# mv /etc/squid/squidGuard.conf /etc/squid/squidGuard.conf.sample [root@lan03 ~]# vi /etc/squid/squidGuard.conf # create new
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://www03.srv.world/error.html } } [root@lan03 ~]# 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@lan03 ~]# squidGuard -C all [root@lan03 ~]# chown -R squid. /var/squidGuard/blacklists/dame [root@lan03 ~]# vi /etc/squidclamav.conf # line 16: uncomment and change PATH squidguard /usr/bin/squidGuard [root@lan03 ~]# /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 |
|