How to Install squidGuard on SME Server 7x

i will fix the tuts from http://wiki.contribs.org/SquidGuard, ok, lets start

/sbin/e-smith/db yum_repositories set dag repository \
Name ‘Dag – EL4’ \
BaseURL ‘http://apt.sw.be/redhat/el4/en/$basearch/dag’ \
EnableGroups no \
GPGCheck yes \
GPGKey http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled

Copy and paste those command in to your command shell, after that
paste this command signal-event yum-modify, then fololow those command bellow

wget http://smeserver.crazynetwork.it/contribs/jbennett/sme7/squidguard/RPMS/smeserver-squidguard-1.0-35.noarch.rpm

wget http://smeserver.crazynetwork.it/contribs/jbennett/sme7/squidguard/RPMS/squidguard-blacklists-20050528-2.smeserver.rf.noarch.rpm

yum localinstall smeserver-squidguard*.rpm –enablerepo=dag

rpm -Uvh squidguard-blacklists-20050528-2.smeserver.rf.noarch.rpm

signal-event post-upgrade; signal-event reboot

then your server will reboot, wait for a moment, now time to configure ur squid guard, run those command

config show squidguard
and you will see like this

squidguard=service
Blacklist=http://www.shallalist.de/Downloads/shallalist.tar.gz
Squidguard_Allow=trusted
Squidguard_Block=aggressive,drugs,gamble,hacking,porn,sex,untrusted,violence,warez
Squidguard_FullAccess=all
Squidguard_NoAccess=none
status=enabled

after that restart ur squid with this command service squid restart

now to prove ur squid guard was running try this command

tail -f /var/log/squidguard/squidguard.log –> shuold be like this

2011-10-27 21:59:28 [3638] squidGuard 1.2.0 started (1319727568.570)
2011-10-27 21:59:28 [3638] squidGuard ready for requests (1319727568.573)
2011-10-27 21:59:28 [3639] init urllist /var/lib/squidguard/db/warez/urls
2011-10-27 21:59:28 [3639] loading dbfile /var/lib/squidguard/db/warez/urls.db
2011-10-27 21:59:28 [3639] init domainlist /var/lib/squidguard/db/sex/lingerie/domains
2011-10-27 21:59:28 [3639] loading dbfile /var/lib/squidguard/db/sex/lingerie/domains.db
2011-10-27 21:59:28 [3639] init urllist /var/lib/squidguard/db/sex/lingerie/urls
2011-10-27 21:59:28 [3639] loading dbfile /var/lib/squidguard/db/sex/lingerie/urls.db
2011-10-27 21:59:28 [3639] squidGuard 1.2.0 started (1319727568.570)
2011-10-27 21:59:28 [3639] squidGuard ready for requests (1319727568.573)

then control + c,
if u wanna to block some web, run this command
vim /home/e-smith/files/squidguard/untrusted/domains –> add the websites wanna blocked then restart your squid

for database u can see in /var/lib/squidguard/db/

have nice try

or u can download this tuts squidGuard

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s