cron or ipfw problem!
Ion-Mihai Tetcu
itetcu at apropo.ro
Fri Feb 20 12:44:33 PST 2004
On Fri, 20 Feb 2004 23:33:45 +0300
"Marwan Sultan" <Admin at 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
More information about the freebsd-questions
mailing list