I am running Mandrake 9.0 with MNF and squid, I tried to start
squidguard and the log states it cannot open squidguard.conf
I have my permissions set to 644 for the conf
here is my log. I am new to squid and guard, so any help to make this work would be
greatly appreciated.
2003/02/26 21:14:18| Preparing for shutdown after 1179 requests
2003/02/26 21:14:18| Waiting 30 seconds for active connections to finish
2003/02/26 21:14:18| FD 15 Closing HTTP connection
2003-02-26 21:14:18 [3325] ending emergency mode, stdin empty
2003-02-26 21:14:18 [3324] ending emergency mode, stdin empty
2003-02-26 21:14:18 [3323] ending emergency mode, stdin empty
2003-02-26 21:14:18 [3322] ending emergency mode, stdin empty
2003-02-26 21:14:18 [3321] ending emergency mode, stdin empty
2003/02/26 21:14:49| Shutting down...
2003/02/26 21:14:49| FD 17 Closing HTCP socket
2003/02/26 21:14:49| FD 18 Closing SNMP socket
2003/02/26 21:14:49| Closing unlinkd pipe on FD 14
2003/02/26 21:14:49| storeDirWriteCleanLogs: Starting...
2003/02/26 21:14:49| Finished. Wrote 1509 entries.
2003/02/26 21:14:49| Took 0.0 seconds (158992.7 entries/sec).
CPU Usage: 4.080 seconds = 2.430 user + 1.650 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 425
Memory usage for squid via mallinfo():
total space in arena: 2972 KB
Ordinary blocks: 2739 KB 198 blks
Small blocks: 0 KB 0 blks
Holding blocks: 176 KB 1 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 232 KB
Total in use: 2915 KB 98%
Total free: 232 KB 8%
2003/02/26 21:14:49| Open FD 16 squid -> diskd
2003/02/26 21:14:49| Squid Cache (Version 2.4.STABLE7): Exiting normally.
2003/02/26 21:14:50| Starting Squid Cache version 2.4.STABLE7 for
i586-mandrake-linux-gnu...
2003/02/26 21:14:50| Process ID 14569
2003/02/26 21:14:50| With 1024 file descriptors available
2003/02/26 21:14:50| DNS Socket created on FD 4
2003/02/26 21:14:50| Adding nameserver 64.81.159.2 from /etc/resolv.conf
2003/02/26 21:14:50| helperOpenServers: Starting 5 'squidGuard' processes
2003-02-26 21:14:50 [14571] (squidGuard): can't write to logfile
/var/log/squidGuard/log/squidGuard.log
2003-02-26 21:14:50 [14571] (squidGuard): can't open configfile
/etc/squid/squidGuard.conf
2003-02-26 21:14:50 [14571] going into emergency mode
2003-02-26 21:14:50 [14573] (squidGuard): can't write to logfile
/var/log/squidGuard/log/squidGuard.log
2003-02-26 21:14:50 [14573] (squidGuard): can't open configfile
/etc/squid/squidGuard.conf
2003-02-26 21:14:50 [14573] going into emergency mode
2003-02-26 21:14:50 [14574] (squidGuard): can't write to logfile
/var/log/squidGuard/log/squidGuard.log
2003-02-26 21:14:50 [14574] (squidGuard): can't open configfile
/etc/squid/squidGuard.conf
2003-02-26 21:14:50 [14574] going into emergency mode
2003-02-26 21:14:50 [14572] (squidGuard): can't write to logfile
/var/log/squidGuard/log/squidGuard.log
2003-02-26 21:14:50 [14572] (squidGuard): can't open configfile
/etc/squid/squidGuard.conf
2003-02-26 21:14:50 [14572] going into emergency mode
2003/02/26 21:14:50| User-Agent logging is disabled.
2003-02-26 21:14:50 [14575] (squidGuard): can't write to logfile
/var/log/squidGuard/log/squidGuard.log
2003-02-26 21:14:50 [14575] (squidGuard): can't open configfile
/etc/squid/squidGuard.conf
2003-02-26 21:14:50 [14575] going into emergency mode
2003/02/26 21:14:50| Unlinkd pipe opened on FD 14
2003/02/26 21:14:50| Swap maxSize 204800 KB, estimated 15753 objects
2003/02/26 21:14:50| Target number of buckets: 787
2003/02/26 21:14:50| Using 8192 Store buckets
2003/02/26 21:14:50| Max Mem size: 16384 KB
2003/02/26 21:14:50| Max Swap size: 204800 KB
2003/02/26 21:14:50| Store logging disabled
2003/02/26 21:14:50| Rebuilding storage in /var/spool/squid (CLEAN)
2003/02/26 21:14:50| Using Least Load store dir selection
2003/02/26 21:14:50| Set Current Directory to /var/spool/squid
2003/02/26 21:14:50| Loaded Icons.
2003/02/26 21:14:50| Accepting HTTP connections at 0.0.0.0, port 3128, FD 15.
2003/02/26 21:14:50| Accepting HTCP messages on port 4827, FD 17.
2003/02/26 21:14:50| Accepting SNMP messages on port 3401, FD 18.
2003/02/26 21:14:50| WCCP Disabled.
2003/02/26 21:14:50| Ready to serve requests.
2003/02/26 21:14:50| Done reading /var/spool/squid swaplog (1509 entries)
2003/02/26 21:14:50| Finished rebuilding storage from disk.
2003/02/26 21:14:50| 1509 Entries scanned
2003/02/26 21:14:50| 0 Invalid entries.
2003/02/26 21:14:50| 0 With invalid flags.
2003/02/26 21:14:50| 1509 Objects loaded.
2003/02/26 21:14:50| 0 Objects expired.
2003/02/26 21:14:50| 0 Objects cancelled.
2003/02/26 21:14:50| 0 Duplicate URLs purged.
2003/02/26 21:14:50| 0 Swapfile clashes avoided.
2003/02/26 21:14:50| Took 0.4 seconds (3587.9 objects/sec).
2003/02/26 21:14:50| Beginning Validation Procedure
2003/02/26 21:14:50| Completed Validation Procedure
2003/02/26 21:14:50| Validated 1509 Entries
2003/02/26 21:14:50| store_swap_size = 18336k
2003/02/26 21:14:51| storeLateRelease: released 0 objects
________________________________________________________________________
here is my squidguard.conf which is unchanged from the sample.
#----------------------------------------------------------------
# SquidGuard CONFIGURATION FILE
#----------------------------------------------------------------
# CONFIGURATION DIRECTORIES
dbhome /usr/share/squidGuard-1.2.0/db
logdir /var/log/squidGuard/squidGuard.log
# TIME RULES:
# abbrev for weekdays:
# s = sun, m = mon, t =tue, w = wed, h = thu, f = fri, a = sat
#
#time workhours {
# weekly s 09:30-12:00 13:00-19:00
# weekly m 09:00-12:00 13:00-19:00
# weekly t 09:00-11:00 12:00-19:00
# weekly w 09:00-12:00 12:00-18:00
# weekly h 09:00-13:00 13:00-18:00
# weekly f 09:00-12:00 13:30-18:00
# weekly a 08:20-13:00 13:30-19:00
#}
# SOURCE ADDRESSES:
src privilegedsource {
iplist privilegedsource/ips
}
src bannedsource {
iplist bannedsource/ips
}
src lansource {
iplist lansource/lan
}
# DESTINATION CLASSES:
dest porn {
domainlist porn/domains
urllist porn/urls
expressionlist porn/expressions
}
dest adult {
domainlist adult/domains
urllist adult/urls
expressionlist adult/expressions
}
dest audio-video {
domainlist audio-video/domains
urllist audio-video/urls
}
dest forums {
domainlist forums/domains
urllist forums/urls
expressionlist forums/expressions
}
dest hacking {
domainlist hacking/domains
urllist hacking/urls
}
dest redirector {
domainlist redirector/domains
urllist redirector/urls
expressionlist redirector/expressions
}
dest warez {
domainlist warez/domains
urllist warez/urls
}
dest ads {
domainlist ads/domains
urllist ads/urls
}
dest aggressive {
domainlist aggressive/domains
urllist aggressive/urls
}
dest drugs {
domainlist drugs/domains
urllist drugs/urls
}
dest gambling {
domainlist gambling/domains
urllist gambling/urls
}
dest publicite {
domainlist publicite/domains
urllist publicite/urls
expressionlist publicite/expressions
}
dest violence {
domainlist violence/domains
urllist violence/urls
expressionlist violence/expressions
}
dest banneddestination {
domainlist banneddestination/domains
urllist banneddestination/urls
expressionlist banneddestination/expressions
}
dest advertising {
domainlist advertising/domains
urllist advertising/urls
redirect http://127.0.0.1/cgi-bin/nulbanner.png
log /var/log/squidGuard/advertising.log
}
# ACLs
acl {
privilegedsource {
pass !advertising all
redirect
http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&srcclass=%s&targetclass=%t&url=%u
}
bannedsource {
pass none
redirect
http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&srcclass=%s&targetclass=%t&url=%u
}
lansource {
pass !adult !audio-video !forums !hacking !redirector !warez !ads
!aggressive !drugs !gambling !publicite !violence !banneddestination !advertising all
redirect
http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&srcclass=%s&targetclass=%t&url=%u
}
default {
pass none
redirect
http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&srcclass=%s&targetclass=%t&url=%u
}
}
--
Amy Anderson <[EMAIL PROTECTED]>