Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 1998 23:43:19 +1000
From:      "Numard (Norberto Meijome)" <numard@smartmedia.com.ar>
To:        Libor Kral <libor@stuare.cz>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Squid access
Message-ID:  <35ACB1F7.F9326E0C@smartmedia.com.ar>
References:  <01c901bdafec$6fb24a60$5ed0a5c1@serv.stuare.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
hi!
why not create different config files,lets call them squid.conf.host1 ,
squid.conf.host2 and so on.
in squid.conf.host1 you give access only to host1 (computer 1), in
squid.conf.host2 you give access only to host2, and so on.
in cron you create an entry
0	9	*	*	*	root script-to-change-squid squid.conf.host1
0	11	*	*	*	root script-to-change-squid squid.conf.host2


and make that script sth like
#!/bin/bash
killall squid (or kill `cat pid-file-of-squid`)
squid -f $1 <--- remember 1st param is the new config file. I'm not sure
the -f is to tell squid which config file to read,since i don't have
access to any host running squid at the moment)
Good luck!

> Libor Kral wrote:
> 
> Hi,
> I have in my local network 10 computers and I need acces to squid
> cache
> for one computer 9:00-11:00, another 11:00-15:00 and ....
> 
> Can You help me?
> Thanks

-- 
Norberto Meijome (a) Numard, (a) Beto | ICQ # 15032073
 * Contrary to popular belief, Unix is user friendly. It just happens to
be very selective about who it decides to make friends with.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35ACB1F7.F9326E0C>