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

    PfSense looses connection every 28-30 days.

    Scheduled Pinned Locked Moved General pfSense Questions
    41 Posts 7 Posters 6.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.
    • J
      jacksnack2 @stephenw10
      last edited by

      @stephenw10 Bug #9267 does give me hope in a resolution.

      I will look into this.

      Thank You.

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

        That redmine does not seem to match. The packet capture is pretty clear. At least it seems pretty clear to me.

        Another test would be not rebooting anything and simply disconnecting the coax from the modem, letting it drop, and reconnecting it. That would eliminate any interface bounces unless the modem does one in that case.

        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
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Yes, you're right. In the case of that bug the client stops requesting a new lease but here it clearly continues. Ignore me! 🙄

          Steve

          1 Reply Last reply Reply Quote 0
          • J
            jacksnack2
            last edited by jacksnack2

            https://redmine.pfsense.org/issues/9267
            "...DHCP timeout occurs and the cached gateway address is not pingable. This results in a case where the cached IP is removed from the interface, but dhclient is informed via the exit status of 0 that the IP was added successfully. As a result, the impacted interface remains without an IPv4 address..."

            Seems plausible this is the issue.

            Why remove the cached IP?

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

              I have no doubt that might cause some people problems, but I don't see how it will make your modem stop responding to DHCPREQUEST/DHCPDISCOVER as it apparently does.

              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
              • K
                Kimberly3475
                last edited by Kimberly3475

                What is happening when those ARP resolve messages start? You showed the end, what about the beginning? Is the MTU showing anything strange on the interface when it is not working?

                dpinger is trying to ping the gateway address but it cannot because it is not receiving an ARP response for it on WAN. Then it miraculously does for some reason. ttrockstars

                If it were me I'd packet capture for ARP on WAN and see what is happening. I'd just set interface WAN protocol ARP and a packet count of 100000 or 1000000 and let it run. Then get the times of the start and end of the can't allocate llinfo logs and see what's happening there in wireshark.

                J 1 Reply Last reply Reply Quote 0
                • J
                  jacksnack2 @Kimberly3475
                  last edited by jacksnack2

                  @Kimberly3475 Thanks.

                  I will most likely start a packet capture in the next several weeks, as this is the time for the next event to occur.

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

                    I would run it on the command line and capture both DHCP and ARP.

                    Something like this should work:

                    1. Stop any running capture in the gui
                    2. SSH or console in
                    3. Menu option 8
                    4. nohup /usr/sbin/tcpdump -i eth0 -c 1000000 -s 0 -w /root/packetcapture.cap arp or port 67 &
                    5. exit

                    eth0 needs to be your WAN interface (em0, igb1, etc). You can get that interface name from Status > Interfaces.

                    You should be able to log out and the GUI should show the capture running there. Should be able to stop it and view it normally when the time comes.

                    You might want to start one, let it soak, and stop it to see how much ARP there is out there. It might be a lot and will vary due to the design at the ISP. You might want to up that count to 10000000.

                    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)

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jacksnack2
                      last edited by jacksnack2

                      @Derelict hello.

                      I am going to do exactly that, but may from a Linux box on the network via ssh.

                      I’ll post back when something comes up.

                      Thanks again for all the help.

                      1 Reply Last reply Reply Quote 0
                      • J
                        jacksnack2 @Derelict
                        last edited by

                        @Derelict Thanks again for the reply.

                        However I think there is error in you command:

                        what does '1.' represent?

                        I ran this via ssh without the '1.'

                        ARP captures are brutal...filling the logs. Already at 554684. Is there anyway to minimize the captures to something more specific?

                        Thanks.

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

                          Yeah that's a mistake. Corrected.

                          Not that I can think of. You can do a circular capture that keeps overwriting the older files but you can miss the event if you don't stop it soon enough after it happens. See if adding -p helps:

                          nohup /usr/sbin/tcpdump -i eth0 -p -c 1000000 -s 0 -w /root/packetcapture.cap arp or port 67 &

                          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
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.