On 03/02/16 02:33, Brian J. Murrell wrote:
> I have two providers, one is fast (with a bigger usage cap), one is
> slow (with a smaller usage cap) so I generally default route through
> the fast one as the dedicated primary route with the slow sitting back
> as secondary (i.e. for just when the first one goes down, not round-
> robin).
> 
> But the slow provider zero-rates (does not count usage) from 2am-8am.
> 
> What would be ideal would to be able to configure Shorewall with time-
> of-day route rules.  I may (or may not) necessarily want to completely
> move the dedicated default route to the slower connection but I might
> like to configure a handful of routes (i.e. route-rules) as preferring
> the slower connection, during 2-8am.
> 
> Given that I don't think the iproute package has any concept of time,
> cron is probably the tool here.

You could have time-based rules in the mangle file to select the default
provider. Added in shorewall 4.6.2, or you could specify the raw
iptables rule with INLINE.

-- 
James Andrewartha
Network & Projects Engineer
Christ Church Grammar School
Claremont, Western Australia
Ph. (08) 9442 1757
Mob. 0424 160 877

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to