Re: [squid-users] Why My Squid.conf Shows Up Bungled squid.conf ErrorMessages ??

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 24 Aug 2008 01:18:30 +1200

jmaan_at_nits.ac.in wrote:
> *************************************************
> This message has been scanned by IMSS NIT-Silchar
>
>
>
> Thwn how do i set time for the hostel people to access the net. ??

http_access

>
> Is it necessary to not to use the name twice in tow type of acls ??
>
>
> I need the solution ?
>
>

# define who the students are ...
acl stud_hostel src 10.0.0.0/8

# define when they are/aren't allowed access ...
acl stud_time time MTWHF 06:00-18:00

# link ACLs to prevent students browsing at certain times
http_access deny stud_hostel stud_time

# .. alternativly let them through to anywhere on other times...
http_access allow stud_hostel !stud_time

Amos

-- 
Please use Squid 2.7.STABLE4 or 3.0.STABLE8
Received on Sat Aug 23 2008 - 13:18:35 MDT

This archive was generated by hypermail 2.2.0 : Sat Aug 23 2008 - 12:00:04 MDT