This was discussed about a year ago, but didn't come to a conclusion, so I thought I would raise it again.
The question is how to set firewall rules which are activated according to a time schedule.
Thanks,
The question is how to set firewall rules which are activated according to a time schedule.
Thanks,
In Firewall
Share this post:
Responses (3)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
It can be done but could be easier. The easiest way is to have a default set of rules and a changed set in another file. You then need to set up a cron job for when you want your changed set and another cron job to restart the firewall when you want the default rules back.
You also need to edit /etc/rc.d/rc.firewall.local and add a line at the end to call up your changed set of rules if you are in the time window for your changed set. The reason you have to do this is that sometimes the firewall will reload and overwrite whichever rules your cron job activated.
Your first cron job could either call your modified rules directly or restart the firewall as long as you have the timed line in it. That is up to you.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »