Search squid archive

Re: time ACL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try that...

acl special_ips src 192.168.10.6/255.255.255.255
192.168.10.7/255.255.255.255
acl network src 192.168.10.0/255.255.255.0
acl special_time time MTWHF 10:00-12:00
http_access deny special_ips !special_time
http_access allow network
http_access deny all

It will deny special_ips for time not in special_time scope, allow the
rest of the network and deny the rest.

Regards,

Isnard

Em Qui, 2007-07-12 às 08:06 -0400, Monah Baki escreveu:
> How do I write the acl in such a way if all users IP is 192.169.10.0/32
> but from Monday-Friday 192.168.10.6 and 192.168.10.7 can only use it from
> 10AM to 12PM.
> 
> Thank you
> 
> 
> > Yes, there's an acl named time that's described in squid.conf.
> >
> > #       acl aclname time     [day-abbrevs]  [h1:m1-h2:m2]
> > #           day-abbrevs:
> > #               S - Sunday
> > #               M - Monday
> > #               T - Tuesday
> > #               W - Wednesday
> > #               H - Thursday
> > #               F - Friday
> > #               A - Saturday
> > #           h1:m1 must be less than h2:m2
> >
> > You can make it work in conjunction with other acls.
> >
> >
> > Regards,
> >
> > Isnard
> >
> >
> > Em Qui, 2007-07-12 às 07:04 -0400, Monah Baki escreveu:
> >> Hi all,
> >>
> >> Is there a way to restrict some users access to the internet at a
> >> particular time or this is glabol, applies to everyone who has their
> >> proxy setting pointed to the server.
> >>
> >> Thank you
> >>
> >>
> >> BSD Networking, Microsoft Notworking
> >>
> >>
> >>
> >
> 
> 


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux