On 6/22/2014 2:08 PM, Brian J. Murrell wrote:
> So, while I'm aware of /etc/shorewall/rules TIME limiting abilities, I'm
> interested in rtrules which apply at times of day.  For example, say
> from 2am until 8am I want to route to a particular address through my
> second ISP but during 8am until 2am I want to route that same address
> through my first ISP.
> 
> I realize that there is not going to be any built-in ToD functionality
> for Shorewall to leverage here like it can with netfilter and access
> rules, but this is something that could be achieved using cron for
> example.
> 
> Indeed, I could easily enough set up my own cron job to simply
> manipulate the ip rule list as I need but I thought it would be nice if
> Shorewall did this for me based on ToD specifications in rtrules.
> 
> Thoughts?

I would be much more willing to add a TIME column to the mangle
(formerly tcrules) file.

If you choose to create your own cron solution, be sure to flush the
route cache once you have manipulated the route rules.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to