LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-20-2010, 03:43 PM   #1
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Rep: Reputation: 25
Unhappy Squid and cache_peer login=PASS


Hi,

here is my issue :
I am using Squid Cache: Version 2.7.STABLE7 and it is working nicely with one issue that I haven't been able to solve.
I have a remote website that requires authentication. From what I understood, the authentication window needs to be pass through squid: Maybe more like squid requests the remote site the authentication window. After some readings, I modified cache_peer as such to begin with.

cache_peer hostname sibling 80 0 login=PASS

That resulted every single time in a 401 error

I tried to add

cache_peer_access hostname allow all --> but to no avail

After more hours of reading I added this

never_direct deny all --> Again, to no avail.

Actually when I decided to reboot my box, I could not connect at all to the any sites as I was getting every time the 401 error. Now its all back to normal but my external HTTP website which is still giving me the 401 error. I do not know the type of authentication my external website is using. May be that is why I can't solve my issue. The type of authentication on that website might just not be compatible with Squid; but I am not authenticating with squid but passing through it...

When I actually try to connect to my external website, my browser (firefox) detect the user name without any input from me. it just does not give me the opportunity to input my password. That's why I end up with a 401 error

Would appreciate any help on that one

Kind Regards,

Last edited by riganta; 05-20-2010 at 05:21 PM. Reason: clarity
 
Old 05-20-2010, 05:21 PM   #2
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
I have moved forward a little bit.
As I thought, the issue is not the authentication really but the http header. Basically, basic authentication uses the www-Authenticate HTTP header, and guess what - I have mine set to deny all.
I did a test and actually turn off this directive in my configuration file and I can log in into my remote website. So I have found my problem but I still have no solution to it. Indeed, I am now faced with the challenge of setting a custom header file for my remote website. I did try this:

acl cdnCustomHeader req_header ^hostname

I got this in response:

No pattern defined 'hostname'
empty ACL

I am stuck again but having a lot of fun....

I would appreciate any input...

Kind Regards,
 
  


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 cache_peer priority gabsik Linux - Server 0 07-04-2008 04:36 AM
Squid cache_peer and ssl connections BerzinTehvs Linux - Software 2 04-09-2008 02:50 PM
squid cache_peer don't work jiawj Red Hat 0 11-18-2005 01:59 AM
SQUID cache_peer query wennie Linux - Software 0 02-06-2005 12:26 AM
Squid Cache_peer config crock2022 Linux - Networking 0 03-24-2004 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:21 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