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

    Allow LAN to LAN, not routing

    Scheduled Pinned Locked Moved General pfSense Questions
    37 Posts 6 Posters 3.3k 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.
    • L
      lewis
      last edited by

      Yes, our traffic is allowed, it's me that is not sure what to do on our end as I don't want to break something.

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

        You need a working communication between the NFS storage and your LAN devices as you stated above. So you need a static route for your LAN on the device in the other LAN. The default route can still stay as it is and upstream traffic from the NFS may go out the neighbours gateway.

        As I mentioned above, you may also do a workaround with NAT.
        To do so go to Firewall > NAT > outbound. Switch into the hybrid mode, save and add a new rule:
        interface: LAN2
        Source: your LAN network or an alias with the two considered servers in your LAN
        Translation address: interface address

        If you want you may also restrict protocol and port.

        1 Reply Last reply Reply Quote 0
        • KOMK
          KOM
          last edited by

          Adding a static route to them won't break anything unless you're really, really good.

          1 Reply Last reply Reply Quote 0
          • L
            lewis
            last edited by

            So, not doubting anything since I'm already at a point where I'm not knowledgeable enough and had to ask but, I had added a virtual (alias) IP with the IP of the storage device. I wanted to point out that I can already ping the storage device on their LAN. I just can't mount it and get RPC errors.

            V 1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              But you're not really pinging that NFS server, are you? You're pinging pfSense which is pretending to be that IP address. That's what a Virtual IP - IP Alias is. I explained all this in my first post.

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

                @lewis said in Allow LAN to LAN, not routing:

                I had added a virtual (alias) IP with the IP of the storage device. I wanted to point out that I can already ping the storage device on their LAN.

                The ping will not reach the device in the other network if the destination IP is on your own router!

                Edit: Okay, KOM has the same idea and was faster. ☺

                1 Reply Last reply Reply Quote 0
                • L
                  lewis
                  last edited by

                  Please guys, I appreciate the help, don't get impatient with me. I know you explained but this is not my network to break so am counting on you guys to help me do the right thing.

                  It makes sense that I can ping the IP if I added it on the local router. I had not thought about that.

                  Changing to hybrid won't break anything that is running now? I mean, will it require a reboot or something? Pfsense is always highly reliable and never need to reboot it but I'm asking since we are changing a 'mode'.

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

                    Changing the outbound NAT mode from automatic to hybrid does nothing. The automatically added rules are still in place and you're able to add manual rules.

                    1 Reply Last reply Reply Quote 0
                    • L
                      lewis
                      last edited by

                      NAT > outbound. Switch into the hybrid mode

                      Done.

                      save and add a new rule:
                      interface: LAN2

                      The above is not clear to me. I've not create d a new interface and don't see one. I only see the usual WAN and LAN in Interface so I'm missing something before I can add rules next.

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

                        So the neighbours LAN is really not on an separate interface? It's connected directly to your LAN as John assumed?

                        1 Reply Last reply Reply Quote 0
                        • L
                          lewis
                          last edited by lewis

                          The pfsense box has two interfaces only, WAN and LAN.
                          Our LAN subnet is 10.0.0.1/24.
                          On the LAN side, there are many other segments and I need to connect to a neighbors LAN and a storage device at 10.100.100.12.
                          They too route their own 10.100.100.1/24 subnet, have their own DHCP service, etc so I don't want to break anything on either subnet.

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

                            As John mentioned above: That is never a good way to do anything.

                            However, you can give it a try.
                            At first your pfSense need an IP in the neighbours subnet. (IP Alias). Ensure to set the correct mask.
                            After you have added this you can select it at translation address in the outbound NAT rule.
                            At network select this one the NFS storage is connected to, guess LAN.

                            1 Reply Last reply Reply Quote 0
                            • L
                              lewis
                              last edited by

                              Well, it's why I asked in the forums, because I don't want to do this in the wrong way :). So, what way should I do it or should I explain a bit more about what I am trying to accomplish?

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

                                As we already mentioned 15 posts ago, the correct way is to set up an separate transit network where you connect pfSense and the NFS to. This may also be a VLAN, so that there is no further hardware needed.

                                However, even with that you will need either a static route on the NFS storage or the Outbound NAT rule.

                                1 Reply Last reply Reply Quote 0
                                • L
                                  lewis
                                  last edited by lewis

                                  15 posts ago was different than what I just added about there being only two interfaces. I already explained this is beyond my level of knowledge with pfsense and you keep telling me it's simple, do this, do that but I've never done it before so cannot follow such advise.

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    lewis
                                    last edited by lewis

                                    It sounds like it's easy but it's not something I've ever had to deal with. At most, I've had to set up multiple WAN interfaces and route those which wasn't very hard but this is something different since I don't own that network yet it's on the same LAN as many other private subnets are so I don't want to break anything on our or anyone else's subnet.

                                    Could someone please explain the steps, one by one. Once I see how this works, it will be another thing I've learned and will not have to ask about. Right now, there were a lot of replies and clarification so I really don't know what do do next.

                                    1 Reply Last reply Reply Quote 0
                                    • L
                                      lewis
                                      last edited by

                                      So, can someone please give me the steps?

                                      1 Reply Last reply Reply Quote 0
                                      • DerelictD
                                        Derelict LAYER 8 Netgate @lewis
                                        last edited by

                                        @lewis said in Allow LAN to LAN, not routing:

                                        Yes, our traffic is allowed, it's me that is not sure what to do on our end as I don't want to break something.

                                        I already explained this is beyond my level of knowledge with pfsense and you keep telling me it's simple, do this, do that but I've never done it before so cannot follow such advise.

                                        Could someone please explain the steps, one by one.

                                        So, can someone please give me the steps?

                                        Please don't be offended, but it really sounds like you need to hire someone who knows what they're doing.

                                        Chattanooga, Tennessee, USA
                                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                                        1 Reply Last reply Reply Quote 0
                                        • L
                                          lewis
                                          last edited by lewis

                                          That's not very nice. I already explained that this kind of setup is new to me. I've been using pfsense for many years but I simply cannot mess this up since it's not my network to practice or learn on.

                                          What's the point of a 'community' helping each other when they only help those who already know how.

                                          1 Reply Last reply Reply Quote 0
                                          • DerelictD
                                            Derelict LAYER 8 Netgate
                                            last edited by

                                            Thing is, you have been told several times what steps are necessary. You are asking someone to spend at least a good part of an hour outlining the steps one by one for you.

                                            Why should someone do that and not be compensated?

                                            There is a difference between asking a question and demanding someone be your personal, uncompensated, consultant.

                                            That is why you do not yet have a list of exact steps to take.

                                            Chattanooga, Tennessee, USA
                                            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                            Do Not Chat For Help! NO_WAN_EGRESS(TM)

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