Date: Fri, 20 Feb 2004 15:49:29 -0500 From: Marty Landman <MLandman@face2interface.com> To: "Marwan Sultan" <Admin@kifco.net>, "FreeBSD questions List" <freebsd-questions@freebsd.org> Subject: Re: cron or ipfw problem! Message-ID: <6.0.0.22.0.20040220154400.092f0ba0@pop.face2interface.com> In-Reply-To: <20040220201619.M35470@kifco.net> References: <20040220201619.M35470@kifco.net>
next in thread | previous in thread | raw e-mail | index | archive | help
At 03:33 PM 2/20/2004, Marwan Sultan wrote: > 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 > > How to run the scripts? thro crontab I fixed my crontab to > 0 3 * * * /path/deny.sh > 0 15 * * * /path/enable.sh Marwan, are these scripts running as root? Perhaps you could modify the scripts to do ipfw -a list when they end, and put their outputs in a file e.g. 0 3 * * * /path/deny.sh >> /root/ipfwJob 0 15 * * * /path/enable.sh >> /root/ipfwJob Also add echo deny (or enable) starting to the top of each script then post back with the contents of /root/ipfwJob after they've both run. Marty Landman Face 2 Interface Inc 845-679-9387 This Month's New Quiz --- Past Superbowl Winners Make a Website: http://face2interface.com/Home/Demo.shtml
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.0.20040220154400.092f0ba0>