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

    2WAN <-> 2LAN

    Scheduled Pinned Locked Moved Routing and Multi WAN
    31 Posts 6 Posters 12.8k 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
      BUL
      last edited by

      OK, of course that I agree, and because of problem with routing table I add fourth interface. Can we go a little further with explanation because there is still something fishy. During weekend I will go on site where this specific box in installed and will play with it.

      Meanwhile… can you tell me why I cant ping ***253 (LAN2) interface from local subnet? I have feeling that problem can be solved with some additional rule... may me some rule between LAN & LAN2?

      There is other solution with list of hosts and rules to redirect traffic for those host's to WAN2... I will drop to this solution if weekend playing do not resolve..

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        @BUL:

        OK, of course that I agree, and because of problem with routing table I add fourth interface.

        That's where you're wrong.
        As far as the routing table is concerned you didnt add a 4th interface because you have the same subnet on two interface.

        Why dont you just change the subnet of one of the interface?
        If you want to let your users change the gateway you could as well let them change their subnet.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • M
          mojo-chan
          last edited by

          If you used two different subnets would machines on either have access to each other? I'm guessing the two LAN interfaces would need to be bridged at least…

          1 Reply Last reply Reply Quote 0
          • GruensFroeschliG
            GruensFroeschli
            last edited by

            If you bridge them you effectively make a single broadcast domain with 2 subnets on it.
            You still need a router to access from one subnet the other.
            –> A bridge is kind of useless.

            We do what we must, because we can.

            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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

              I already answered this. It is based on interface, but you can't have two interfaces in the same network.

              1 Reply Last reply Reply Quote 0
              • M
                mojo-chan
                last edited by

                It seems like there must be some way it can be set up, because obviously it works if you have two separate routers on the same subnet and simply use the client machine's default gateway to select which one to use (my current set up).

                Combining two routers into one would save on hardware and electricity costs. Surely there must be some way to do this, even if it's not possible in the current pfSense GUI.

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

                  Ok.. I agree with all was said..
                  It sound very simple… just few simple rules.. but <sigh>I will reply during weekend what I do... one old router with different subnet on PfSense side (connected to LAN2) will solve my problem.

                  I will rephrase problem again just in case that there is some other solution.

                  "How to use one PfSense box with two (or more) Wan and allow users on same subnet to choose gateway on their own."

                  Best regards

                  It seems like there must be some way it can be set up, because obviously it works if you have two separate routers on the same subnet and simply use the client machine's default gateway to select which one to use (my current set up).

                  I have three gateways here on my work place.. two pfsense boxes (wireless and cable) and one "solo" :-) adsl.</sigh>

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

                    The problem is in a standard routing table. You have a network that is associated to one exit interface. It works with multiple routers because each one only has one entry. It works with the extra router in the middle because the routing table doesn't have entries for the same network, just one for the original network and another for the NAT network in between.

                    1 Reply Last reply Reply Quote 0
                    • P
                      Perry
                      last edited by

                      I've been some what reading / following this thread.
                      So BUL isn't the end goal really that a user can switch between going out of wan or wan2?
                      If not. I will go away :)
                      If yes. It can be done by giving each user 2 IP address that they can switch between

                      /Perry
                      doc.pfsense.org

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

                        Yep Perry.. seems that this can be done by odd/even IP "rule" as you suggest :-) odd for WAN and even for WAN2 for example.. But that raise other possible problems.

                        Thanks to all. This really sound simple in start. I will drop after another shot on site and probably try to find some old router for LAN2.

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

                          So if it just needs to be setup for the user to be able to switch, you could set the PPTP server up so they can connect to that to use the WAN2 and just have standard LAN traffic go out WAN. Just set the firewall rule in the PPTP server to use the WAN2 as the gateway.
                          If they are using windows, then it would be as simple as clicking a VPN shortcut for less tech inclined users.

                          I know this works because I've done this to allow users access into a network attached to a pfSense machine.

                          Sorry, I wasn't aware that you were trying to give users the option to switch connections themselves.

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

                            Heh, this is nice. I will try it on site.

                            Thanks blak111 :-)

                            1 Reply Last reply Reply Quote 0
                            • M
                              mojo-chan
                              last edited by

                              The only problem with changing IP addresses on clients is that it tends to cause some temporary confusion on the network, particularly with Windows file shares.

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

                                that's what the pptp connection would be for. you still wouldn't lose your local IP

                                1 Reply Last reply Reply Quote 0
                                • P
                                  Perry
                                  last edited by

                                  The only problem with changing IP addresses on clients is that it tends to cause some temporary confusion on the network, particularly with Windows file shares.

                                  This made me think of some old bat files :)

                                  
                                  netsh interface ip set address LAN-connection static 192.168.1.110 255.255.255.0 192.168.1.1 integer
                                  netsh interface ip set dns LAN-connection static 192.168.1.1
                                  
                                  
                                  
                                  @echo off
                                  echo Enter username
                                  color 01
                                  set /P Username=
                                  echo Enter Password
                                  set /p Password=
                                  cls
                                  color 08
                                  net use Z: \\192.168.1.200\data %Password% /user:%Username%
                                  net use i: \\192.168.1.200\install
                                  
                                  

                                  /Perry
                                  doc.pfsense.org

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