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

    Unable to connect between lan1 and lan2

    Scheduled Pinned Locked Moved General pfSense Questions
    80 Posts 5 Posters 7.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.
    • S
      sutha
      last edited by sutha

      Hi, my lan setup:

      Area 1: Lan1
      IP: 192.168.50.100/24
      GW: 192.168.50.1

      Area 2: Lan2
      IP: 192.168.60.50/24
      GW: 192.168.60.1

      I am able to ping all subnet areas within Area 1 from Area 1, and all subnet areas within Area 2 from Area 2.
      I can ping all networks (including those in Area 1 and Area 2) from the pfSense diagnostic page.

      I can ping www.google.com from either side. However, I am unable to ping from a PC in Area 1 to Area 2, or vice versa.
      I have switched off my firewalls for testing purposes only, and I have an 'any to any' rule enabled on both LANs.

      Am I missing anything, any suggestion welcome.

      V S 2 Replies Last reply Reply Quote 0
      • V
        viragomann @sutha
        last edited by

        @sutha
        Consider that your computers run a system firewall, which by default blocks access from outside of their local subnet.
        So you might have to allow access on the destination devices or disable its firewall.

        S 1 Reply Last reply Reply Quote 0
        • S
          sutha @viragomann
          last edited by sutha

          @viragomann Sorry for any misinterpretation. I have disabled the firewall on my Windows system.
          Firewall image below here:
          firewall.png

          johnpozJ 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @sutha
            last edited by

            @sutha Do all devices use pfSense as their gateway?

            Rules allow protocol * or ICMP not just TCP? (Picture?)

            https://docs.netgate.com/pfsense/en/latest/troubleshooting/connectivity.html#firewall-rules

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

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

              @sutha Policy routing can also be a reason for this.. Be nice to actually see your rules, screenshot. And do you have any rules in floating?

              If your forcing traffic out your wan or vpn via a policy route, then no you wouldn't actually be able to get to your other networks.

              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

              S 1 Reply Last reply Reply Quote 1
              • S
                sutha @SteveITS
                last edited by

                @SteveITS Hi Steve, for test pupose I have open the rule for any(source=any, destination=any)

                S 1 Reply Last reply Reply Quote 0
                • S
                  sutha @johnpoz
                  last edited by

                  @johnpoz Are you saying, I'm unable to communicate with my second lan when I have a vpn connection. I don't have any floating rule.

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

                    @sutha only if you are policy routing out it..

                    If your doing that, then you would have to create rules to allow to get to your other networks before you force it out the vpn gateway.

                    https://docs.netgate.com/pfsense/en/latest/multiwan/policy-route.html#bypassing-policy-routing

                    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

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sutha @johnpoz
                      last edited by

                      @johnpozYes, my policy is routing out. However, only certain IPs are affected, which are not included in the routing rule at all. Before activating this second LAN on my pfSense, I had a working site-to-site VPN. Now, with the addition of a second area, I aim to connect only specific computers to this network. Therefore, I equipped PCs with two network cards, one for connecting to Area 1 (192.168.50.0/24) and another for connecting to the other network (192.168.60.0/24). My LAN rule already allows any-to-any traffic, and I replicated this same rule for the newly created LAN2 as well.
                      However, I am able to connect from my pfSense web interface to both LAN and subnets, but not from a local PC.

                      S johnpozJ 2 Replies Last reply Reply Quote 0
                      • S
                        SteveITS Galactic Empire @sutha
                        last edited by

                        @sutha said in Unable to connect between lan1 and lan2:

                        @SteveITS Hi Steve, for test pupose I have open the rule for any(source=any, destination=any)

                        The protocol…show us a screen cap.

                        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                        Upvote 👍 helpful posts!

                        1 Reply Last reply Reply Quote 0
                        • S
                          SteveITS Galactic Empire @sutha
                          last edited by

                          @sutha

                          equipped PCs with two network cards, one for connecting to Area 1 (192.168.50.0/24) and another for connecting to the other network (192.168.60.0/24).

                          If a PC has two networks traffic for them would not go through pfSense, the gateway.

                          If that’s not the case they presumably don’t have two gateways and static routes so the reply is going out the wrong network.
                          https://docs.netgate.com/pfsense/en/latest/troubleshooting/asymmetric-routing.html

                          If you unplug the “other” network from a few so they each have one network does it work?

                          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                          Upvote 👍 helpful posts!

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

                            @sutha said in Unable to connect between lan1 and lan2:

                            herefore, I equipped PCs with two network cards, one for connecting to Area 1 (192.168.50.0/24) and another for connecting to the other network (192.168.60.0/24)

                            That is horrible solution.. And you have now created asymmetrical traffic flow..

                            And if "both" your devices have interfaces in both networks.. Why would the traffic even flow through pfsense.. The traffic would go out the interface connected to the network the IP is on.

                            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
                            • S
                              sutha @SteveITS
                              last edited by

                              @SteveITS
                              Lan1
                              lan1.png

                              Lan2
                              lan2.png

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                sutha @sutha
                                last edited by

                                @sutha They have to flow through pfsense, because they are connected on pfsense lan 1 and lan 2 port.

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

                                  @sutha said in Unable to connect between lan1 and lan2:

                                  They have to flow through pfsense, because they are connected on pfsense lan 1 and lan 2 port.

                                  That is NOT what you stated..

                                  I equipped PCs with two network cards, one for connecting to Area 1 (192.168.50.0/24) and another for connecting to the other network (192.168.60.0/24)

                                  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

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    sutha @johnpoz
                                    last edited by

                                    @johnpoz Yes, because of the gateway. I have mentioned above, I'm using 2 different gateway.

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

                                      @sutha said in Unable to connect between lan1 and lan2:

                                      I'm using 2 different gateway.

                                      Doesn't work that way..

                                      There is no reason to send traffic to a gateway if the IP is on the network your attached too..

                                      If I have an IP in network 192.168.50.0/24 and I want to talk to 192.168.50.X why would I send traffic to a gateway.. Gateways are for getting off a specific network.

                                      I would suggest you disable the 2nd interface on each machine... So you have machine A in only lan 1, and machine B only on lan 2..

                                      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

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        sutha @johnpoz
                                        last edited by

                                        @johnpoz You're right, but I'd like to go to the second lan which is 192.168.60.X.
                                        I don't know, if there's a way to communicate without the second card to this ip range. I'm happy to remove my card.

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

                                          @sutha That is what pfsense is there for - it is the router, it routes traffic between 192.168.50 and 192.168.60..

                                          nework.jpg

                                          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

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            sutha @johnpoz
                                            last edited by

                                            @johnpoz Yes, this what I want. After creation of lan2, I didn’t get any internet access and I couldn’t ping from pfsense web interface either but after I created an any rule. It was fine, only I’m unable to connect from local pc.

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