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

    Problems with flaky internet and pfSense

    General pfSense Questions
    6
    38
    3.3k
    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.
    • Bob.DigB
      Bob.Dig LAYER 8
      last edited by Bob.Dig

      I have internet over cable and the connection is flaky, on some days more and on others less.
      When my ISP-Modem is in router-mode it will cope with that, as soon as the problem is over, the connection is up again. But when this box is in bridge-mode, so that there is no double-NAT on my side, the connection often stays down, for hours.
      When I come home I can go to the status-page of the WAN interface and press the release button of DHCP twice and the connections comes back.
      I already changed DHCP Client Configurations but it didn't helped much if any.

      Capture.JPG

      Is there something I can do in pfSense to get the connection back automatically? My ISP doesn't fix the bad connection and I can't change either.

      Thanks
      Bob

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        @Bob-Dig said in Problems with flaky internet and pfSense:

        When my ISP-Modem is in router-mode it will cope with that, as soon as the problem is over, the connection is up again. But when this box is in bridge-mode, so that there is now double-NAT on my side

        That's backwards. In bridge mode, your modem is just that - a bridge. No double-NAT. When your modem is acting as a router, THEN you're in a double-NAT situation.

        Strange that the DHCP timeout fix doesn't work for you. Perhaps do a packet capture on WAN when it's down to see what's going on.

        Bob.DigB 1 Reply Last reply Reply Quote 0
        • Bob.DigB
          Bob.Dig LAYER 8 @KOM
          last edited by Bob.Dig

          @KOM Thanks, there was a mistype on my side, corrected it. I am no network professional so packet capturing is not an option for me.

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            Capture is easy with pfSense (Diagnostics - Packet Capture), and we can help you read & decode the capture.

            1 Reply Last reply Reply Quote 0
            • Bob.DigB
              Bob.Dig LAYER 8
              last edited by Bob.Dig

              What I just noticed is that an incoming ICMP echo request (by the external Broadband Quality Monitor) continuously got answered by pfSense in that time where all the other machines had no internet. So how is this possible or related to the fact, that the connectivity to all the other machines only comes back when the DHCP of the internet connection is manually renewed. Any ideas?

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

                How is what possible for an IP to answer a ping? Do you enabled pfsense to answer pings on its wan? Out of the box it does not allow that btw.

                So lets say your dhcp lease didn't renew and you had IP address 1.2.3.4 (some public IP because your isp gateway is in bridge mode).

                Its quite possible someone else now has IP 1.2.3.4 and is answering the external monitors pings.. Doesn't mean you will work..

                We need some actual info to work with if you want help..

                When your internet stops working - what is the IP on pfsense wan.. Is pfsense showing the gateway up, ie it can pings its gateway.. say 1.2.3.3 ?

                When you renew/release/renew your wan dhcp lease - do you get a different IP?

                If your gateway is showing up, and can not get to internet from your clients.. Using pfsense diag, ping some IP - say 8.8.8.8 does that respond? Can pfsense resolve stuff.. On its diag page, trying looking up some website you have not been too, say www.cnn.com or something - does that resolve?

                Need something to work with here if you want help.

                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.7.2, 24.11

                Bob.DigB 1 Reply Last reply Reply Quote 0
                • Bob.DigB
                  Bob.Dig LAYER 8 @johnpoz
                  last edited by Bob.Dig

                  @johnpoz So IP stays the same and sure I enabled the ICMP echo request. It had not occurred(?) to me that pfsense by itself could have internet... So I will test the ping thing. And yes the gateway on the WAN-Interface would shown up.
                  Also my ISP is doing some sort of special CGC-NAT and pfSense is running in hyper-v...

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

                    So if your isp is doing CGnat - how is it you can ping your IP.. What IP are you pinging and from where? Your IP is public on pfsense or its rfc1918, if its public then its not CGnat, if its rfc1918 (10.x.x.x, 192.168.x.x, 172.16-31.x.x) then I find it unlikely that they are passing the pings on to you, etc.

                    When a carrier does CGnat - they are having multiple clients share a public IP.. They can not pass ping to all clients sharing that IP, etc. etc. While it is possible for them to port forward some ports to you.. This would have to be setup with the ISP, etc.

                    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.7.2, 24.11

                    Bob.DigB 1 Reply Last reply Reply Quote 0
                    • Bob.DigB
                      Bob.Dig LAYER 8 @johnpoz
                      last edited by Bob.Dig

                      @johnpoz Like I said before it is special. It looks like a NAT-IP, but at the same time it seems exposed, so I can open ports on my side etc. Don't ask me why they do it like that and I have some servers running like WP, Nextcloud etc.. ☺

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

                        Not saying your your lying or anything - but I am doubtful... What is more likely is your behind your isp devices nat.. And your pfsense is maybe set as dmz host?

                        What is the ping time to your "gateway" in pfsense?

                        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.7.2, 24.11

                        Bob.DigB 2 Replies Last reply Reply Quote 0
                        • Bob.DigB
                          Bob.Dig LAYER 8 @johnpoz
                          last edited by

                          @johnpoz No, but I am no network professional.

                          1 Reply Last reply Reply Quote 0
                          • Bob.DigB
                            Bob.Dig LAYER 8 @johnpoz
                            last edited by Bob.Dig

                            What is the ping time to your "gateway" in pfsense?

                            I am not sure what you mean by that but I will try to find out.

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

                              What does pfsense show for its response time to your gateway on the dashboard widget?

                              pingtimes.jpg

                              Who is the ISP exactly?

                              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.7.2, 24.11

                              Bob.DigB 1 Reply Last reply Reply Quote 0
                              • Bob.DigB
                                Bob.Dig LAYER 8 @johnpoz
                                last edited by Bob.Dig

                                @johnpoz Just added it:

                                 WAN_DHCP
                                100.65.191.254
                                	8.9ms 	2.0ms 	0.0%
                                

                                Telecolumbus in germany

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

                                  They are using 100.64/10 space - yes that is CGnat space..

                                  I still find odd that they would be doing 1:1 nat to some public IP - and passing all ports to you..

                                  But ok - when your clients are having a problem - does pfsense still have access to internet?

                                  But now we are getting some info, so we can understand your setup, and figure out what is going on.

                                  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.7.2, 24.11

                                  Bob.DigB 1 Reply Last reply Reply Quote 1
                                  • Bob.DigB
                                    Bob.Dig LAYER 8 @johnpoz
                                    last edited by

                                    @johnpoz I will test this next time it happens.

                                    1 Reply Last reply Reply Quote 0
                                    • bmeeksB
                                      bmeeks
                                      last edited by

                                      Depending on the specific model of cable modem you have, you may need to have pfSense "reject" DHCP lease offers from the internal IP of the cable modem.

                                      For example, I had a Motorola cable modem where 192.168.100.1 was the internal LAN-side IP of the cable modem. I used the modem in bridge mode so my external public IP for the modem was passed to my pfSense firewall. When the external cable signal went down and the modem went into a carrier search and retrain mode, it would seemingly switch out of bridge mode and offer my firewall WAN an IP address from the modem's internal 192.168.100.0/24 net block. My firewall's WAN interface would happily accept the new IP. However, once the external cable signal came back online and the modem switched to bridge mode again, my WAN would frequently be left holding onto that 192.168.100.x IP address and thus I had no Internet connectivity. I would have to manually "release the lease" and renew to pick back up the bridge mode public IP.

                                      You can prevent this by putting your cable modem's private LAN IP address in the Reject leases from box on the WAN interface settings page --

                                      WAN_DHCP_RejectIP.png

                                      Bob.DigB 1 Reply Last reply Reply Quote 1
                                      • Bob.DigB
                                        Bob.Dig LAYER 8 @bmeeks
                                        last edited by

                                        @bmeeks I already Block private networks and loopback addresses but if this is something different, I will happily try this. Thank you! 🖖

                                        bmeeksB 1 Reply Last reply Reply Quote 0
                                        • bmeeksB
                                          bmeeks @Bob.Dig
                                          last edited by

                                          @Bob-Dig said in Problems with flaky internet and pfSense:

                                          @bmeeks I already Block private networks and loopback addresses but if this is something different, I will happily try this. Thank you! 🖖

                                          Yes, this setting is different from that.

                                          Bob.DigB 1 Reply Last reply Reply Quote 1
                                          • Bob.DigB
                                            Bob.Dig LAYER 8 @bmeeks
                                            last edited by Bob.Dig

                                            @bmeeks It will not hurt anyway I guess. ☺

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