Re: time based rules on pf

2010-05-18 Thread Daniel Gracia Garallar
- Veltrac escribis: There is a way to do time-based rules on pf? Something like "this packet will /pass/ from 10h to 13h" or "this packet will /pass/ until 22h, 13 june". I mean, there is a built-in mechanic to do this in pf or i'll need to write a script in cron to add and remove rules? Tks in advance

Re: time based rules on pf

2010-05-17 Thread Leonardo Carneiro - Veltrac
Stuart Henderson wrote: On 2010-05-17, Johan Beisser wrote: Build an anchor, have a ruleset loaded to it by cron, and removed at the specified time later. there might be more than that; unless you don't mind long-running sessions continuing, you have to flush the states too. Tks St

Re: time based rules on pf

2010-05-17 Thread Stuart Henderson
On 2010-05-17, Johan Beisser wrote: > Build an anchor, have a ruleset loaded to it by cron, and removed at > the specified time later. there might be more than that; unless you don't mind long-running sessions continuing, you have to flush the states too.

Re: time based rules on pf

2010-05-17 Thread Peter N. M. Hansteen
Leonardo Carneiro - Veltrac writes: > There is a way to do time-based rules on pf? Something like "this packet > will /pass/ from 10h to 13h" or "this packet will /pass/ until 22h, 13 > june". I mean, there is a built-in mechanic to do this in pf or i'll &

Re: time based rules on pf

2010-05-17 Thread Johan Beisser
Build an anchor, have a ruleset loaded to it by cron, and removed at the specified time later. On Mon, May 17, 2010 at 7:03 AM, Leonardo Carneiro - Veltrac wrote: > There is a way to do time-based rules on pf? Something like "this packet > will /pass/ from 10h to 13h" or "t

Re: time based rules on pf

2010-05-17 Thread IƱigo Ortiz de Urbina
On Mon, May 17, 2010 at 5:03 PM, Leonardo Carneiro - Veltrac < lscarne...@veltrac.com.br> wrote: > There is a way to do time-based rules on pf? Something like "this packet > will /pass/ from 10h to 13h" or "this packet will /pass/ until 22h, 13 > june". I mean,

time based rules on pf

2010-05-17 Thread Leonardo Carneiro - Veltrac
There is a way to do time-based rules on pf? Something like "this packet will /pass/ from 10h to 13h" or "this packet will /pass/ until 22h, 13 june". I mean, there is a built-in mechanic to do this in pf or i'll need to write a script in cron to add and remove rules? Tks in advance --