Re: [squid-users] Confusing redirection behaviour

2008-03-30 Thread Amos Jeffries
Dave Coventry wrote: Hi Amos, On Fri, Mar 28, 2008 at 4:26 PM, Amos Jeffries wrote: Because the ACL to which you have attached the deny_info is only doing an allow. You need to use it to actually deny before the deny_info will work. Try: http_access deny !lan Okay, I'll give it ago.

Re: [squid-users] Confusing redirection behaviour

2008-03-28 Thread Dave Coventry
Hi Henrik, On Fri, Mar 28, 2008 at 2:29 AM, Henrik Nordstrom wrote: http://www.squid-cache.org/Versions/v2/2.6/cfgman/deny_info.html Thank you. I'm not sure I understand it, though. Do you need to set %s? How do you use it? I've tried: deny_info

Re: [squid-users] Confusing redirection behaviour

2008-03-28 Thread Amos Jeffries
Dave Coventry wrote: Hi Henrik, On Fri, Mar 28, 2008 at 2:29 AM, Henrik Nordstrom wrote: http://www.squid-cache.org/Versions/v2/2.6/cfgman/deny_info.html Thank you. I'm not sure I understand it, though. Do you need to set %s? How do you use it? I've tried: deny_info

Re: [squid-users] Confusing redirection behaviour

2008-03-28 Thread Dave Coventry
Hi Amos, On Fri, Mar 28, 2008 at 4:26 PM, Amos Jeffries wrote: Because the ACL to which you have attached the deny_info is only doing an allow. You need to use it to actually deny before the deny_info will work. Try: http_access deny !lan Okay, I'll give it ago. Is that instead of

Re: [squid-users] Confusing redirection behaviour

2008-03-28 Thread Henrik Nordstrom
On Fri, 2008-03-28 at 10:35 +0200, Dave Coventry wrote: This is what I've currently got: -- external_acl_type ipauth ttl=5 negative_ttl=5 %SRC /usr/local/squid/libexec/checkip acl lan external ipauth http_access allow lan add the following after that: http_access deny !lan Regards Henrik

Re: [squid-users] Confusing redirection behaviour

2008-03-28 Thread Henrik Nordstrom
On Fri, 2008-03-28 at 17:05 +0200, Dave Coventry wrote: Okay, I'll give it ago. Is that instead of http_access allow lan? Depends on what other http_access rules you have. YOu need to allow the request somewhere.. Regards Henrik

Re: [squid-users] Confusing redirection behaviour

2008-03-27 Thread Dave Coventry
Hi, I've done as Chris suggests and used form action=http://192.168.60.254/cgi-bin/auth.cgi; name=login with the following result: http://tinypic.com/view.php?pic=2cz6b87s=3 As you can see the root http://192.168.60.254; has been removed and squid is reporting an error because /cgi-bin/auth.cgi

Re: [squid-users] Confusing redirection behaviour

2008-03-27 Thread Henrik Nordstrom
On Wed, 2008-03-26 at 10:13 +0200, Dave Coventry wrote: Chris, regarding the 302 redirection and the use of %s, where can I find information on this? http://www.squid-cache.org/Versions/v2/2.6/cfgman/deny_info.html I've tried: deny_info 302:http://192.168.60.254/login.html; lan Should

Re: [squid-users] Confusing redirection behaviour

2008-03-26 Thread Dave Coventry
Thanks, Chris, Henrik. (Apologies to Henrik; I thought I was replying to the list, forgot that the default is to reply off-list.) I think it was my firewall which was causing a lot of the odd behavior, I hope I have that sorted now... Chris, regarding the 302 redirection and the use of %s, where

Re: [squid-users] Confusing redirection behaviour

2008-03-21 Thread Henrik Nordstrom
On Thu, 2008-03-20 at 16:33 -0800, Chris Robertson wrote: Dave Coventry wrote: In an attempt to generate a login page I was previously using external_acl_type to define a helper program to define my acl, and then using deny_info to define a logon page for my users. This failed because

Re: [squid-users] Confusing redirection behaviour

2008-03-20 Thread Chris Robertson
Dave Coventry wrote: In an attempt to generate a login page I was previously using external_acl_type to define a helper program to define my acl, and then using deny_info to define a logon page for my users. This failed because the redirected page did not appear to use it's own URL as it's root

[squid-users] Confusing redirection behaviour

2008-03-17 Thread Dave Coventry
In an attempt to generate a login page I was previously using external_acl_type to define a helper program to define my acl, and then using deny_info to define a logon page for my users. This failed because the redirected page did not appear to use it's own URL as it's root and instead