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

    2 gateways on same LAN with port forwarding

    Scheduled Pinned Locked Moved NAT
    8 Posts 3 Posters 525 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.
    • B
      Bambos
      last edited by

      hello everyone.

      i have a network 192.168.1.X with gateway 192.168.1.1, and port 80 forward to 192.168.1.55 (working)
      so the device 192.168.1.55 is using gateway 192.168.1.1

      then i install second internet connection with second router with gateway 192.168.1.254. all dhcp disabled - only static - all on the same switch.

      i do the same port forward port 80 from the second internet access router with gateway 192.168.1.254 to the same device 192.168.1.55 and is not working.

      To my understanding, this is because default gateway for the device is the other gateway.

      Can this be fixed with a specific configuration ?

      Thank you.

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

        you are experiencing what could be described as a clusterfuck

        please post a network diagram & then maybe someone can tell you how to fix it :D

        1 Reply Last reply Reply Quote 0
        • B
          Bambos
          last edited by

          @heper thanks for reply. existing situation is this:

          f329384f-b9ec-4d12-8882-6b9bd253345b-image.png

          My logic says that:

          1. disable the 4G router from router mode, and enable it as WAN only
          2. use 2100 - 2 ports WAN, 1 port LAN (so we have 1 gateway)
          3. make port forwards rules to both WANS.

          what do you say ?

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

            what does this have todo with pfsense ? there doesn't appear to be a pfsense router in your diagram ...

            @Bambos said in 2 gateways on same LAN with port forwarding:

            My logic says that:

            disable the 4G router from router mode, and enable it as WAN only
            use 2100 - 2 ports WAN, 1 port LAN (so we have 1 gateway)
            make port forwards rules to both WANS.

            what do you say ?

            edit - misread

            multiple gateways in combination with portforwards within the same L3 will result in asymetric routing & will fail

            so basically you need 1 router, that handles both wans. Clients use single router as gateway

            1 Reply Last reply Reply Quote 0
            • B
              Bambos
              last edited by

              @helper thanks for your info.

              Yes, there is no pfsense now, that's why i'm suggesting to use SG2100 as described.

              That's why i'm saying disable the 4G router and make it as WAN
              add one SG-2100 ,2 ports WAN, 1 LAN (1 gateway)
              make port forwards for both WANs.

              did you see any other clusterfuck ? :D

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

                no real other issues i guess. be sure to verify with netgate on if/how you configure the sg2100 switch as individual interfaces

                1 Reply Last reply Reply Quote 0
                • kiokomanK
                  kiokoman LAYER 8
                  last edited by

                  yes, you can do that with a sg2100
                  something like this will work
                  Immagine.jpg

                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                  Please do not use chat/PM to ask for help
                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                  1 Reply Last reply Reply Quote 0
                  • B
                    Bambos
                    last edited by

                    @helper @kiokoman Thanks for the help guys, i really appreciate it.

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