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

    DCHP not sending router/gateway to endpoint after fresh install

    Scheduled Pinned Locked Moved DHCP and DNS
    27 Posts 5 Posters 2.8k Views 5 Watching
    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.
    • H Offline
      hispeed @Derelict
      last edited by

      @derelict

      Yes I captured it but I send it to you via private message because it contains the domains. This capture is from the pfsense interface without the gateway filled out.

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

        @hispeed What does "Without the gateway filled out" mean? There is not a gateway set on the interface configuration itself?

        A gateway should only be set on "WAN" or "Outside" interfaces. Are you saying the capture is on the "LAN" or "Inside" interface?

        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)

        W H 2 Replies Last reply Reply Quote 0
        • W Offline
          wildfrog @Derelict
          last edited by

          @derelict In line with my response to @jimp a couple days ago. . .are you saying that if the WAN gets no gateway information - either from DHCP or configured manually - that pfSense will not pass along internal gateway/router information to endpoints on the LAN (as pictured in the image in my OP)?

          1 Reply Last reply Reply Quote 0
          • H Offline
            hispeed @Derelict
            last edited by hispeed

            @derelict

            "Without the gateway filled out" -> This means I did not add 192.168.100.1 into the Gateway field in the DHCP Server on the LAN interface (other options). This means this field was empty.

            08076b80-9ada-4db7-aebf-017da2d14b5b-image.png

            Interface Lan it was always like this ( I never changed it for any test):

            35e14c45-c5a4-4ce9-a1bd-c7b22b2ba1f7-image.png

            The capture was made on the pfsense with interfance "LAN". I disconected the VM and reconected it.

            Info: IPv6 was deactivated I just activated for tests with IPv6.

            H DerelictD 2 Replies Last reply Reply Quote 0
            • H Offline
              hispeed @hispeed
              last edited by

              @wildfrog

              I don't know if I recieve from this provider a gateway on the WAN interface. This is possible because my provider is special (Swisscom - Switzerland).
              I also have to set DHCP Option 60 with VLAN 10 to recieve an IP address.

              ed08e6d5-a93c-4068-a0e2-d7cf7e579e94-image.png

              DerelictD 2 Replies Last reply Reply Quote 0
              • DerelictD Offline
                Derelict LAYER 8 Netgate @hispeed
                last edited by

                @hispeed Personally, I would leave IPv6 alone until you get IPv4 working but that might just be me.

                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)

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

                  @hispeed You don't have an IPv4 gateway there.

                  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
                  • H Offline
                    hispeed @Derelict
                    last edited by

                    @derelict

                    IPv4 is working fine when i add the pfsense gateway in the dhcp server on every interface.
                    a4a74fb0-41f2-4ef5-a10f-f083b8b7d91d-image.png

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

                      @hispeed I would specifically set a gateway to be sent by the DHCP server on the 192.168.100.1 interface (set 192.168.100.1 there) and see if that corrects the inside DHCP. Then I would work on why you are not getting a gateway from the upstream DHCP server at the ISP.

                      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
                      • DerelictD Offline
                        Derelict LAYER 8 Netgate @hispeed
                        last edited by

                        @hispeed Did you mess about with anything here on the ISP interface?

                        0b3ff8ca-a216-4bad-8fa7-4bb35341fcc4-image.png

                        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)

                        H 1 Reply Last reply Reply Quote 0
                        • H Offline
                          hispeed @Derelict
                          last edited by

                          @derelict

                          Yes we have to use "Configuration Override" and add there:

                          interface "{interface}" {
                          send dhcp-class-identifier "100008,0001,,pfsense";
                          }

                          The whole set up took me around 100h with testing and setting up, so its made with love and they do everything you will never use a pfsense or any other router which is not from them.
                          Nobody knows why and it would be better for Switzerland if you teach Swisscom how they need to set up the network. Make and keep it simple. This is also the reason why will go offline in the future and nobody can fix it :D.

                          A friend will ask a friend tomorrow from the networking core team maybe I get an answer.

                          1 Reply Last reply Reply Quote 0
                          • W Offline
                            wildfrog @jimp
                            last edited by wildfrog

                            @jimp & @Derelict

                            Since my OP, I've purchased a Netgate 4100.

                            On first boot. . .with only an endpoint plugged into LAN1. . .the macOS endpoint (Mac Mini) gets a DHCP-issued IP of 192.168.1.100 - and the Router/Gateway info is blank just like the image in the OP. It's exactly the same behavior as with the Protectli device in the OP. So it doesn't seem like it's the Protectli device.

                            Unplugged the Mac Mini and plugged in a MacBook Air via a USB-C adapter. Exactly the same result as above.

                            Unplugged the MacBook Air and plugged in a Windows 10 Pro desktop. Running ipconfig from the command prompt - for Default Gateway it gives me an IPv6 address and not an IPv4 address.

                            To clarify, this is a first-boot experience. No configuration at all.
                            Is this now expected behavior? Because this has never been my experience until v2.5.2.

                            luckman212L 1 Reply Last reply Reply Quote 1
                            • luckman212L Offline
                              luckman212 LAYER 8 @wildfrog
                              last edited by

                              Interesting thread. I just tested on my 6100 running 22.05 snaps and traced the DHCP conversation with Wireshark. Definitely receiving opt 3 here. But this is a unit that's been through years of upgrades. Not a fresh install. I don't have time to pave and test right now but I have a new install scheduled in a couple of days with a 4100 and I'll be testing this for sure.

                              fbcfc809-641f-4897-ba43-5d97c4327d62-CleanShot 2022-05-10 at 17.42.46.png

                              W 1 Reply Last reply Reply Quote 0
                              • W Offline
                                wildfrog @luckman212
                                last edited by

                                @luckman212
                                When you get your 4100, I'd love to see what your Mac's network preferences show you on first boot.

                                With 2.5 and prior, first boot - with no WAN connected - always gave the Mac a local IP, subnet, & router. And after 2.5 it seems that there's no router info passed to macOS - at least not via IPv4. So it seems that something changed after v2.5.

                                This just-arrived 4100 is the only pfSense+ device I have on hand, so not really able to directly compare CE builds to pfSense+.

                                W 1 Reply Last reply Reply Quote 1
                                • W Offline
                                  wildfrog @wildfrog
                                  last edited by

                                  Update. After running the setup wizard and setting the WAN interface information, upon reboot it fills in the IP, subnet, and router information on the macOS endpoint as expected.

                                  It seems that for v2.5 and prior, it wasn't necessary to configure the WAN for it to pass IPv4 router/gateway over the LAN via DHCP. It just showed up on first boot with no configuration. Then after 2.5 it seems to have changed.

                                  Hmmmm.

                                  1 Reply Last reply Reply Quote 0
                                  • jimpJ Offline
                                    jimp Rebel Alliance Developer Netgate
                                    last edited by

                                    I took a VM and wiped it and put 2.6.0 on and didn't touch the GUI at all. First boot I used the console to look at dhcpd.conf and it has the gateway in there. Used an Ubuntu client and it pulled an IP address including the proper gateway and it can get out.

                                    Tracing through the code the only way I can see it omitting the gateway on a fresh installation is if the firewall doesn't have any knowledge of its own upstream gateway.

                                    If the upstream DHCP server does not send an IPv4 gateway, or if the WAN is down and has no gateway on it, pfSense thinks it's an endpoint and not a router, since that's the information it's been given.

                                    The potential bug here is that it still defines an IPv6 gateway here when it maybe shouldn't.

                                    IIRC this is the issue that resulted in that change in behavior:
                                    https://redmine.pfsense.org/issues/5135

                                    If you manually define the gateway in DHCP or if you edit/save the gateway entry while it exists so it persists in the configuration then it will keep handing out a gateway even when the upstream doesn't send one.

                                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                    Need help fast? Netgate Global Support!

                                    Do not Chat/PM for help!

                                    W 1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      wildfrog @jimp
                                      last edited by

                                      @jimp Thanks. That makes sense. Just seems that it was a change for versions after 2.5. Now I know it's expected behavior going forward and will get sorted when the device is configured.

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