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

    WAN connection dropping intermittently

    Scheduled Pinned Locked Moved General pfSense Questions
    22 Posts 3 Posters 1.7k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      I would try to run a packet capture on WAN when it's showing as down and make sure the monitoring pings are actually being sent.

      A 1 Reply Last reply Reply Quote 0
      • A
        alexnovice @stephenw10
        last edited by

        @stephenw10

        Hi Stephen,

        As you suggested, I ran a packet capture on the WAN interface (not in promiscuous mode) on the ICMP protocol. It looks like this when the WAN goes down:

        de90330d-039b-44fd-b81c-6ea61c14675a-image.png

        It seems the packets are sent, but with no response. I also noticed that for some reason it starts pinging a different IP after some time. Not just 8.8.8.8, which is the monitoring IP for dpinger, but also an IP that whois claims belongs to Apple?

        I also looked a bit more at the logs for when the Gateway is said to be down,. It seems there are intervals of exactly 20 minutes (or multiples of 20 minutes) if that could signify something:

        6f315455-38b0-4a5e-9162-7f5dd8a609e9-image.png

        Thanks!

        Alex

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          20 mins sounds like an ARP issue. Check the actual pcap file or change the view type and make sure the MAC address it's sending those to doesn't change.

          Those other pings could be from something on the LAN. In a WAN pcap they will have been translated to the WAN address.

          The curious thing here is that as I understood it you said that during the outage LAN side clients could still ping 8.8.8.8. Anything upstream should see those identically to the pings from dpinger.
          Is that correct?

          One possibility is that you have one the inconvenient ISPs that seem to forget your MAC address! We have seen a few users hit that and workaround it be setting a lower ARP timeout. However that breaks all traffic.

          A 1 Reply Last reply Reply Quote 0
          • A
            alexnovice @stephenw10
            last edited by

            @stephenw10 said in WAN connection dropping intermittently:

            20 mins sounds like an ARP issue. Check the actual pcap file or change the view type and make sure the MAC address it's sending those to doesn't change.

            The destination MAC address remains unchanged before, during and after the connection drops.

            @stephenw10 said in WAN connection dropping intermittently:

            The curious thing here is that as I understood it you said that during the outage LAN side clients could still ping 8.8.8.8. Anything upstream should see those identically to the pings from dpinger.
            Is that correct?

            No, when dpinger can't get out, neither can upstream clients. However, other devices placed on the WAN side work.

            @stephenw10 said in WAN connection dropping intermittently:

            One possibility is that you have one the inconvenient ISPs that seem to forget your MAC address! We have seen a few users hit that and workaround it be setting a lower ARP timeout. However that breaks all traffic.

            It's a relatively small ISP and they've been pretty responsive - I could try asking them if I only knew what to ask :) But wouldn't that behaviour from the IPS have the same impact on other devices connected in place of pfsense?

            GertjanG 1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Effectively the ISP gateway device loses your WAN from it's ARP table and it doesn't ARP for it. Instead it waits until pfSense renews it's ARP entry for the gateway.

              Try setting: sysctl net.link.ether.inet.max_age=300

              That is 1200s by default, 20mins. If that seems to prevent it that confirms it's an ARP issue somewhere.

              A 2 Replies Last reply Reply Quote 0
              • A
                alexnovice @stephenw10
                last edited by

                Thanks Stephen!

                I've made that update - will revert back either if it continues dropping or in ~24 hours when it definitely would have without this change.

                1 Reply Last reply Reply Quote 1
                • GertjanG
                  Gertjan @alexnovice
                  last edited by

                  @alexnovice

                  Is this your WAN IP :

                  ec766396-a984-4fa6-abf1-fc542e0aff4a-image.png

                  ?
                  I thought it was a RFC1918 IP.
                  Using a switch on the WAN side, and pfSense gets this 194.x.x.192 as a WAN IP, then what IP was used by the PC hooked up also to that switch ? How did this PC obtain a 'LAN' IP ?

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

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    alexnovice @Gertjan
                    last edited by

                    @Gertjan

                    That is indeed the WAN IP.

                    The gateway is on the same subnet (just ending in 3 instead of 192). For the laptop on the WAN side I just grabbed another IP in the same subnet (it's a static IP setup so no DHCP), hoping they hadn't locked it down (which it turns out they hadn't).

                    Like I wrote a couple of responses above, it's a small ISP :-)

                    Cheers!

                    Alex

                    GertjanG 1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan @alexnovice
                      last edited by

                      @alexnovice

                      Ok, great, but the IP you auto assigned yourself could be assigned to some one else.
                      ( and now 'ARP' gets confused, and the other person could experience WAN IP outages ... ^^)

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

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        alexnovice @Gertjan
                        last edited by

                        @Gertjan

                        True, so I stopped doing that as soon as I had results from the test :-)

                        That said, there are only a few (<5) other users on this subnet (which seems accurate when I stare at ARP broadcasts), since almost all apartments have their home networks managed directly by the ISP (sitting behind their firewall and gateway), whereas I'm bypassing that.

                        1 Reply Last reply Reply Quote 0
                        • A
                          alexnovice @stephenw10
                          last edited by

                          @stephenw10

                          It's been 24 hours and the network has been stable throughout. Incredibly happy and super grateful for you help Stephen and Gertjan.

                          Thank you!

                          Alex

                          1 Reply Last reply Reply Quote 1
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            Nice! That does imply some ARP issue. You shouldn't really have to do that. But if you do keep that in place you should add it as a system Tunable:

                            https://docs.netgate.com/pfsense/en/latest/config/advanced-tunables.html

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