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

    Gateway monitor down

    Scheduled Pinned Locked Moved General pfSense Questions
    83 Posts 5 Posters 16.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

      Not really. Is anything logged?

      Do you see the same loss if you choose a different IP?

      If you use the ISP gateway IP directly?

      Steve

      K 1 Reply Last reply Reply Quote 0
      • K
        kevindd992002 @stephenw10
        last edited by

        @stephenw10 said in Gateway monitor down:

        Not really. Is anything logged?

        Do you see the same loss if you choose a different IP?

        If you use the ISP gateway IP directly?

        Steve

        Yes, so far I tried 8.8.8.8, 8.8.4.4, 1.1.1.1, and my ISP gateway IP. It's less prevalent on the ISP gateway IP but it still fluctuates. With my past ISP, here's how it looks with 8.8.4.4:

        518befab-cb4b-4d2a-b24c-bd570dc469af-image.png

        You can just see the difference with the graph in my original post.

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

          Mmm, that sounds like an actual WAN issue. Especially since it hit's your VoIP too and that's not going through pfSense as I understand it.

          Steve

          K 1 Reply Last reply Reply Quote 0
          • K
            kevindd992002 @stephenw10
            last edited by

            @stephenw10 said in Gateway monitor down:

            Mmm, that sounds like an actual WAN issue. Especially since it hit's your VoIP too and that's not going through pfSense as I understand it.

            Steve

            Yeah, probably. What I noticed is that those peaks in the standard deviation are mostly consistent with a 14-15 mins interval which is kinda weird.

            For the DHCP lease issue, could this setting in the WAN interface potentially be what's causing the issue?

            c7ac2cee-08b1-4c72-97db-2eefb1189344-image.png

            I'm just thinking out loud as their DHCP server can be a private IP address.

            GertjanG stephenw10S 2 Replies Last reply Reply Quote 0
            • GertjanG
              Gertjan @kevindd992002
              last edited by

              @kevindd992002 said in Gateway monitor down:

              I'm just thinking out loud as their DHCP server can be a private IP address.

              "pcap"ing will tell you that.
              (during testing, remove that block rule on the WAN).

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

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

                @kevindd992002 said in Gateway monitor down:

                could this setting in the WAN interface potentially be what's causing the issue?

                No, that will only prevent incoming connections from a private IP on WAN. The DHCP client initiates the connections outbound.

                If it was exactly 15min or some other exact interval I'd be looking at some ARP problem perhaps. But I'm not seeing a pattern that matches that.

                Steve

                K 1 Reply Last reply Reply Quote 0
                • K
                  kevindd992002 @stephenw10
                  last edited by

                  @stephenw10 said in Gateway monitor down:

                  @kevindd992002 said in Gateway monitor down:

                  could this setting in the WAN interface potentially be what's causing the issue?

                  No, that will only prevent incoming connections from a private IP on WAN. The DHCP client initiates the connections outbound.

                  If it was exactly 15min or some other exact interval I'd be looking at some ARP problem perhaps. But I'm not seeing a pattern that matches that.

                  Steve

                  That's my exact hunch. I know dhclient from pfsense is the initiating the connection to the ISP DHCP server so it's got to be an outbound connection.

                  The ISP is still troubleshooting the issue from their end and even though I told them to not touch anything on my ONU about it being in "bridge" mode, they did. Surprise surprise. And now I'm currently at route mode where my pfsense WAN interface is getting a private IP from the ONU DHCP server (NAT).

                  What I notice is that I don't get the DHCP lease issue when on route mode. The problem now is that unbound as a resolver won't work. All it gives my clients are THROWAWAY/SERVFAIL results. When I turn it to a forwarder, it works. So there's got to be something with route mode that's hijacking DNS for some reason. I'm still pushing them to put back everything to bridge mode as that is very important for me and told them about the issue being potentially caused by the DHCP lease.

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

                    If they are hijacking DNS it would still fail in forwarding mode unless you're forwarding to their DNS servers perhaps. Or maybe you are disabling DNSSec in forwarding mode allowing them to.

                    K 1 Reply Last reply Reply Quote 0
                    • K
                      kevindd992002 @stephenw10
                      last edited by kevindd992002

                      @stephenw10

                      Or maybe they have famous DNS servers (like Google, Cloudfare, etc.) whitelisted or something? I tried disabling DNSSEC for both cases and it just doesn't work in resolver mode. Do you have any other ideas? What I know is that this happened exactly the same time they put my ONU in route mode.

                      Snippet of unbound logs:

                      Dec 3 21:41:55 	unbound 	6032 	[6032:0] info: control cmd: dump_infra
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: query response was THROWAWAY
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: reply from <.> 202.12.27.33#53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: response for . NS IN
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: error sending query to auth server 2001:500:1::53 port 53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: query response was THROWAWAY
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: reply from <.> 202.12.27.33#53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: response for . NS IN
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: error sending query to auth server 2001:500:2d::d port 53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: query response was THROWAWAY
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: reply from <.> 192.112.36.4#53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: response for . NS IN
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: error sending query to auth server 2001:503:c27::2:30 port 53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: query response was THROWAWAY
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: reply from <.> 199.9.14.201#53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: response for . NS IN
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: error sending query to auth server 2001:500:200::b port 53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: error sending query to auth server 2001:7fe::53 port 53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: query response was THROWAWAY
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: reply from <.> 198.97.190.53#53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: response for . NS IN
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: query response was THROWAWAY
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: reply from <.> 198.41.0.4#53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: response for . NS IN
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: error sending query to auth server 2001:503:c27::2:30 port 53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: query response was THROWAWAY
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: reply from <.> 192.36.148.17#53
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: response for . NS IN
                      Dec 3 21:41:54 	unbound 	6032 	[6032:3] info: error sending query to auth server 2001:500:2::c port 53 
                      
                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Mmm, well you seem to have to v6 servers configured that are not responding or you cannot reach so the first thing I would do is disable those.

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          kevindd992002 @stephenw10
                          last edited by kevindd992002

                          @stephenw10 said in Gateway monitor down:

                          Mmm, well you seem to have to v6 servers configured that are not responding or you cannot reach so the first thing I would do is disable those.

                          How do I disable those? I tried removing the IPv6 link-local in "Network Interfaces" of the DNS Resolver settings and nothing changed.

                          That screenshot above is when DNS Resolver is NOT FORWARDING. So not sure how to instruct unbound to not query ipv6 DNS servers.

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

                            Do you actually have a routable IPv6 address on that firewall?

                            K 1 Reply Last reply Reply Quote 0
                            • K
                              kevindd992002 @stephenw10
                              last edited by

                              @stephenw10 said in Gateway monitor down:

                              Do you actually have a routable IPv6 address on that firewall?

                              I don't. I even have ipv6 disabled:

                              3659f722-4306-4e6f-86b0-9386e75145ad-image.png

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

                                Checking that box allows IPv6. But it doesn't matter. Unbound is trying to reach an external c6 server and obviously cannot if you don't have a public v6 IP it can use.

                                That in itself should not be an issue as long as it's not only using IPv6 servers, which it isn't.

                                Steve

                                K 1 Reply Last reply Reply Quote 0
                                • K
                                  kevindd992002 @stephenw10
                                  last edited by

                                  @stephenw10 said in Gateway monitor down:

                                  Checking that box allows IPv6. But it doesn't matter. Unbound is trying to reach an external c6 server and obviously cannot if you don't have a public v6 IP it can use.

                                  That in itself should not be an issue as long as it's not only using IPv6 servers, which it isn't.

                                  Steve

                                  Oops, you're right. I had this unchecked before but checked it just recently. Correct, it shouldn't be an issue since it still tries ipv4. That's why I think all DNS queries from unbound are being blocked somehow. As to how the ISP detects this type of traffic vs when just forwarding to a few DNS servers is what I don't understand. And how when in bridge mode it all works just fine.

                                  At this day and age, is it recommended to just allow all ipv6? I know in Windows the official recommendation from MS is to not disable ipv6.

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

                                    Either enable it completely if your ISP supports it or disable it completely.

                                    The worst case is where you have some IPv6 but not actual connectivity and client try to use it over v4.

                                    Steve

                                    K 1 Reply Last reply Reply Quote 0
                                    • K
                                      kevindd992002 @stephenw10
                                      last edited by

                                      @stephenw10 said in Gateway monitor down:

                                      Either enable it completely if your ISP supports it or disable it completely.

                                      The worst case is where you have some IPv6 but not actual connectivity and client try to use it over v4.

                                      Steve

                                      I know my ISP supports it but I haven't gotten to setting it up yet because of the main issue I'm having. Do clients prefer v6 over v4 if they're both setup?

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

                                        Yes, most OSes will prefer v6 if the think they have a valid IP and that can introduce lengthy delays whilst it times out.

                                        K 1 Reply Last reply Reply Quote 0
                                        • K
                                          kevindd992002 @stephenw10
                                          last edited by kevindd992002

                                          @stephenw10 They put it back to bridge mode now and DNS resolving is working properly again. However, my DHCP lease issue is back. So to sum it all up:

                                          Bridge mode: no DNS resolving issue but DHCP lease issue is present
                                          Route mode: No DHCP lease issue but DNS resolving issue is present

                                          I need to be in bridge mode so that's where I'll focus my troubleshooting on. When my gateway went down, this is what I saw:

                                          https://pastebin.com/tP1wm3Uf

                                          However, a new IP was given to my WAN interface (gateway went up) after around 3 minutes of downtime. I'm seeing DHCPNAK's. What does that tell us? Also, why am I seeing frequent "renewal in 1800 seconds" messages? Does that mean the DHCP lease is just every 30 minutes?

                                          I also got a packet capture while this is a happening. Since that contains public IP addresses, do you want me to send it to you?

                                          GertjanG stephenw10S 2 Replies Last reply Reply Quote 0
                                          • K
                                            kevindd992002
                                            last edited by

                                            Could it be similar to this issue?

                                            https://forum.netgate.com/topic/112869/dhclient-on-wan-occasionally-fails-to-renew-lease-with-cable-isp

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