Firewall rules based on date/time...

mi_kke@bumerang.ro
Sat, 31 Jul 2004 10:49:21 -0000

Tom Eastep wrote:
"You can accomplish a similar thing by having two (or more) shorewall
configurations which you have saved to different files in
/var/lib/shorewall using the ''shorewall save'' command. A
simple cron job
can then switch between the configurations by issuing ''shorewall
restore'' commands (which are very fast)."

In my first message (which was sent by hotmail as html, perhaps that''s
why it didn''t show content...) i wanted to say that I need to allow
192.168.0.2 - 192.168.0.9 to access Internet 24/7 and 192.168.0.10 only nights
between 10:00PM and 8:00AM.

I understand that it''s not supported by shorewall and I should use cron
to perform some shorewall commands at given moments...

What I don''t understand is how to use "shorewall save" to
make "myconfig1" (allowing 192.168.0.10) and "myconfig2"
(denying 192.168.0.10) and to switch between them.
Does this command look like "shorewall save <myconfig#>"?
Does also restore command look like "shorewall restore
<myconfig#>"?

Acest email a fost trimis din interfata web http://www.bumerang.ro