Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Schedule based routing ?

    Routing and Multi WAN
    2
    4
    996
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      andynormancx
      last edited by

      I have two WAN connections, both PPPoE, each going over a separate network card.

      I need to be able to route most out-going traffic via a different WAN gateway depending on the time of day.

      For example I need most traffic to go out via WANA during office hours Mon-Fri and via WANB at all other times. All this traffic will ne NATed.

      What is the best way to achieve this ?

      As a further complication, there are some hosts on the network that this won't apply to, they will always need to be routed via WANB. And as a final complication those hosts always routed via WANB will need to be reachable by the public IP addresses available on WANB (possibly via 1-to-1 NAT, haven't looked at that much yet.

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        schedules work for that when combining it with policy routing on your firewall rules (ie specify gateway+schedule and put it above the default ruleset)

        1 Reply Last reply Reply Quote 0
        • A
          andynormancx
          last edited by

          So I presumably do that by adding a couple of rules to the set for the LAN interface ?

          i.e. one rule with a schedule and the gateway for WANA and then a rule under that with no schedule for WANB, both rules matching all outgoing traffic

          1 Reply Last reply Reply Quote 0
          • H
            heper
            last edited by

            yes

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.