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

0002727: Time based rules - MantisBT
MantisBT - Endian Firewall
View Issue Details
0002727Endian FirewallFirewall (iptables)public2010-02-25 12:452011-06-22 08:13
aender 
 
normalfeatureN/A
acknowledgedopen 
2.3 
 
0002727: Time based rules
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?
No tags attached.
duplicate of 0000688acknowledged  NAT : Time rules / Conditions 
Issue History
2010-02-25 12:45aenderNew Issue
2010-02-25 13:53peter-endianRelationship addedduplicate of 0000688
2010-02-25 13:58luca-endianNote Added: 0003870
2010-09-24 09:07peter-endianStatusnew => acknowledged
2011-06-20 10:19anubisg1Note Added: 0006749
2011-06-20 11:51aenderNote Added: 0006753
2011-06-22 08:13anubisg1Note Added: 0006789

Notes
(0003870)
luca-endian   
2010-02-25 13:58   
iptables already has this capability

http://www.cyberciti.biz/tips/iptables-for-restricting-access-by-time-of-day.html [^]
(0006749)
anubisg1   
2011-06-20 10:19   
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)

thanks.
(0006753)
aender   
2011-06-20 11:51   
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.
(0006789)
anubisg1   
2011-06-22 08:13   
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