Date: Fri, 20 Feb 2004 22:46:19 +0200 From: Ion-Mihai Tetcu <itetcu@apropo.ro> To: "Marwan Sultan" <Admin@kifco.net> Cc: FreeBSD questions List <freebsd-questions@freebsd.org> Subject: Re: cron or ipfw problem! Message-ID: <20040220224619.6cd9375a@it.buh.cameradicommercio.ro> In-Reply-To: <20040220201619.M35470@kifco.net> References: <20040220201619.M35470@kifco.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 20 Feb 2004 23:33:45 +0300 "Marwan Sultan" <Admin@kifco.net> wrote: > Hello bsd, > > I have FreeBSD 4.8R, NATd, ipfw enabled. > > I want to add a rule to ipfw which activate from 3AM to 3PM : says: > ipfw 05000 add deny all from 192.168.1.21 to any The following entries in my crontab work: 00 08 * * 1-5 /sbin/ipfw set enable 5 && /sbin/ipfw -dS show 45 18 * * 1-5 /sbin/ipfw set disable 5 6 7 8 && /sbin/ipfw set enable 9 && /sbin/ipfw -dS show maybe you should use the full path for ipfw in your script ? -- IOnut Unregistered ;) FreeBSD user
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040220224619.6cd9375a>