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

    LAN to LAN/OPT not working. What am I missing?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    12 Posts 4 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.
    • K
      Kanagram
      last edited by

      Hi all,

      I have three networks:
      LAN: 192.168.200.X/24
      WAN: 192.168.1.X (with a router that connects it to the internet in 192.168.1.1)
      LAN2: 10.0.0.X.X/16

      I've configured a gateway in WAN and, from LAN I can get to the Internet (by 192.168.1.1) with no problem (creating a gateway to 192.168.1.1 for WAN)

      From the pfsense box itself I can ping LAN and LAN2 addresses fine.

      But from LAN I can't ping LAN2 hosts. For instance, if from 192.168.200.10 I ping 10.0.0.1, I get a Request Timed Out. If I ping 10.0.0.1 from the pfsense box, it works.

      ->I'm not blocking private or bogus ranges on any interface.
      ->I have no static routing rules, but one default route that should do the trick:
      10.0.0.0/16 link#4 U 24609 1500 igb3

      -> I've firewall routes allowing any type of traffic on both interfaces with any source or destination (to try to avoid any firewalling problem).

      I don't know what is happening or what I'm doing wrong.... Any help, test or hint would be very welcomed!

      V johnpozJ 2 Replies Last reply Reply Quote 0
      • V
        viragomann @Kanagram
        last edited by

        @kanagram
        Two things to check here:

        Ensure the pfSense is the default gateway on all devices.

        Ensure that the destination devices firewalls don't block access from outside their own subnet.

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

          @kanagram such a problem screams what @viragomann has already mentioned. Either the device in your 10 network is not pointing to pfsense as its gateway.

          Or the device your trying to pings firewall isn't allowing you. Which is why it pings from pfsense, because pfsense is pinging from its 10 address.

          Windows out the box for example firewall will allow ping from local network, but some other network no.

          Adjust your firewall on the 10 device your trying to ping to allow the traffic you want from your 192.168.200 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.8, 24.11

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

            Thank you @viragomann and @johnpoz for your answers.

            SOLVED!

            For future colleagues with the same need:
            Based on forum help I understood that this was not a routing problem, as I can't change my LAN2 GWs, so I needed to use NAT.

            I've just switched mode to hybrid NAT, and created an outbound rule:
            Source:LAN1 destination: LAN2, leaving everything else by default.

            I've also double cheched the firewall rules to be fine.

            And now I can ping from one LAN to the other.

            Thank you.

            GertjanG V 2 Replies Last reply Reply Quote 0
            • GertjanG
              Gertjan @Kanagram
              last edited by

              @kanagram said in LAN to LAN/OPT not working. What am I missing?:

              as I can't change my LAN2 GWs, so I needed to use NAT.

              Wait .... Use NAT to ping from LAN to another LAN ? Then that s new.

              The gateway talk also makes me think.
              As you use a upstream ISP router using 192.168.1.1/24 on its LAN, you had to remaps the LAN network of pfSense as it use also 192.168.1.1/24 be default.
              ( I would have remapped the ISP router to 192.168.200.1/24 as it only has one client ;: pfSense )

              pfSense would be using the default DHCP client on its WAN interface.
              You wouldn't have to "touch" any "gateway" or "routing" setting - no where.

              Again : why would you even need to change anything on the NAT pages ?

              Mine are all default for yrears, and I can ping from any of my LAN interfaces any other LAN interface just fine.
              That is, if there are firewall rules on all LAN interfaces that permit / do not block ICMPv4.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

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

                @kanagram
                What you did here is masquerading and is a bad workaround.
                Don't recommend others to do this as well, please!

                This circumvents either that the firewall on the destination device blocks outside sources or that pfSense is not set as the default gateway.
                Both possible reasons were already mentioned here.

                K 1 Reply Last reply Reply Quote 0
                • K
                  Kanagram @Gertjan
                  last edited by

                  @gertjan In your configuration, everything in your LAN2 is using your pfsense box as its GW, so it can be solved with routing.

                  In my configuration, everything in my LAN2 is using another GW (not pfsense) and I can't change their GWs.

                  By enabling NAT, what I'm doing is basically managing the LAN2 as a WAN interface.

                  1 Reply Last reply Reply Quote 0
                  • K
                    Kanagram @viragomann
                    last edited by

                    @viragomann Happy to learn better approaches. Thank you for sharing your thoughts. What I have is this:
                    d295d35f-232c-4555-833f-245fd4a79237-image.png

                    What I want is basically creating an isolated LAN that is able to have internet access and also access LAN2 PCs (without changing their configuration), but for the opposite to not to happen. LAN2 machines should not see LAN machines unless I define to open some ports.

                    What alternatives would you recommend for this approach?

                    V johnpozJ 2 Replies Last reply Reply Quote 0
                    • V
                      viragomann @Kanagram
                      last edited by

                      @kanagram said in LAN to LAN/OPT not working. What am I missing?:

                      What I want is basically creating an isolated LAN that is able to have internet access and also access LAN2 PCs (without changing their configuration), but for the opposite to not to happen.

                      This part can be achieved with firewall rules.
                      The other part is the routing challenge.

                      If you don't care to see the origin source IP address on the LAN2 devices, masquerading can be a proper solution for your. But under the terms of security it's a bad one.

                      Your set up is not well designed for routing between LAN and LAN2, since both network segments uses different upstream routers.
                      In a proper set up both upstream routers are directly connected together by a separated transit network and both have a static route for the respective network segment behind the other router. So all traffic from both networks is passing both routers.
                      Don't know if this is possible with your LAN2 router.

                      If not the only way to avoid masquerading would be to add a static route for LAN pointing to pfSense to each LAN2 device.

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

                        @kanagram so you have 2 internet connections..

                        Why do you not just directly manage both of these internet connections on pfsense, and run whatever or how many networks behind pfsense that you want.

                        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.8, 24.11

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          Kanagram @johnpoz
                          last edited by

                          @johnpoz Thank you John. Because I can't change the LAN2 structure. It is not managed be me.

                          1 Reply Last reply Reply Quote 0
                          • K
                            Kanagram @viragomann
                            last edited by

                            @viragomann Thank you for your suggestions.

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