On Fri, 20 Feb 2004 23:33:45 +0300
"Marwan Sultan" <[EMAIL PROTECTED]> 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

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to