Cron config for ipfw table

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Fri Apr 10 19:25:47 UTC 2020


Jos Chrispijn <bsduser at cloudzeeland.nl> writes:

> I have added a line to my crontab that defines running a script on reboot:
>
> @reboot bash /root/cronjobs/reboot.sh &
>
> This (bash) .sh script should add an updated ipfw table (preventing I
> have to run his action manually) but unfortunately no script is
> executed on reboot.
>
> - script is executable
> - no action is mentioned in /var/log/cron
>
> Can you tell me what I do wrong here? Perhaps scheduling this action
> _after_ reboot would be the solution?

Is there any reason that you can't use the system's standard ipfw script
for that? 


More information about the freebsd-questions mailing list