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

    Communicate Between LAN

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    10 Posts 5 Posters 1.8k 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.
    • I
      interkrome
      last edited by

      Hi,

      Here is my setup :
                                                              |–-----> LAN1
      ISP ----> DSL Router (192.168.0.1)  |--------> Printer (192.168.0.8 )
                                                              |--------> Pfsense (192.168.0.7) -------> LAN2

      How can i communicate (send a document for printing) without change the printer configuration from LAN2 and communicate LAN1 and LAN2 with 192.168.0.1 is the gateway for this setup.  Where can i configure these to happen in 2.2.5.

      By the way, my LAN2 is the new LAN and currently working perfectly with pfsense for internet both on wired and wifi client.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Your setup is totally and utterly broken. You have 4 networks on the same subnet. Get a clue.

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

          I am guessing some things about your setup:

          1. LAN1 is the network behind your DSL router and in front of your pfSense.
          2. pfSense WAN is 192.168.0.7
          3. pfSense LAN is "LAN2" and it must have some different subnet (maybe 192.168.1.1/24)

          The default outbound NAT in pfSense should NAT out anything from "LAN2" going out WAN to 192.168.0.0/24 (and to the internet). So if you tell a device in LAN2 to connect to the printer at 192.168.0.8 then it should forward out through pfSense WAN and be NATed so that the printer will see the connection as if it came from 192.168.0.7 - in theory that should make it all transparent and "just work".

          You will not be able to browse for the printer, because that only works when the printer and the client are on the same broadcast network.

          Give more details of how you want to connect, your network, what I have guessed wrong above…

          And why is the printer sitting in front of pfSense???

          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
          • I
            interkrome
            last edited by

            @phil.davis:

            I am guessing some things about your setup:

            1. LAN1 is the network behind your DSL router and in front of your pfSense.
            2. pfSense WAN is 192.168.0.7
            3. pfSense LAN is "LAN2" and it must have some different subnet (maybe 192.168.1.1/24)

            The default outbound NAT in pfSense should NAT out anything from "LAN2" going out WAN to 192.168.0.0/24 (and to the internet). So if you tell a device in LAN2 to connect to the printer at 192.168.0.8 then it should forward out through pfSense WAN and be NATed so that the printer will see the connection as if it came from 192.168.0.7 - in theory that should make it all transparent and "just work".

            You will not be able to browse for the printer, because that only works when the printer and the client are on the same broadcast network.

            You are right for 1 & 2. But for 3, LAN2 have same subnet as LAN1 & Printer. Is it possible to set the connection from LAN2 as it is comes from 192.168.0.7?

            @phil.davis:

            And why is the printer sitting in front of pfSense???

            Because LAN2 is a new setup which i can't move pfsense to be next after DSL Router

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              @interkrome:

              LAN2 have same subnet as LAN1 & Printer.

              Which is completely and utterly broken. Once again, get a clue.

              1 Reply Last reply Reply Quote 0
              • I
                interkrome
                last edited by

                @doktornotor:

                Your setup is totally and utterly broken. You have 4 networks on the same subnet. Get a clue.

                So there is nothing i can do even at DSL Router or pfsense? Anything that can send traffic from LAN2 as 192.168.0.7. Anyway my pfsense is on physical installation.

                1 Reply Last reply Reply Quote 0
                • Y
                  yarick123
                  last edited by

                  The same LAN IP address cannot be used for two different IP networks, which should directly communicate each other (in this case -  your pfSense internal and your pfSense external networks). IP packets cannot be routed between these networks on the IP layer.

                  Think about the following situation: your pfSense has a packet for an IP address from your LAN. How pfSense should make a choice, which network interface to use to send it?

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

                    The WAN and LAN of pfSense must have different subnets. (or else you want it just to be a transparent firewall or…?)
                    What are you trying to achieve putting pfSense like this?

                    You can put the printer and any other devices into LAN2 behind pfSense. Then the front network is just a connection between pfSense WAN and DSL router. You can give that some other subnet. Or you can put DSL router into bridged mode and let the ISP-allocated IP address come right through to pfSense WAN.

                    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
                    • S
                      Snailkhan
                      last edited by

                      @doktornotor:

                      Your setup is totally and utterly broken. You have 4 networks on the same subnet. Get a clue.

                      its broadcast multi access  8)

                      1 Reply Last reply Reply Quote 0
                      • I
                        interkrome
                        last edited by

                        @phil.davis:

                        The WAN and LAN of pfSense must have different subnets. (or else you want it just to be a transparent firewall or…?)
                        What are you trying to achieve putting pfSense like this?

                        You can put the printer and any other devices into LAN2 behind pfSense. Then the front network is just a connection between pfSense WAN and DSL router. You can give that some other subnet. Or you can put DSL router into bridged mode and let the ISP-allocated IP address come right through to pfSense WAN.

                        Noted. Thank you guys!

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