SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264
|Anonymous | Login||2020-02-24 03:07 UTC|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002727||Endian Firewall||Firewall (iptables)||public||2010-02-25 12:45||2011-06-22 08:13|
|Target Version||Fixed in Version|
|Summary||0002727: Time based rules|
|Description||It would be nice to have time based rules.|
For example ftp is only allowed from 8am to 6pm.
Can this be done with some scripts running via cron?
|Tags||No tags attached.|
iptables already has this capability
I don't understand exactly what you mean with iptables. But i was wondering if it was possible to implement a web ui where we can configure time based routing policies (something like dd-wrt has) in endian (without of course using iptables and cron by CLI)
Endian firewall rules uses iptables. And iptables support time based rules per default. So there is no need to use cron.
iptables RULE -m time --timestart TIME --timestop TIME --days DAYS -j ACTION
So you can allow e.g. ssh from 6am to 6pm.
thank you for the reply, if this is "that easy" i hope there will be a way to implement it into "network --> routing --> policy routing"
so that will be easy to set up time based policy rules from the the web UI
|2010-02-25 12:45||aender||New Issue|
|2010-02-25 13:53||peter-endian||Relationship added||duplicate of 0000688|
|2010-02-25 13:58||luca-endian||Note Added: 0003870|
|2010-09-24 09:07||peter-endian||Status||new => acknowledged|
|2011-06-20 10:19||anubisg1||Note Added: 0006749|
|2011-06-20 11:51||aender||Note Added: 0006753|
|2011-06-22 08:13||anubisg1||Note Added: 0006789|
|Copyright © 2000 - 2012 MantisBT Group|