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

    Rename bridge0 to WAN

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 2 Posters 214 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.
    • F
      fireix
      last edited by

      Is there - using config or otherwise - possible to rename bridge0 to wan? I know I can change the display-name, but to change the actual interface name. Like it works for LAG-interface.

      For instance, I have created LAN-LAG0 and this one is working like this, very nice:
      firewall_rules.php?if=lan

      When creating a bridge for WAN after setup, I get the "opt2" (instead of if=wan)
      firewall_rules.php?if=opt2

      The original WAN, I renamed to "WAN1" as it will be part of the bridge alongside "WAN2". But of course, WAN1 will internally always be remembered as if=WAN.

      Maybe I can delete interface WAN1 (if=wan) and re-create the interface WAN? Could that be it?

      The reason for this, is to keep the config-file (rules) somewhat universal for later changes.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @fireix
        last edited by

        @fireix said in Rename bridge0 to WAN:

        When creating a bridge for WAN after setup, I get the "opt2" (instead of if=wan)
        firewall_rules.php?if=opt2

        So don't add a new interface for the bridge, but just select the bridge as network adapter for the existing WAN.

        F 1 Reply Last reply Reply Quote 0
        • F
          fireix @viragomann
          last edited by fireix

          @viragomann If I remove the bridge0 interface and try to modify the original "wan" interface to be linked to bridge0, I get this:

          "Cannot set port bridge0 to interface WAN because this interface is a member of bridge0."

          error-if.png

          I modified the Network port dropdown for WAN1 to be the bridge0 and pushed Save.

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @fireix
            last edited by

            @fireix
            I see. So this cannot be done obviously.

            WAN is the internal name for this interface.
            If you really want to assign it to the bridge, you will first have to remove the network adapter from it and assign it to another interface (OPTx). Then create the bridge with the OPTx instead of WAN.

            F 1 Reply Last reply Reply Quote 1
            • F
              fireix @viragomann
              last edited by

              @viragomann Perfect, that worked! Thanks!

              bridge-fixed.png

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