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

    WAN and LAN same IP range

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    20 Posts 6 Posters 12.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.
    • ?
      Guest
      last edited by

      WAN -> 192.168.0.2
      LAN -> 192.168.0.3

      This is the same net and inside of that no routing is required, its only layer2 based!

      I connected pfsense to modem/router through the LAN interface of it, as if it were a simple client!

      Internet –- ISP --- WAN Port of the Modem Router --- pfSense WAN Port

      There are two ways you could go.

      • Set the Router into the so called bridge mode that he is acting now only likes a dump modem!
      • Create a proper double NAT or router cascade you will loose 3% - 5% of the entire throughput

      Modem Router: (as real router)

      • net: 192.168.2.0/24
      • IP:  192.168.2.1/24 (of the router)
      • DHCP: off
      • DNS1: ISP or 8.8.4.4
      • DNS2: ISP or 8.8.8.8
      • if settings to realize it, the MAC Address of the WAN port of the pfSense box must get even the same
        IP address again, mostly in AVM Fritz!Box routers given.

      pfSense box:
      WAN:

      • WAN net: 192.168.2.0/24
      • WAN IP:  192.168.2.2/24 (static IP)
      • Gateway:  192.168.2.1/24
      • DNS1:      192.168.2.1/24
      • DNS1: empty

      LAN:

      • LAN net: 192.168.5.0/24
      • LAN Gateway: 192.168.5.1/24
      • Gateway: 192.168.2.2/24
      • DNS1: 192.168.2.2/24
      • DNS2: empty

      Client:

      • net 192.168.5.0/24
      • client IP static or via DHCP
      • Gateway:192.168.5.1/24
      • DNS1: 192.168.5.1/24
      • DHCP: off or on likes you want
      1 Reply Last reply Reply Quote 0
      • F
        Fabioo
        last edited by

        ok then at this point the question is: How do I create a wan?  ;D

        on my ispdevice i have
        new wan -> IP Encapsulation -> IP over ethernet
                                                        PPP over ethernet
                                                        pure bridge (no WAN IP)

        :o

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

          You don't have to create a new wan… WAN is used to express the port that is connected to the INTERNET your ISP...  The lan is the port connected to your network/pfsense wan..

          Without know this exact device your talking about, most likely you would set it to

          "pure bridge (no WAN IP)"

          This should hand off public IP connected to its lan side, ie pfsense wan..  Be that just dhcp or PPPoE sort of connection would depend on your isp.

          If you can not get your isp device to give pfsense wan a public IP, then you can work with double nat - you just need to understand that if you want to port forward on pfsense to boxes behind pfsense that you have to forward that traffic first on your isp device.  Or put pfsense wan IP into the dmz of that isp device..

          It would be better to only have 1 nat (pfsense) but if you can not its not the end of the world..

          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
          • ?
            Guest
            last edited by

            ok then at this point the question is: How do I create a wan?  ;D

            on my ispdevice i have

            What is your ISP router exactly?
            Name, Modell, Modellnumber please?

            This kind of set up is only for typing in from here to your device and it works for me
            with similar data and for years! Whats wrong with you?

            You don´t need to set up a new WAN port on the ISP router with the modem, because the modem Port
            is your WAN port.

            On the pfSense box the WAN port must be created not more and not less.

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

              @BlueKobold:

              • DNS1: ISP or 4.4.8.8
              • DNS2: ISP or 8.8.8.8

              May I suggest 8.8.4.4 instead of 4.4.8.8 ? :)

              1 Reply Last reply Reply Quote 0
              • F
                Fabioo
                last edited by

                @BlueKobold:

                WAN -> 192.168.0.2
                LAN -> 192.168.0.3

                This is the same net and inside of that no routing is required, its only layer2 based!

                I connected pfsense to modem/router through the LAN interface of it, as if it were a simple client!

                Internet –- ISP --- WAN Port of the Modem Router --- pfSense WAN Port

                There are two ways you could go.

                • Set the Router into the so called bridge mode that he is acting now only likes a dump modem!
                • Create a proper double NAT or router cascade you will loose 3% - 5% of the entire throughput

                Modem Router: (as real router)

                • net: 192.168.2.0/24
                • IP:  192.168.2.1/24 (of the router)
                • DHCP: off
                • DNS1: ISP or 4.4.8.8
                • DNS2: ISP or 8.8.8.8
                • if settings to realize it, the MAC Address of the WAN port of the pfSense box must get even the same
                  IP address again, mostly in AVM Fritz!Box routers given.

                pfSense box:
                WAN:

                • WAN net: 192.168.2.0/24
                • WAN IP:  192.168.2.2/24 (static IP)
                • Gateway:  192.168.2.1/24
                • DNS1:      192.168.2.1/24
                • DNS1: empty

                LAN:

                • LAN net: 192.168.5.0/24
                • LAN Gateway: 192.168.5.1/24
                • Gateway: 192.168.2.2/24
                • DNS1: 192.168.2.2/24
                • DNS2: empty

                Client:

                • net 192.168.5.0/24
                • client IP static or via DHCP
                • Gateway:192.168.5.1/24
                • DNS1: 192.168.5.1/24
                • DHCP: off or on likes you want

                This is the configuration I have now. so we use pfsense it as a client. No?

                My isp device is ADB DV2200    It is a VDSL2 Fastweb modem.

                1 Reply Last reply Reply Quote 0
                • R
                  robi
                  last edited by

                  Here's how to obtain "pure bridge" setup:
                  http://www.hwupgrade.it/forum/showpost.php?p=41072511&postcount=30

                  First, make a backup config, and also disable WiFi on the ISP device.
                  I would also check for the latest firmware available before proceeding.

                  1 Reply Last reply Reply Quote 0
                  • ?
                    Guest
                    last edited by

                    This is the configuration I have now.

                    As shown under the first picture where you you were writing "Test",  should be a LAN interface in my eyes.

                    My isp device is ADB DV2200    It is a VDSL2 Fastweb modem.

                    It is a router and not only a modem!

                    May I suggest 8.8.4.4 instead of 4.4.8.8 ?

                    This was a typo, solved!

                    so we use pfsense it as a client. No?

                    Yes, as a LAN client according your headline of this forum thread "WAN and LAN same IP range".
                    You where creating a double NAT solution, also called bastion host or router cascade and this is
                    also running for me since years, like this: Internet –- ISP --- Router --- Firewall --- LAN clients
                    But you are using routing instead of the bridging! So you can easily compare the problems against
                    and I prefer more the routing.

                    Routing: (double NAT)

                    • You will loose perhaps 3% - 5% of the entire throughput

                    Bridging:

                    • port flapping
                    • packet loss
                    • packets drops
                    • unstable connection

                    Here's how to obtain "pure bridge" setup:

                    Route if you can, and bridge only if you must.

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

                      "Route if you can, and bridge only if you must."

                      Let me get this right your suggesting that double nat is better than public IP on pfsense directly??

                      And that if he bridges this device so pfsense gets a public IP - it would/could cause these sorts of issues??

                      Bridging:

                      • port flapping
                      • packet loss
                      • packets drops
                      • unstable connection

                      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
                      • ?
                        Guest
                        last edited by

                        "Route if you can, and bridge only if you must."

                        Let me get this right your suggesting that double nat is better than public IP on pfsense directly??

                        No you did not understand it full as I read it right here! If the whole device will be "bridged" to act
                        only as a pure modem, would be a good idea, but only bridging the port as I was reading it above
                        isn´t a good idea.

                        And that if he bridges this device so pfsense gets a public IP - it would/could cause these sorts of issues??

                        Bridging:

                        • port flapping
                        • packet loss
                        • packets drops
                        • unstable connection

                        Not the whole device, that this router is acting as a pure modem, but only the port because he was
                        asking for "being a client of the router". Bridging only one LAN port to the WAN port of the pfSnese
                        will cause earlier or later this failings.

                        1 Reply Last reply Reply Quote 0
                        • F
                          Fabioo
                          last edited by

                          Hi,

                          I created the wan on pfsense, thanks to the guide linked by roby.

                          It works fine, but unfortunately I can't go beyond 20 mbps (i have 100 mbps connection) the CPU load does not exceed 25%

                          while with the "bastion host" configuration I could use it all  :(

                          PS:  PC Engines ALIX 2D3

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