please help anyone!!
i want to authenticate my clients
i am storing all authenticated IP's in a file - one per line
authentication is done by using a cgi script
"this is actually a part of my project wherein authentication will be using a database"
now i am using external_acl type
squid.conf file looks like this:
Code:
external_acl_type VERIFIED children=1 %SRC /home/project/ip_validate
acl haxpak external VERIFIED
http_access allow haxpak
and the validation script is :
Code:
#! /usr/bin/perl
$ip_addr = <STDIN>;
#chop ($ip_addr);
open (INFIL , "/home/project/ip_valid");
$in_ip = <INFIL>;
$valid = 0;
while ($in_ip ne "")
{
if ($in_ip eq $ip_addr)
{
$valid = 1;
break;
}
$in_ip = <INFIL>;
}
if ($valid == 1)
{
print ("OK");
}
else
{
print ("ERR");
}
i am not able to undestand as to why am i not able to access internat from my clients
otherwise if i remove all this and use default config i am having no problem
Please help me!!!!
i am stuck for last 4 days
Thanks in advance