From owner-freebsd-questions Wed Jul 15 06:43:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA18812 for freebsd-questions-outgoing; Wed, 15 Jul 1998 06:43:52 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from smartnet.com.ar ([205.147.248.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA18807 for ; Wed, 15 Jul 1998 06:43:51 -0700 (PDT) (envelope-from numard@smartmedia.com.ar) Received: from smartmedia.com.ar (syd1 [203.111.0.219]) by smartnet.com.ar (8.8.7/8.8.7) with ESMTP id FAA29753; Wed, 15 Jul 1998 05:46:08 -0400 (EDT) (envelope-from numard@smartmedia.com.ar) Message-ID: <35ACB1F7.F9326E0C@smartmedia.com.ar> Date: Wed, 15 Jul 1998 23:43:19 +1000 From: "Numard (Norberto Meijome)" Organization: 0xCode X-Mailer: Mozilla 4.05 [en] (WinNT; I) MIME-Version: 1.0 To: Libor Kral CC: FreeBSD Questions Subject: Re: Squid access References: <01c901bdafec$6fb24a60$5ed0a5c1@serv.stuare.cz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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