Hi Rick
This is a long one so I'm gonna snip out all the old stuff.
Btw, the location was purely personal to keep everything related to
squid under squid.
Ok, removed my entire squidGuard tree and compiled as follows:
(first attempt)
make clean
./configure
make
make install
(second attempt)
make clean
./configure --with-sg-config=/etc/squidGuard.conf
--with-sg-logdir=/var/log/squidGuard --with-sg-dbhome=/var/db/squidGuard
make
make install
(Btw I got the same results with both the above)
My config in squidGuard.conf at the moment is:
acl {
default {
pass all
}
}
(Just to try cut down on the variables, I've also had no results with my
customized rule set)
The response I get is a standard IE page saying "The page you are
looking for is currently unavailable."
at the top and "Cannot find server or DNS Error" at the bottom. The
squid access.log shows no attempt to access the relevant site
(google.com) so my guess is that squid isn't even trying to send it
anywhere yet.
the cache.log shows:
2002/11/19 21:20:12| Starting Squid Cache version 2.5.STABLE1 for
i686-pc-linux-gnu...
2002/11/19 21:20:12| Process ID 27283
2002/11/19 21:20:12| With 1024 file descriptors available
2002/11/19 21:20:12| Initializing IP Cache...
2002/11/19 21:20:12| ipcache_init: Skipping DNS name lookup tests.
2002/11/19 21:20:12| cachemgrRegister: registered ipcache
2002/11/19 21:20:12| Initializing FQDN Cache...
2002/11/19 21:20:12| cachemgrRegister: registered fqdncache
2002/11/19 21:20:12| etc_hosts: line is '127.0.0.1
localhost localhost.localdomain'
2002/11/19 21:20:12| etc_hosts: address is '127.0.0.1'
2002/11/19 21:20:12| etc_hosts: multiple spaces, skipping
2002/11/19 21:20:12| etc_hosts: got hostname 'localhost'
2002/11/19 21:20:12| etc_hosts: got hostname 'localhost.localdomain'
2002/11/19 21:20:12| etc_hosts: line is '10.0.0.1 moria'
2002/11/19 21:20:12| etc_hosts: address is '10.0.0.1'
2002/11/19 21:20:12| etc_hosts: multiple spaces, skipping
2002/11/19 21:20:12| etc_hosts: got hostname 'moria'
2002/11/19 21:20:12| etc_hosts: address is ''
2002/11/19 21:20:12| etc_hosts: line is ''
2002/11/19 21:20:12| etc_hosts: address is ''
2002/11/19 21:20:12| fqdncacheRelease: Released FQDN record for ''.
2002/11/19 21:20:12| comm_open: FD 5 is a new socket
2002/11/19 21:20:12| fd_open FD 5 DNS Socket
2002/11/19 21:20:12| comm_local_port: FD 5: port 33010
2002/11/19 21:20:12| DNS Socket created at 0.0.0.0, port 33010, FD 5
2002/11/19 21:20:12| Adding nameserver 196.30.249.1 from squid.conf
2002/11/19 21:20:12| idnsAddNameserver: Added nameserver #0:
196.30.249.1
2002/11/19 21:20:12| Adding nameserver 196.30.249.2 from squid.conf
2002/11/19 21:20:12| idnsAddNameserver: Added nameserver #1:
196.30.249.2
2002/11/19 21:20:12| cachemgrRegister: registered idns
2002/11/19 21:20:12| helperOpenServers: Starting 4 'squidGuard'
processes
2002/11/19 21:20:12| comm_open: FD 6 is a new socket
2002/11/19 21:20:12| fd_open FD 6 squidGuard
2002/11/19 21:20:12| comm_open: FD 7 is a new socket
2002/11/19 21:20:12| fd_open FD 7 squidGuard
2002/11/19 21:20:12| ipcCreate: prfd FD 7
2002/11/19 21:20:12| ipcCreate: pwfd FD 7
2002/11/19 21:20:12| ipcCreate: crfd FD 6
2002/11/19 21:20:12| ipcCreate: cwfd FD 6
2002/11/19 21:20:12| ipcCreate: FD 7 sockaddr 127.0.0.1:44113
2002/11/19 21:20:12| ipcCreate: FD 6 sockaddr 127.0.0.1:44112
2002/11/19 21:20:12| ipcCreate: FD 6 listening...
2002/11/19 21:20:12| comm_close: FD 6
2002/11/19 21:20:12| commCallCloseHandlers: FD 6
2002/11/19 21:20:12| fd_close FD 6 squidGuard
2002/11/19 21:20:12| leave_suid: PID 27284 called
2002/11/19 21:20:12| leave_suid: PID 27284 giving up root priveleges
forever
2002/11/19 21:20:12| ipcCreate: calling accept on FD 6
2002/11/19 21:20:12| connect FD 7: (110) Connection timed out
2002/11/19 21:20:12| comm_close: FD 7
2002/11/19 21:20:12| commCallCloseHandlers: FD 7
2002/11/19 21:20:12| fd_close FD 7 squidGuard
2002/11/19 21:20:12| WARNING: Cannot run '/usr/local/bin/squidGuard'
process.
2002/11/19 21:23:21| comm_open: FD 6 is a new socket
2002/11/19 21:23:21| fd_open FD 6 squidGuard
2002/11/19 21:23:21| comm_open: FD 7 is a new socket
2002/11/19 21:23:21| fd_open FD 7 squidGuard
2002/11/19 21:23:21| ipcCreate: prfd FD 7
2002/11/19 21:23:21| ipcCreate: pwfd FD 7
2002/11/19 21:23:21| ipcCreate: crfd FD 6
2002/11/19 21:23:21| ipcCreate: cwfd FD 6
2002/11/19 21:23:21| ipcCreate: FD 7 sockaddr 127.0.0.1:44115
2002/11/19 21:23:21| ipcCreate: FD 6 sockaddr 127.0.0.1:44114
2002/11/19 21:23:21| ipcCreate: FD 6 listening...
2002/11/19 21:23:21| comm_close: FD 6
2002/11/19 21:23:21| commCallCloseHandlers: FD 6
2002/11/19 21:23:21| fd_close FD 6 squidGuard
2002/11/19 21:23:21| leave_suid: PID 27292 called
2002/11/19 21:23:21| leave_suid: PID 27292 giving up root priveleges
forever
2002/11/19 21:23:21| ipcCreate: calling accept on FD 6
2002/11/19 21:23:21| connect FD 7: (110) Connection timed out
2002/11/19 21:23:21| comm_close: FD 7
2002/11/19 21:23:21| commCallCloseHandlers: FD 7
2002/11/19 21:23:21| fd_close FD 7 squidGuard
2002/11/19 21:23:21| WARNING: Cannot run '/usr/local/bin/squidGuard'
process.
2002/11/19 21:26:30| comm_open: FD 6 is a new socket
2002/11/19 21:26:30| fd_open FD 6 squidGuard
2002/11/19 21:26:30| comm_open: FD 7 is a new socket
2002/11/19 21:26:30| fd_open FD 7 squidGuard
2002/11/19 21:26:30| ipcCreate: prfd FD 7
2002/11/19 21:26:30| ipcCreate: pwfd FD 7
2002/11/19 21:26:30| ipcCreate: crfd FD 6
2002/11/19 21:26:30| ipcCreate: cwfd FD 6
2002/11/19 21:26:30| ipcCreate: FD 7 sockaddr 127.0.0.1:44118
2002/11/19 21:26:30| ipcCreate: FD 6 sockaddr 127.0.0.1:44117
2002/11/19 21:26:30| ipcCreate: FD 6 listening...
2002/11/19 21:26:30| comm_close: FD 6
2002/11/19 21:26:30| commCallCloseHandlers: FD 6
2002/11/19 21:26:30| fd_close FD 6 squidGuard
2002/11/19 21:26:30| leave_suid: PID 27301 called
2002/11/19 21:26:30| leave_suid: PID 27301 giving up root priveleges
forever
2002/11/19 21:26:30| ipcCreate: calling accept on FD 6
A "ps -ax |grep squid" shows:
799 ? S 0:00 tail -f /usr/local/squid/logs/access.log
27275 pts/1 S 0:00 tail -f squidGuard.log
27281 ? S 0:00 /usr/local/squid/bin/squid -D
27283 ? S 0:00 (squid) -D
27284 ? S 0:00 (squid) -D
27292 ? S 0:00 (squid) -D
squidGuard.log shows nothing except for the results from my "make test"
The one difference that I have noticed though is that cache.log will
show, with no redirect_program, the following:
2002/11/19 21:31:15| fd_open FD 12 HTTP Socket
2002/11/19 21:31:15| Accepting HTTP connections at 0.0.0.0, port 3128,
FD 12.
2002/11/19 21:31:15| fd_open FD 13 HTTP Socket
2002/11/19 21:31:15| Accepting HTTP connections at 0.0.0.0, port 8080,
FD 13.
As soon as I add the redirect_program though, the above lines do not
appear at all.
My Linux distribution is:
Linux version 2.4.18 (gcc version 2.96 20000731 (Red Hat Linux 7.1
2.96-85))
Squid is compiled from a tarball with the following options:
./configure --enable-delay-pools --enable-useragent-log
--enable-referer-log --enable-ipf-transparent --enable-linux-netfilter
Hope it makes sense :)
Mark