> ---------- Forwarded message ----------
> From: Arun Shrimali <arun.reso_at_gmail.com>
> To: squid-users_at_squid-cache.org
> Date: Sat, 14 Feb 2009 17:34:31 +0530
> Subject: custom error msg
> Dear All,
>
> I am using Squid 3.0 Stable 7 on FC9, with NCSA auth which is working
> fine.
>
> I have restricted the users (iu) on particular time (2-3 pm and 5-7
> pm) and at this time I want show the custom error. Here is my acl for
> review
>
> acl iu proxy_auth "etc/squid/iu.txt"
>
> acl resonethrs1 time M T W H F A 14:00-15:00
> acl resonethrs2 time M T W H F A 17:00-19:00
>
> deny_info ERR_TIME resonethrs1
> deny_info ERR_TIME resonethrs2
> http_access allow iu !resonethrs1 !resonethrs2
>
> but instead of custom error user is getting standard error.
>
> Can any body help me how to configure the custom error.
>
> regards
>
> Arun
>
>
>
> ---------- Forwarded message ----------
> From: Amos Jeffries <squid3_at_treenet.co.nz>
> To: Arun Shrimali <arun.reso_at_gmail.com>
> Date: Sun, 15 Feb 2009 12:26:09 +1300
> Subject: Re: [squid-users] custom error msg
> Arun Shrimali wrote:
>
> Dear All,
>
> I am using Squid 3.0 Stable 7 on FC9, with NCSA auth which is working
> fine.
>
> I have restricted the users (iu) on particular time (2-3 pm and 5-7
> pm) and at this time I want show the custom error. Here is my acl for
> review
>
> acl iu proxy_auth "etc/squid/iu.txt"
>
> acl resonethrs1 time M T W H F A 14:00-15:00
> acl resonethrs2 time M T W H F A 17:00-19:00
>
> deny_info ERR_TIME resonethrs1
> deny_info ERR_TIME resonethrs2
> http_access allow iu !resonethrs1 !resonethrs2
>
> but instead of custom error user is getting standard error.
>
> Can any body help me how to configure the custom error.
>
> regards
>
> Arun
>
>
> * First the http_access is not performing a denial.
>
> - line matches and clients are ALLOWED through (no error page displayed)
> - line does not match, squid will keep looking elsewhere for a reason
> to deny or allow (again no error page displayed).
>
> Try this:
> acl resonethrs time M T W H F A 14:00-15:00
> acl resonethrs time M T W H F A 17:00-19:00
> deny_info ERR_TIME resonethrs
> http_access allow iu resonethrs
>
> Amos
> --
> Please be using
> Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
> Current Beta Squid 3.1.0.5
>
> --------------------------------------
>
> Dear Amos,
>
> Thanks for the reply.
>
> As per your suggesations
>
> http_access allow iu resonethrs
>
> This allow "iu" to access Internet while resonethrs, where I would
> like to restrict "iu" during resonethrs ???
bah, there I go making the same mistake I'm trying to stop you making.
I should have written this:
http_access deny iu resonethrs
Amos
Received on Mon Feb 16 2009 - 21:44:06 MST
This archive was generated by hypermail 2.2.0 : Tue Feb 17 2009 - 12:00:02 MST