---------- Forwarded message ----------
From: Arun Shrimali <[email protected]>
To: [email protected]
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 <[email protected]>
To: Arun Shrimali <[email protected]>
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  ???

Secondly, the above acls are working and "iu" are not able to access
internet during the resonet hrs ??

Regards

Arun

Reply via email to