On Mon, Jan 30, 2006 at 08:26:23PM -0600, David P.C. Wollmann wrote:
> On Sun, 2006-01-29 at 19:25 +0000, Mark Sansome wrote:
> > Well I tried...
> > 
> > [EMAIL PROTECTED] mark]# /usr/sbin/squidclient mgr:redirector
> > client: ERROR: Cannot connect to localhost:3128: Connection refused
> > 
> > Strange... Note the following lines in /etc/squid/squid.conf
> > 
> > #Default:
> > # http_port 3128
> > http_port 8080
> > 
> > In other words squid should be (and is in all other respects) working on
> > port 8080.
> > 
> 
> Use the -p switch to tell squidclient which port to connect to:
> 
> squidclient -p 8080 mgr:redirector
> 

Thanks....

[EMAIL PROTECTED] mark]# /usr/sbin/squidclient -p 8080 mgr:redirector
HTTP/1.0 200 OK
Server: squid/2.5.STABLE11
Mime-Version: 1.0
Date: Tue, 31 Jan 2006 15:49:12 GMT
Content-Type: text/plain
Expires: Tue, 31 Jan 2006 15:49:12 GMT
Last-Modified: Tue, 31 Jan 2006 15:49:12 GMT
X-Cache: MISS from localhost.localdomain
Proxy-Connection: close

Redirector Statistics:
program: /usr/local/squidguard/bin/squidGuard
number running: 5 of 5
requests sent: 1198
replies received: 1198
queue length: 0
avg service time: 87.01 msec

      #      FD     PID  # Requests     Flags      Time  Offset Request
      1      10   10029        1034               0.001       0 (none)
      2      11   10030          24               0.002       0 (none)
      3      13   10031           4               0.001       0 (none)
      4      14   10032           0               0.000       0 (none)
      5      16   10033           0               0.000       0 (none)

Flags key:

   A = ALIVE
   B = BUSY
   C = CLOSING
   S = SHUTDOWN
[EMAIL PROTECTED] mark]#

Does that tell you anything?

> > redirect
> > http://localhost/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientuser=%i&clientgroup=%s&targetgroup=%t&url=%u
> > line (not split in the real file) in /etc/squidguard.conf the proxy will
> > try to access the squidGuard.cgi but will display the following message:
> > 
> > 
> >   ERROR
> > 
> > 
> >     The requested URL could not be retrieved
> > 
> > ------------------------------------------------------------------------
> > 
> > While trying to retrieve the URL:
> > http://192.168.123.101/cgi-bin/squidGuard.cgi
> > 
> > The following error was encountered:
> > 
> >     * * Connection Failed *
> > 
> > The system returned:
> > 
> > /    (111) Connection refused/
> > 
> > The remote host or network may be down. Please try the request again.
> > 
> > Your cache administrator is root <mailto:root>.
> > 
> > ------------------------------------------------------------------------
> > Generated Sun, 29 Jan 2006 19:24:00 GMT by localhost.localdomain
> > (squid/2.5.STABLE11)
> > 
> 
> Run the command:
> 
> host localhost
> 

[EMAIL PROTECTED] mark]# host localhost
localhost has address 127.0.0.1
Host localhost not found: 3(NXDOMAIN)
Host localhost not found: 3(NXDOMAIN)
[EMAIL PROTECTED] mark]# 

Is that normal?

> If the IP address returned is anything other than 127.0.0.1, read the
> hosts(5) man page and fix
> your /etc/hosts file.


[EMAIL PROTECTED] mark]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
[EMAIL PROTECTED] mark]# 


Do I need to change anything here? I looked at man hosts but I am not really 
sure what I am looking for...

Thanks for your help.

Mark


Attachment: pgp5xfDd84KAC.pgp
Description: PGP signature

Reply via email to