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

    Multi WAN can specify the IP of the device?

    Routing and Multi WAN
    3
    5
    603
    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.
    • W
      wallace329
      last edited by wallace329

      I have 2 ISP IPs, WAN IP A, and WAN IP B, and connect to my router. My router has 4 WAN/LAN ports, then the other port connects to Switch and connects those PC. Can I specify what device to get which WAN IP?

      Sorry for the bad English.

      Untitled (2).png

      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @wallace329
        last edited by

        @wallace329 You can use policy routing to provide a default routing and failover.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        W 1 Reply Last reply Reply Quote 0
        • W
          wallace329 @SteveITS
          last edited by

          @steveits yes, but in the policy routing page, I can not choses a specify device(Like MAC address). Only can choses which port.

          S C 2 Replies Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @wallace329
            last edited by

            @wallace329 One can specify an IP address in the Source section of the firewall rule.

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote ๐Ÿ‘ helpful posts!

            1 Reply Last reply Reply Quote 0
            • C
              crucialguy @wallace329
              last edited by crucialguy

              @wallace329 Easiest way to achieve what you're looking for is to create a specific rule on the source interface in question (so your LAN, for example) with the gateway set to either WAN1, WAN2 or a failover group. (that's in the advanced section of the rule when you set it up)

              Best practice (I find anyway) is to set the Source with an Alias group, then when you wish to force certain hosts over a specific gateway or a failover group then just drop their IP into the Alias group and all will be well (as long as that's above the general allow all rule)

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