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

    How to configure pfSense as a router for two internal LAN subnets?

    Scheduled Pinned Locked Moved General pfSense Questions
    27 Posts 7 Posters 32.5k 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.
    • M
      mewsense
      last edited by

      @chpalmer:

      You converted your WAN to LAB interface?

      You have to disable all outbound NAT.

      No I converted LAN to LAB interface and converted WAN to LAN interface. Here are my NAT outbound rules:

      1 Reply Last reply Reply Quote 0
      • M
        mewsense
        last edited by

        @johnpoz:

        NO that is NOT the correct way to do it!!!  Create a route to use not a default gateway - arrrgghhh..

        OK, ok! :)

        I've done this now and all good from 10.0.0.3 to 10.0.1.1!

        I can also now ping from 10.0.1.1 to 10.0.0.3!!

        I do however, have one small issue. I can't ping the netgate router (10.0.0.1) from my LAB network. Any ideas on why?

        1 Reply Last reply Reply Quote 0
        • M
          mewsense
          last edited by

          Hi everyone, thanks for reading, I still have an issue where no servers on the LAB domain can access the internet. I can't ping the LAN interface of my Netgate WAN router from the LAB network, but I can ping it from the LAN network. Any ideas?

          1 Reply Last reply Reply Quote 0
          • chpalmerC
            chpalmer
            last edited by

            Draw a picture of how you have this set up and talk about your ultimate goals.

            Triggering snowflakes one by one..
            Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

            1 Reply Last reply Reply Quote 0
            • M
              mewsense
              last edited by

              @chpalmer:

              Draw a picture of how you have this set up and talk about your ultimate goals.

              OK. :)

              Here's the network diagram.

              I want pfSense on beryllium to allow traffic both ways between LAN and LAB networks unhindered. It seems that machines in LAB network can't reach some machines in LAN, but machines in LAN can reach all machines in LAB. Here are the results from a machine on each network.

              On cowslip.duck.loc
              Cannot ping 10.0.0.1, 10.0.0.8 (timed out)
              Can ping 10.0.0.10, 10.0.0.4, 10.0.0.3, 10.0.0.9, 10.0.1.1, 10.0.1.4

              On lithium.duck.loc
              Can ping everywhere fine

              Here are the firewall rules on beryllium.localdomain

              1 Reply Last reply Reply Quote 0
              • M
                mewsense
                last edited by

                All working now, I needed a static route to the LAB network on the SG-1000 router. Thanks for looking everyone!!

                F 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  "I needed a static route to the LAB network on the SG-1000 router."

                  If your network is how you drew it you have asymmetrical setup.. If you want to use use your sg1000 router to get to the internet it should be on a transit network to your downstream router.. You shouldn't be using 10.0.0 as your transit or your going to have to put host routes on all boxes on that network..

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  1 Reply Last reply Reply Quote 0
                  • M
                    mewsense
                    last edited by

                    Hmmm…

                    My SG-1000 only has two interfaces, so how would this work in practise? Would I have to create a VLAN for the transit network?

                    1 Reply Last reply Reply Quote 0
                    • K
                      kpa
                      last edited by

                      Using VLANs for that is fine but you must have a VLAN capable switch that can demux the tagged trunk traffic to selected switch ports.

                      1 Reply Last reply Reply Quote 0
                      • F
                        Flowi001 @mewsense
                        last edited by

                        @mewsense said in How to configure pfSense as a router for two internal LAN subnets?:

                        All working now, I needed a static route to the LAB network on the SG-1000 router. Thanks for looking everyone!!

                        May you please do elaborate on this solution?

                        Thank you

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by stephenw10

                          If you have a downstream (internal) router with other subnets behind it pfSense needs static route to those so it knows where to route traffic.

                          https://docs.netgate.com/pfsense/en/latest/routing/static.html#example-static-route

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