SquidGuard going into emergency mode

This is a discussion on SquidGuard going into emergency mode within the Squid Users forums, part of the Web Server and Related Forums category; Hello, I have configure squid and squidguard on my CentOS4.4 server. My problem is squidguard is not working. I ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-09-2007
jaychoksi2003@gmail.com
 
Posts: n/a
Default SquidGuard going into emergency mode

Hello,

I have configure squid and squidguard on my CentOS4.4 server. My
problem is squidguard is not working.
I get the following output when i fire "squidGuard -d"
################################################## ###############################
[root@chintan ~]# squidGuard -d
2007-02-09 14:05:34 [12146] squidGuard: can't open configfile /tmp/
squidGuard-1.2.0-buildroot/usr/squidGuard/squidGuard.conf
2007-02-09 14:05:34 [12146] going into emergency mode

[root@chintan ~]#

################################################## ###############################
I already set the permission 644 and squid.squid to .conf file, log
dirs, and blacklist folder.

Please some one help me.

Here I paste my squid.conf and squidguard.conf.

[root@chintan ~]# cat /etc/squid/squid.conf|more
#Default:
http_port 3128

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?


cache_dir ufs /var/spool/squid 2000 16 256

cache_access_log /var/log/squid/access.log

cache_log /var/log/squid/cache.log

cache_store_log /var/log/squid/store.log

ftp_user Squid@

auth_param basic realm JuriscapeIndia Authentication
auth_param basic credentialsttl 2 hour
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/
squidpasswd

[root@chintan ~]#
[root@chintan ~]# cat /etc/squid/squid.conf
#Default:
http_port 3128

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?


cache_dir ufs /var/spool/squid 2000 16 256

cache_access_log /var/log/squid/access.log

cache_log /var/log/squid/cache.log

cache_store_log /var/log/squid/store.log

ftp_user Squid@

auth_param basic realm JuriscapeIndia Authentication
auth_param basic credentialsttl 2 hour
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/
squidpasswd

refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl ncsa_users proxy_auth REQUIRED
acl badURL url_regex -i games gamesonline adult movieonline
onlinemovie musiconline videoonline onlinevideo onlinemusic cricket
sex porn sports


#acl porn url_regex "/etc/squid/porn.acl"
#http_access deny porn

# TAG: http_access
http_access deny badURL
http_access allow ncsa_users
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
#http_access allow Safe_portS
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
acl our_networks src 172.20.0.0/16

#acl porn url_regex "/etc/squid/Porn.acl"
#http_access deny porn

no_cache deny QUERY
http_access allow our_networks
#http_access allow password
# And finally deny all other access to this proxy
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
cache_mgr jayc@hitechexport.com
visible_hostname juriscapeindia.com
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
delay_pools 0
coredump_dir /var/spool/squid
cache_effective_user squid
cache_effective_group squid
redirect_program /usr/bin/squidGuard -c /etc/squid/squidguard.conf



Here is squidguard.conf:
[root@chintan ~]# cat /etc/squid/squidguard.conf
#
# CONFIG FILE FOR SQUIDGUARD
#
# See http://www.squidguard.org/config/ for more examples
#

dbhome /var/lib/squidguard
logdir /var/log/squidguard/squidguard

src valid{
userlist porn/users
}

dest legal{
domainlist porn/legal
}

dest porn{
domainlist porn/domains
urllist porn/urls
}

dest ads{
domainlist ads/domains
urllist ads/urls
}

dest audio-video{
domainlist audio-video/domains
urllist audio-video/urls
}

dest drugs{
domainlist drugs/domains
urllist drugs/urls
}

dest warez{
domainlist warez/domains
urllist warez/urls
}

dest violence{
domainlist violence/domains
urllist violence/urls
}

dest hacking{
domainlist hacking/domains
urllist hacking/urls
}

dest aggressive{
domainlist aggressive/domains
urllist aggressive/urls
}

dest proxy{
domainlist proxy/domains
urllist proxy/urls
}

dest gambling{
domainlist gambling/domains
urllist gambling/urls
}

acl {
valid {
pass legal !porn !ads !aggressive !audio-video !drugs !gambling !
hacking !proxy !violence !warez all
}

default {
# the default categories are conservative, please add any
additional
# categories listed above or simply comment out this line and
uncomment
pass !porn !ads !aggressive !audio-video !drugs !gambling !
hacking !proxy !violence !warez all
# out the line below it.
# pass !porn !legal !ads all
# pass local-ok !local-block !aggressive !drugs !gambling !
hacking !porn !proxy !violence !warez all

redirect http://172.20.1.5
# redirect 302:http://localhost.localdomain/cgi-bin/
squidGuard-simple.cgi?clientaddr=%a&clientname=%n&clientident =
%i&srcclass=%s&targetclass=%t&url=%u
}

}

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:37 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0