I am trying to find a good/easy way to log ports assignments and opening and closing them in linux. It should log at least every 10 seconds. (So crontab is not a good option=minumum interval is 1 minute)

Until now the best option I could come up with is trying to use systemd timers to start this