LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:49 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration