by moviuro · 8y ago · 0 comments
I do the following on my machines:
# cp /etc/pf.conf /etc/pf.conf.good
# crontab -e
*/5 * * * * /sbin/pfctl -f /etc/pf.conf.good
:x
# #now vi /etc/pf.conf; pfctl -f /etc/pf.conf; and if OK: cp /etc/pf.conf /etc/pf.conf.goodIt also seems overcomplex to use sudo from an unprivileged user's crontab rather than just straight execution of the target command from the superuser's crontab. I infer that your # prompt is implying this, too. (-:
All physical hardware has them. All hosting companies offer them via various tricks. This is why.
Just don't recommend stupid things: make them right once and the stupid thing won't ever have to go through your mind.