LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-14-2009, 07:16 AM   #1
haxpak
Member
 
Registered: Jan 2009
Location: India
Distribution: fc9 x86_64
Posts: 35

Rep: Reputation: 15
Unhappy squid! external_acl_type problem


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
 
Old 01-14-2009, 08:07 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,462

Rep: Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538
Quote:
Originally Posted by haxpak View Post
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:

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
Try this page:
http://www.devet.org/squid/proxy_auth/

You don't say anything about what version or distro of Linux you're using, what version of Squid, or anything about your environment.
 
Old 01-14-2009, 08:53 AM   #3
haxpak
Member
 
Registered: Jan 2009
Location: India
Distribution: fc9 x86_64
Posts: 35

Original Poster
Rep: Reputation: 15
i am using squid stable-3 and op sys is fc-9 x86_64
 
Old 01-14-2009, 09:00 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,462

Rep: Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538
Quote:
Originally Posted by haxpak View Post
i am using squid stable-3 and op sys is fc-9 x86_64
Ok...did you check the page that was referenced, and look at the examples provided there?????
 
Old 01-14-2009, 09:13 AM   #5
haxpak
Member
 
Registered: Jan 2009
Location: India
Distribution: fc9 x86_64
Posts: 35

Original Poster
Rep: Reputation: 15
yes but they provide help only with authentication helpers such as ncsa_auth

there is no refrence to external_acl_type

and now i just checked that as required by squid my perl script is returning OK to stdout

in the http_access tag

i have given

acl haxpak external VERIFIED
http_access allow haxpak

do i need to specify that the source ip of VERIFIED should be allowed
if yes how do i do it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Problem (squid restrict some trusted sites.). jpmaxyusuf Linux - Networking 3 01-01-2009 11:33 AM
Squid problem rahilmaknojia Linux - Server 39 08-18-2008 05:53 AM
squid problem ghabsh Linux - Server 8 04-25-2007 10:52 AM
Squid problem hinetvenkat Linux - Networking 3 06-01-2006 03:49 AM
problem in squid alvi2 Linux - Networking 2 03-03-2005 06:39 AM


All times are GMT -5. The time now is 05:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration