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

    pfSense using unreasonable amount of bandwidth while idle

    Scheduled Pinned Locked Moved General pfSense Questions
    106 Posts 9 Posters 20.9k 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.
    • C
      CyberMinion @Cool_Corona
      last edited by CyberMinion

      @Cool_Corona said in pfSense using unreasonable amount of bandwidth while idle:

      Using SSL/TLS encrypted DNS via 9.9.9.9??

      Disable it and use the local resolver and delete all DNS entries under general -> setup.

      Reboot.

      Let us know.

      DoH is currently disabled, but I did not clear the entries. I will try that soon, but as I just posted above, I also just cut Quad-9 out of the provider list. I don't want to try too many things at once. I'm also trying to get a clean pcap of the noise for johnpoz.

      Thanks for the tip!

      1 Reply Last reply Reply Quote 0
      • C
        CyberMinion
        last edited by

        So pfBlocker isn't supposed to be doing DNS lookups, as stated earlier. However, it occurs to me that the DNSBL entries can be filtered against to Alexa top sites...could this mechanic result in any DNS queries?

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

          So did turning of pfblocker stop the problem.. been a few days..

          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

          C 1 Reply Last reply Reply Quote 0
          • C
            CyberMinion @johnpoz
            last edited by CyberMinion

            @johnpoz
            I was still having this issue after flipping off the pfBlocker switch, but I did not reboot. I have rebooted the pfsense with pfBlocker disabled, and will monitor it to see how things go.

            1 Reply Last reply Reply Quote 0
            • C
              CyberMinion
              last edited by

              Yes, after a reboot with pfblocker off, I am still seeing this DNS rubbish going on.

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

                Well can tell you for sure that pfsense out of the box is not going to query "185.190.088.000" as a A query..

                You have something asking pfsense for that.. Or something running on pfsense doing dns query to loopback asking for that.

                Even if pfsense was asked to resolve an IP, say in the logs or something - it would do a PTR for it..

                Example... I enabled logging in unbound. So now I get all queries asked for logged..

                server:
                log-queries: yes
                

                I then go into say the firewall log and ask pfsense to tell me hey who is this IP hitting my server.

                by clicking the little "i" it then tries to resolve that.. Via a PTR query.. Not a A query for some name with that the IP as the name.. Also why and the F would be asking for what is clearly a bogon..

                What other things do you have installed on pfsense? Or what do you have doing queries to pfsense that your not seeing the query come in? A dns redirect setup would look like loopback is asking for the record.

                query.png

                The only thing pfsense itself would be asking for is hey I need to get the package list from netgate, hey lets check if there is a update, or hey I have a widget on the home page and need to pull the RSS feed, etc.

                Can tell you for sure if there was something in pfsense out of the box causing this traffic, or even something common... The forums would be blowing up with hey why is there 300K of traffic all the time...

                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

                C 1 Reply Last reply Reply Quote 0
                • C
                  CyberMinion @johnpoz
                  last edited by

                  @johnpoz
                  Well, I don't have RSS feeds, or other such junk going on in the box. and the lookups are showing the source being the loopback. Here are the packages I have installed:
                  bd18f70c-cf44-4910-b8f1-a61bfbb5465b-image.png

                  I haven't (side)loaded any other software outside of the package manager, or installed any of my own scrips. I formerly had Suricata installed also, but it wasn't working due to RUST, so I uninstalled it. Although the package manager shows it gone, I still have a few traces of it, indicating an incomplete uninstall.
                  e5285166-0ce5-4b17-be73-e18a6a8d69c0-image.png
                  I also previously installed then uninstalled Acme. To my knowledge, that was a clean uninstall

                  Can tell you for sure if there was something in pfsense out of the box causing this traffic, or even something common... The forums would be blowing up with hey why is there 300K of traffic all the time...

                  Yeah, instead we have one single, ridiculously long thread...ugh.

                  So what now? Would it make any difference at all if I take a full backup, do a factory reset, then restore from the backup? I have a feeling that would bring the problem right back. I don't want to reconfigure from scratch, though.

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

                    well iftop or nmap sure wouldn't be doing it, they don't even run anything unless you run them.

                    I guess snort could be be doing it? In theory - it could try and look for IPs that hit your wan..

                    Thought you said you removed pfblocker? I would remove them completely, both pfblocker and snort.. Just to be 110% sure its not them..

                    But what I can tell you for sure is there nothing in pfsense out of the box that would try and look those such fqdn..

                    What I would prob do, is do a clean install of pfsense with min sort of setup, an out of the box sort of setup.. And do you get such queries now?

                    I can tell you for sure my setup isn't doing anything of the sort.. I have logging of all queries turned on in unbound, and see nothing even close to those nonsense lookups.

                    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

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

                      Snort and Suricata do zero DNS queries unless the user manually clicks the designated icon on the ALERTS tab. Neither package does anything on its own with the exception of using curl to perform the daily rules update check. During that process curl will look up the IP for the rules download URLs. However, those lookups are a miniscule amount of traffic.

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

                        I hear yeah - but what else could be doing queries for such nonsense.. Seeing queries like this..

                        query.png

                        Lots and lots of them, and both A and AAA for just what looks to IPs, but not PTR queries but actual A and AAAA queries for what looks to be an IP.

                        I would say its some stupid client, but he states he is not doing any dns redirection, and log of the queries in unbound show they are from loopback.

                        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

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

                          There is no code within the PHP package that would do that (save for the curl reference I mentioned), and I am quite familiar with the Snort binary code and know of nothing in there that would account for such activity.

                          The last time I recall a discussion similar to this with mysterious DNS lookups it turned out to be a logging application of some type that was attempting to convert IP addresses to hostnames.

                          You know there is a setting on the pfSense firewall logging tab that turns this feature on, but I'm not sure if that is a permanent thing or just active while you have the firewall log tab open. It resolves IP to hostnames (or attempts to).

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

                            That is a good hint for sure.. You wouldn't be able to recall enough to find this thread where this was happening before? That might be a clue for sure.

                            I don't recall seeing such a thread.. But so many, and many are just the same over and over they all tend to blend together.

                            So you think it was something or could have something to do with logging in pfsense, or some package?? Prob the best clue we have had sofar in trying to track this down.

                            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

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

                              @johnpoz said in pfSense using unreasonable amount of bandwidth while idle:

                              That is a good hint for sure.. You wouldn't be able to recall enough to find this thread where this was happening before? That might be a clue for sure.

                              I don't recall seeing such a thread.. But so many, and many are just the same over and over they all tend to blend together.

                              So you think it was something or could have something to do with logging in pfsense, or some package?? Prob the best clue we have had sofar in trying to track this down.

                              I think it was a year ago or maybe a little more, but I don't recall more than that. My years are catching up with me. My memory has "read errors" sometimes now ... 😀 .

                              Oh, and that Firewall Log thing is actually an icon you click on the page, not a parameter.

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

                                Looking in all the settings for logging - and I don't see anything that should or could do that.. Unless something really odd going on if sending logs to remote syslog???

                                @CyberMinion Do you have logs being sent to remote syslog?

                                Also what about looking in your cron jobs for something? You can install the cron package to get look see to what is in there.

                                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

                                C 1 Reply Last reply Reply Quote 0
                                • C
                                  CyberMinion @johnpoz
                                  last edited by

                                  @johnpoz

                                  Thought you said you removed pfblocker?

                                  I disabled it, but did not uninstall it. Think it makes a difference? I also tried this with Snort at one point btw, and yes, no change.

                                  Looking in all the settings for logging - and I don't see anything that should or could do that.. Unless something really odd going on if sending logs to remote syslog???

                                  I will look around as well

                                  @CyberMinion Do you have logs being sent to remote syslog?

                                  No, local logging only.

                                  Also what about looking in your cron jobs for something? You can install the cron package to get look see to what is in there.

                                  Not a bad idea...The only cron jobs I'm aware of are updating pfblocker's rules periodically. Do you have a suggestion of which package to try for this purpose?

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

                                    Am I correct in thinking the queries you see are the odd-IP-as-FQDN followed by odd-IP-as-FQDN.yourdomain every time?

                                    Is there anything that could be running on pfSense that actually queries like that?
                                    My usual assumption when I see that sort of query pattern is that it's a Windows client.

                                    Also, reviewing this, the majority of this traffic appeared to be inbound on WAN. Just the nature of DoT?

                                    Steve

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

                                      @CyberMinion said in pfSense using unreasonable amount of bandwidth while idle:

                                      Do you have a suggestion of which package to try for this purpose?

                                      Yeah the cron package ;)

                                      cron.png

                                      And yeah I would agree, whatever is doing those queries is messed up... So yeah it would scream some shit software on some windows machine if you ask me as well.

                                      But he insists he is not doing dns redirection, and a windows client on the network would show its actual IP as source vs loopback. The only way to get loopback as the source, is something running on pfsense doing the query, or redirection.. Can you post up your portfowards tab?

                                      Other thing could be proxy running, but he says not running that, etc.

                                      And yeah the queries are adding his domain in a search suffix query, after the query.. After the first query.. Really just at a loss to what would/could be doing it.

                                      I personally would do a clean slate..

                                      And yeah using doh/dot especially when forwarding to multiple ns amounts to a low level dos on yourself when you have something basically looking for nonsense..

                                      None of that shit that is being asked for is ever going to resolve.. Its just asking for nonsense, with extra helping of overhead on top of it, and lets not just ask 1 ns, lets ask them all.. Once the first nx comes back, you shouldn't be asking the next guy ever.. His sniffs are really a constant stream of asking for junk..

                                      edit: I just counted up 1 second of dns queries in on of his sniffs, doing 30 queries a second for utter garbage.. If I filter on just queries in the 78 second long sniff, there are 1740 dns queries or 22 queries a second for the duration of the sniff.. all for garbage that will never resolve.

                                      Forget that its adding his suffix, none of this shit would ever resolve
                                      snip.png

                                      So what is doing them is the question.. I don't know how to look to see what is doing the query as far as process.. That would be the smoking gun, is to know what is actually asking for this nonsense. unbound is just doing what it was asked to do..

                                      Guess you could try running through
                                      sockstat -4 -p 53

                                      doing that trying to catch what process is talking to loopback on 53.. Other than unbound.

                                      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

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

                                        Someone may have already done this, and I missed it, but ARIN says the netblock 61.125.0.0/18 belongs to NTT-ME Corporation, which is located in Japan. The specific company brand listed is Xephion, which appears to be an ISP.

                                        The 61.124.0.0/16 block of addresses is listed as belonging to Fujitsu, LTD. Specifically it seems to be registered for their InfoWeb service, which also appears to be a Japanese ISP.

                                        C 1 Reply Last reply Reply Quote 0
                                        • C
                                          CyberMinion @stephenw10
                                          last edited by

                                          @stephenw10 said in pfSense using unreasonable amount of bandwidth while idle:

                                          Am I correct in thinking the queries you see are the odd-IP-as-FQDN followed by odd-IP-as-FQDN.yourdomain every time?

                                          It tries to lookup the IP first, then adds the network name as if it was a FQDN, as descrided, and tries getting an A record, then an AAA record.

                                          Is there anything that could be running on pfSense that actually queries like that?
                                          My usual assumption when I see that sort of query pattern is that it's a Windows client.

                                          None that I am aware of. It is vaguely possible that a Windows client is triggering the problem, but once this "noise" is going on, no internal clients are needed to keep it going. I've tried pulling the LAN cables out of the box, but the problem continues. Is there any way a client could be triggering this problem, then disconnect and have the problem persist?

                                          Also, reviewing this, the majority of this traffic appeared to be inbound on WAN. Just the nature of DoT?

                                          Steve

                                          Assuming you mean DoH, I did try disabling that, but this problem persisted. It is flowing to and from the WAN port only with nominal if any traffic on the internal ports. DoH adds a little "bulk" to the DNS, but not THIS much...

                                          johnpozJ 1 Reply Last reply Reply Quote 0
                                          • C
                                            CyberMinion @bmeeks
                                            last edited by CyberMinion

                                            @bmeeks said in pfSense using unreasonable amount of bandwidth while idle:

                                            Someone may have already done this, and I missed it, but ARIN says the netblock 61.125.0.0/18 belongs to NTT-ME Corporation, which is located in Japan. The specific company brand listed is Xephion, which appears to be an ISP.

                                            The 61.124.0.0/16 block of addresses is listed as belonging to Fujitsu, LTD. Specifically it seems to be registered for their InfoWeb service, which also appears to be a Japanese ISP.

                                            Yeah, a number of these seem to be owned by ISPs around the world. Another one it was doing was owned by a Chinese ISP...I blocked that one manually on the firewall, just because.

                                            @johnpoz
                                            Right...what a difficult to guess package name. Here's what I've got for jobs:
                                            dbcb9b4e-385c-417b-abd2-9b926d16f4c6-image.png

                                            It's interesting to me that there are suricata and acme jobs here still.

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