cron or ipfw problem!
MLandman at face2interface.com
Fri Feb 20 12:49:37 PST 2004
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
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
More information about the freebsd-questions