Re: [squid-users] external_acl_type not working

From: <TiloLutz@dont-contact.us>
Date: Wed, 12 Mar 2003 11:06:21 +0100 (MET)

Hi

> > > > Is it possible external_acl_type isn't working in Squid 2.5?
> > > it is defenitely working.
> > Does squid cache the acls in any way?
> Yes, as specified by the ttl option to external_acl_type.

Know I have another strange problem.
My skript seems to work. It reads a subnet-declaration
from a file and permit every client access which is in any
defined subnet.
But very often access is not permitted although the client
should have access. Access is denied or granted randomly.
I don't know where to search the probelm. Is it my perl-skrip
or a configuration-problem in squid?

#! /usr/bin/perl
$|=1;
$workdir = "/usr/local/nms";
$SIG{ALRM} = \&catch_zap ;
@list;
sub catch_zap;
catch_zap;
alarm 10;
while ( 1 == 1 )
    {
    $input = <STDIN> ;
    @temp = split( /\./, $input);
    $input = $temp[0].'.'.$temp[1].'.'.$temp[2].'.0' ;
    $found = 0;
    foreach $ip ( @list )
        {
        if ( "$ip" == "$input" )
            {
            $found = 1;
            }
        }
    if ( $found == 1 )
        {
        print "OK\n";
        }
    else
        {
        print "ERR\n";
        }
    $found = 0;
    }

sub catch_zap
    {
    alarm 10;
    #foreach $ip ( @list )
    open (FILE, "< $workdir/roomaccess");
    @list = <FILE>;
    close FILE;
    }

Here are my lines from squid.conf:
external_acl_type room_external ttl=5 concurrency=10 %SRC
/usr/local/nms/nmsdeamon2
acl room external room_external
http_access allow room

Can anybody help me?

Tilo

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
Received on Wed Mar 12 2003 - 03:06:26 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:01 MST