Hi,
I am a bit new in using Linux. I am not able to configure squidguard to open access to some of the sites i blocked through squidguard.
for me every thing is working, i am able to block the sites, but i am not able to do the following
1> when would like to open the sites which i had blocked through squidguard for 1 hr every day, rest of the time it should be blocked.
2> am not able to view any details in blocked log directory.
Would be glad if some one help me out with this config.
my squid config isd as below
# Squid Guard Config File
#-----------------------------------
logdir /var/log/squidGuard
dbhome /var/lib/squidGuard/db
# Time periods
time businesshours
{
weekly * 00:00-23:59
}
time breakhours
{
weekly mtwhfas 14:00 - 17:00
}
# User Groups
src employees
{
userlist /var/lib/squidGuard/db/employees.txt
}
destination whitelist {
domainlist whitelist/domains
}
dest blacklist {
domainlist blacklist/domains
urllist blacklist/urls
log /var/log/squidGuard/blocked.log
}
dest porn {
domainlist porn/domains
urllist porn/urls
# expressionlist blacklist/porn/expressions
}
dest dating {
domainlist dating/domains
urllist dating/urls
expressionlist blacklist/expressions
log /var/log/squidGuard/blocked.log
}
dest music {
domainlist music/domains
urllist music/urls
log /var/log/squidGuard/blocked.log
}
dest movies {
domainlist movies/domains
urllist movies/urls
}
dest news {
domainlist news/domains
urllist news/urls
log newsaccesses
}
# Access Control
acl
{
# During Business hours
# Stop the embarassing stuff and speed up the connection
employees within businesshours
{
pass !blacklist !porn !dating !music !news !in-addr all
}
else
{
pass all
}
# During family hours
# Stop the embarassing stuff and speed up the connection
employees within breakhours
{
pass whitelist !blacklist !porn all
}
else
{
pass !blacklist !porn !dating !music !news !in-addr all
}
default
{
pass none
redirect
http://www.test.com
}
}
Kindly advise me on the same.
Thanks and Regards,
Praveen