Shinta Legazpi's Original Mesage:

>Hi there,
>
>    I need an urgent help. I have 3 diferent networks namely
>192.168.0.0/24, then 10.106.6.0/24, and 172.168.11.0/24.>
>
>Now, I need to setup squid as a WWW proxy in my 
>linux box(SuSE7.1 - ip. 192.168.0.1), 
>
>The thing here is that i need squid to be configured in a way
>that it will provide service to specific "ip range" at a 
>"specific time"
>
>For ex.,
>
> network 10.106.6.0 can only access the squid proxy from 4am-12am only,
> network 172.168.11.0 can access the squid proxy from 10am-5pm only,
> network 192.168.0.0 could access the squid proxy from 2am-10pm only,
>
>i tried reading the squid.conf file specifically the acl section and 
>find it too technical for me, (im a linux newbie)... And ive been 
>searching different sites for clues, but again I find the sqquid acl too
>technical...
>
>So please could someone please help me with the problem, perhaps showing me
>the appropriate line that would control access of the proxy server, for 
>a certain network at a certain time...
>
>
>Thanx!
>
>
>Shancecgol   
>


Thanx for all your help guys. I finally got it to work the way i wanted it to.
Here are the line that i added/change in the /etc/squid.conf file:


####   3 different networks  ###
##
acl neta src 192.168.0.0/24
acl neta_time time 06:00-23:59

acl netb src 172.168.1.0/24
acl netb_time time 20:37-23:59
 
acl netc src 105.168.120.0/24
acl netc_time time 20:55-23:59
#
###


http_access allow neta neta_time
http_access deny neta

http_access allow netb netb_time
http_access deny netb

http_access allow netc netc_time
http_access deny netc
###


http_access deny all

############ end of conf #######

I also heard(from [EMAIL PROTECTED]) that this can also be done by squidGuard...
Is it better to put the time restrictions in squid or is it better in squidGuard???


Once again thanx for all the help!!! 




__________________________________
www.edsamail.com

Reply via email to