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

    Multi Lan – Dual pfSense routing

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 3 Posters 1.6k 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
      mrmastii
      last edited by

      Hello pfSense Gurus,
      I am stuck in a simple yet complex situation (at least I feel like it)

      I have two different LAN subnets, one with 172.16.7/24 net other with 172.16.8/24 net.

      Now I am trying to route traffic from one network to other in a simplest way, any suggestion?

      -Mr.Mastii

      Question_1.png
      Question_1.png_thumb

      1 Reply Last reply Reply Quote 0
      • J
        jasonlitka
        last edited by

        Are your two pfSense boxes using NAT between the 192.168.1.0/24 and 172.16.[7-8].0/24 networks?  If so, you can't, not without a VPN tunnel anyway.

        If NAT is disabled and they're routing then all you should need to do is add a static route to each which says to use the public IP of the opposite box as the gateway for their private network.

        I can break anything.

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

          Hi Jason,
          Thank you for quick reply.
          After reading your comment I realized that my previous diagram had missing information, i.e. LAN:3 of 10.10.10 /24 connected to both pfSense via switch

          Attached is the updated version of the diagram

          -MM

          Question_1.1.png
          Question_1.1.png_thumb

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            LAN3 should be just an ordinary LAN - no gateway set on the Interfaces->LAN3 page on either pfSense.

            pfSense 1
            System->Routing, add a gateway 10.10.10.7
            Add a static route to 172.16.7.0/24 through the 10.10.10.7 gateway

            pfSense 2
            System->Routing, add a gateway 10.10.10.8
            Add a static route to 172.16.8.0/24 through the 10.10.10.8 gateway

            Add rules as needed on LAN1 nd LAN2 to permit traffic.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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

              I am not sure what I am doing wrong… I followed your instructions, but still its not working. I cant ping from one subnet to another.

              Please see attach screen snaps
              -Mm

              PF_RT_4.png_thumb
              PF_RT_4.png
              PF_RT_3.png_thumb
              PF_RT_3.png
              PF_RT_5.png_thumb
              PF_RT_5.png
              PF_RT_1.png
              PF_RT_6.png_thumb
              PF_RT_2.png_thumb
              PF_RT_2.png
              PF_RT_1.png_thumb
              PF_RT_6.png

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

                @mrmastii:

                I am not sure what I am doing wrong… I followed your instructions, but still its not working. I cant ping from one subnet to another.

                Please see attach screen snaps
                -Mm

                Added routing table for ref

                PF_RT_7.png
                PF_RT_7.png_thumb
                PF_RT_8.png
                PF_RT_8.png_thumb

                1 Reply Last reply Reply Quote 0
                • J
                  jasonlitka
                  last edited by

                  Ok, did you add any firewall rules on either side to allow the traffic through?

                  I can break anything.

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

                    Yes Sir, I did.
                    Attached are Rule screen snaps

                    -MM

                    9.png
                    9.png_thumb
                    10.png
                    10.png_thumb
                    11.png
                    11.png_thumb
                    12.png
                    12.png_thumb

                    1 Reply Last reply Reply Quote 0
                    • P
                      phil.davis
                      last edited by

                      The rules are for traffic arriving on an interface. You can delete rules on each LAN that have "source LAN3" because LAN3 source IPs will never arrive on either LAN. Also delete rules on each LAN3 that have "source LAN" because traffic from the LAN that is local to each pfSense will never arrive on LAN3.

                      You need a rule on LAN3 that allows traffic with source "the LAN subnet of the opposite pfSense". It is probably easiest to make an Alias on pfSense1 for the pfSense2 LAN subnet - "RemoteLAN" - and then add a rule on pfSense1 LAN3 to pass source "OtherLAN".
                      Then do the same pattern of thing on pfSense2 to allow traffic from pfSense1 LAN.

                      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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