View Single Post
  #2   (View Single Post)  
Old 19th February 2019
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,596

You can create a crontab entry with the "@reboot" time/period specifier. From crontab(5) :

Instead of the first five fields, a line may start with `@' symbol fol-
 lowed either by one of eight special strings or by a numeric value.  The
 recognized special	strings are:

	   string	   meaning
	   ------	   -------
	   @reboot	   Run once, at	startup	of cron.
You can create a simple shell script that runs/executes whatever you want to run at reboot,

Please keep in mind that your script runs with a very limited subset of environment settings like PATH.
From the shell execute which env and enter the results in your first iteration of the script, The resulting output of the script will be mailed locally. Inspect that mail to see the environment settings.
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote