Networking Forums

Networking Forums > Computer Networking > Linux Networking > Time restriction in SQUID

Reply
Thread Tools Display Modes

Time restriction in SQUID

 
 
Jayant patil
Guest
Posts: n/a

 
      01-19-2005, 10:19 AM
Hi
i am trying to restrict a perticular user PC from using the Internet
facility on Time restriction basis. I add following entries
in squid.conf file.
**********************
acl restnet src 192.168.27.151
acl WORKING time MTWHF 11:00-11:30
http_access allow restnet
*******************************

I found that user sitting at 192.168.27.151 is able to browse the
Internet even after the specified hours
(11:00-11:30). Means these settings are not working.
Can anyone tell what else is reqd. to restrict the particular PC for
particular time period? or can someone suggests the
change in this code?
Thanks in Advance
 
Reply With Quote
 
 
 
 
John Thompson
Guest
Posts: n/a

 
      01-19-2005, 09:07 PM
["Followup-To:" header set to comp.os.linux.networking.]
On 2005-01-19, Jayant patil <(E-Mail Removed)> wrote:

> i am trying to restrict a perticular user PC from using the Internet
> facility on Time restriction basis. I add following entries
> in squid.conf file.
> **********************
> acl restnet src 192.168.27.151
> acl WORKING time MTWHF 11:00-11:30
> http_access allow restnet
> *******************************
>
> I found that user sitting at 192.168.27.151 is able to browse the
> Internet even after the specified hours
> (11:00-11:30). Means these settings are not working.
> Can anyone tell what else is reqd. to restrict the particular PC for
> particular time period? or can someone suggests the
> change in this code?


Have you tried "http_access deny all" directive before "http_access allow
restnet"?

--

John ((E-Mail Removed))
 
Reply With Quote
 
Michael Fuhr
Guest
Posts: n/a

 
      01-20-2005, 12:02 AM
(E-Mail Removed) (Jayant patil) writes:

> i am trying to restrict a perticular user PC from using the Internet
> facility on Time restriction basis. I add following entries
> in squid.conf file.
> **********************
> acl restnet src 192.168.27.151
> acl WORKING time MTWHF 11:00-11:30
> http_access allow restnet
> *******************************
>
> I found that user sitting at 192.168.27.151 is able to browse the
> Internet even after the specified hours
> (11:00-11:30). Means these settings are not working.


You've defined the "WORKING" acl but the configuration you show
doesn't apply it. Also, if you have any http_access lines following
what you've shown then you might need to add an explicit deny for
"restnet" so it doesn't match any subsequent "allow" rules. Example:

http_access allow WORKING restnet
http_access deny restnet # not necessary if subsequent rules would deny

Make sure no preceding http_access lines are allowing access to
"restnet" before these are checked.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Time Zone Setting (Urgent) RayAuYeung Linux Networking 7 05-25-2005 03:22 PM
Squid problems (first time run). Nuno Paquete Linux Networking 2 09-29-2004 08:57 PM
Restriction Alfred Windows Networking 1 08-30-2004 10:58 AM
Internet restriction GTaylor Wireless Networks 0 08-07-2004 09:19 PM
Intermittent Squid problem, no responce from squid Graeme Hinchliffe Linux Networking 1 10-30-2003 11:51 AM



1 2 3 4 5 6 7 8 9 10 11