Search squid archive

Re: access-lists from mysql ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
Checking the db and echoing OK or ERR based on that is easy for me to
implement in php, for now I did add the following :

external_acl_type MyAclHelper %SRC  /etc/squid/myaclhelper.php

myaclhelper.php only contains
<?php
echo "OK";
?>

Later on I want to replace that with a mysqldb check and read stdin to
obtain %SRC, but for now I just want this to work, when squid starts I
get the following in the log :

The MyAclHelper helpers are crashing too rapidly, need help!

Any help with this simple setup please ?

Regards


On Thu, Jan 24, 2013 at 12:53 AM, Eliezer Croitoru <eliezer@xxxxxxxxxxxx> wrote:
> On 1/24/2013 12:13 AM, Ali Jawad wrote:
>>
>> Hi
>> Is it possible to load access-lists from a database ? I.e. I want to
>> read all the allowed src IPs from a database, all the examples I could
>> fine are around user authentication and not IP access-lists. If it is
>> possible can you please show me a few pointers ? Any example config /
>> howto ?
>> Thanks
>>
>
> For this kind of setup you'd better use an external_acl helper with DB which
> is pretty simple to implement.
>
> Regards,
> Eliezer


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux