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

    Approach to troubleshoot a very slow connection to a single website. - solved

    Scheduled Pinned Locked Moved Firewalling
    31 Posts 7 Posters 2.0k 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.
    • M
      mervincm @ikifar
      last edited by

      @ikifar I don’t think it’s the ISP because when I bypass the pfSense firewall by plugging the test PC directly to the ISP link (thus on a public IP address) the problem goes away.

      1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @Pippin
        last edited by

        @Pippin said in Approach to troubleshoot a very slow connection to a single website.:

        Try ticking "IP Do-Not-Fragment compatibility"

        I just looked that up in the docs and found this:

        "This option is a workaround for operating systems that generate fragmented packets with the don’t fragment (DF) bit set. Linux NFS (Network File System) is known to do this, as well as some VoIP systems.

        When this option is enabled, the firewall will not drop these malformed packets but instead clear the don’t fragment bit. The firewall will also randomize the IP identification field of outgoing packets to compensate for operating systems that set the DF bit but set a zero IP identification header field."

        Given an OS fragmenting before sending and setting the DNF is entirely normal, doesn't this reflect a bug with pfSense/FreeBSD? No router should be changing that flag.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • PippinP
          Pippin
          last edited by

          I don't know if it is a bug.
          It solved my problem described in the link so I just had a hunch:
          https://forum.netgate.com/topic/138124/posting-to-a-forum-issue/21

          I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
          Halton Arp

          1 Reply Last reply Reply Quote 0
          • M
            mervincm @ikifar
            last edited by

            @ikifar no double NAT, and dedicated hardware
            https://www.newegg.ca/gigabyte-ga-c1007un-d-mini-itx/p/N82E16813128598

            ikifarI 1 Reply Last reply Reply Quote 0
            • ikifarI
              ikifar @mervincm
              last edited by

              @mervincm Ok well I am able to visit the site here at home and I am running pfSense, I assume you don't have any caching so that can't be the issue. Maybe try the file system check to get to this in the pfsense console select the option to reboot (5) then select the option to do a filesystem check which should be F

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

                @mervincm said in Approach to troubleshoot a very slow connection to a single website.:

                (thus on a public IP address) the problem goes away.

                But this public ip address changes right... Do what @NogBadTheBad did and lets see what your browser says about the loading and where the problem is..

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

                M 1 Reply Last reply Reply Quote 0
                • M
                  mervincm @Pippin
                  last edited by

                  @Pippin thanks for the hint but it didn't make a difference.

                  1 Reply Last reply Reply Quote 0
                  • M
                    mervincm @johnpoz
                    last edited by mervincm

                    @johnpoz
                    I happen to have a mac so I pulled up safari - web inspector and I get a the same issue. It records for about 12 seconds and stops thinking the page is loaded, but it's a good minute at least from complete.
                    Screen Shot 2019-11-20 at 8.35.13 PM.png Screen Shot 2019-11-20 at 8.35.54 PM.png Screen Shot 2019-11-20 at 8.37.42 PM.png Screen Shot 2019-11-20 at 8.38.45 PM.png

                    ikifarI 1 Reply Last reply Reply Quote 0
                    • M
                      mervincm
                      last edited by

                      and here is what it looks like from the same system, but connected to LTE
                      Screen Shot 2019-11-20 at 8.46.44 PM.png

                      and directly to my ISP
                      Screen Shot 2019-11-20 at 8.56.07 PM.png

                      1 Reply Last reply Reply Quote 0
                      • ikifarI
                        ikifar @mervincm
                        last edited by

                        @mervincm Well do you have anything like squid that could be breaking https

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mervincm @ikifar
                          last edited by

                          @ikifar
                          the only packages I have installed are acme,bandwidthd,openvpn-client-export,RRD_Summary

                          I might have run snort on this install but that would have been a couple years back.

                          ikifarI 1 Reply Last reply Reply Quote 0
                          • ikifarI
                            ikifar @mervincm
                            last edited by

                            @mervincm so snort is definitely not on the system then

                            1 Reply Last reply Reply Quote 0
                            • ikifarI
                              ikifar @mervincm
                              last edited by

                              @mervincm does the website work as expected on the stable version of pfSense in your setup?

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mervincm @ikifar
                                last edited by

                                @ikifar I will try a fresh install on a spare HDD on the weekend if I can't get this going by then.

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  mervincm @mervincm
                                  last edited by

                                  @mervincm

                                  On a spare test system I installed stable version of pfsense, created a fresh xml backup on main system, restored it to the test system, and the issue was gone.

                                  Wondering if it was a stable 2.4 vs 2.5 issue, I then did an in-place update to the test system, taking it to 2.5 dev. The issue was still gone.

                                  I am not sure if it is a hardware issue, or just a currupt install, but the next step will be to blow away my install on the primary system, restore from backup, and see what happens.

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    mervincm @mervincm
                                    last edited by

                                    @mervincm
                                    Well it appears to be hardware specific. I reinstalled from scratch today's dev build on the primary system hw and without even restoring my config, the problem is there.

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

                                      Hardware makes no sense to be honest.. More likely you got a different connection from your isp, because when you changed to different system your mac address would be different and you would get a different IP.

                                      If it was hardware - why would it not be on like all sites.. Your just moving packets, pfsense doesn't even know what is the packets. It just moves them.. Pfsense doesn't know what site your talking to..

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

                                      M ikifarI 2 Replies Last reply Reply Quote 0
                                      • M
                                        mervincm @johnpoz
                                        last edited by

                                        @johnpoz None of this is really making any sense to me to be honest. You are correct I am getting a different public ip to one system and thus there will be somewhat different "connection"
                                        I can't imagine it would be significantly different but ...
                                        I suppose I can replace the mac in the working device with the mac from the problem device, get the same ip and see if the problem follows the mac.

                                        1 Reply Last reply Reply Quote 0
                                        • ikifarI
                                          ikifar @johnpoz
                                          last edited by

                                          @johnpoz Either that or possibly the reinstall of pfSense

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

                                            If something wrong with pfsense, why is it only presenting itself with this 1 site?

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

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