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

    Policy based routing dynamically based on changing conditions

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 3 Posters 810 Views
    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.
    • N
      nizzard0094
      last edited by

      i setup a pfsense box for a cybercafe with 2 gateways one for normal web browsing and one for online games
      games traffic will be routed to second gateway based on its ports

      what i want is no one is using the second gateway (game gateway) i want to make it in to a gateway group with the first gateway and make it useful

      so is there a way to make normal traffic use gateway group only if game gateway is idle and reset connections on game gateway or redirect them to normal traffic gateway if game gateway is used by its rules from firewall

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

        No. Not possible.

        What you could do is use traffic shaping to give gaming a higher priority on a certain wan.
        (see traffic shaping subsection for details)

        1 Reply Last reply Reply Quote 0
        • N
          nizzard0094
          last edited by

          but download traffic shaping is not good with games there is a lot of spikes i have 4mb (3500kbit) and limited to 3000kbit to control it and still get a lot of spikes

          i didn't use traffic shaper i use limiter but i think do the same to control traffic or to manage it

          limited my bandwidth to 3000kbit and see in traffic graph that i'm using 3.4-3.6mbit no less so i think traffic shaper can't control download stream immediately it take some time(in ms) to use congestion control to control download stream

          if there is alot of opening and closing connections

          which made me go to policy based router to manage traffic for games

          btw i have 2 gateways 2mbit for gaming and 4mbit for other traffic

          1 Reply Last reply Reply Quote 0
          • nzkiwi68N
            nzkiwi68
            last edited by

            You could force certain services, say HTTP, HTTP, SMTP, FTP etc. to go out WAN2 and thus leave WAN available for gamers, by setting specific LAN firewall rules to use specific WAN2 gateway under advanced –> Gateway options on each firewall rule for certain services.

            I know it's not exactly what you are looking for, but, it will help.

            You could take it one step further and create 2 gateway groups WANgamers with WANgw in it Tier 1 and WAN2gw in it Tier2 and a second gateway group called say WANgeneral with WAN2gw in it Tier 1 and WANgw in Tier 2.

            That way, each Gateway Group will have redundancy and failover to the other WAN, but, prefer to use a different WAN gateway normally.

            Then, your firewall rules will ALWAYS reference a specific gateway group, either WANgamers (which prefers to use WAN) or the WANgeneral gateway group which prefers to use WAN2.

            I hope that helps.

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