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

    pfBlockerNG-devel 2.2.5_29 - Cron job drops internet every 30 minutes.

    Scheduled Pinned Locked Moved pfBlockerNG
    10 Posts 6 Posters 928 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.
    • HermanH
      Herman
      last edited by

      Hi Folks,

      Configured pfBlockerNG-devel 2.2.5_29 and it works fine. At least I thought it did. Suddenly my son tells me that he is kicked out of internet every half of an hour.

      I found out that when the next scheduled CRON Event runs the internet connections is disconnected for 20 seconds or so.
      HELP!!! My son is about to kill me 😊 LOL. Seriously, I do not have a clue why this happens.

      Any help is appreciated.

      Regards,
      Herman

      Limburg | The Netherlands.
      It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

      GertjanG 1 Reply Last reply Reply Quote 0
      • RonpfSR
        RonpfS
        last edited by

        @Herman said in pfBlockerNG-devel 2.2.5_29 - Cron job drops internet every 30 minutes.:

        ut that when the next scheduled CRON Event runs the internet connections is disconnected for 20 seconds or so.

        Inspect System logs, Resolver logs, pfblockerng logs to find out what is happening. We can't tell much without logs.

        2.4.5-RELEASE-p1 (amd64)
        Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
        Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

        1 Reply Last reply Reply Quote 0
        • T
          timboau 0
          last edited by

          I think I have a similar problem when the sync job runs the remote routers that are synced to disconnect and then reconnect.
          Kill states are not enabled on either

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

            @Herman said in pfBlockerNG-devel 2.2.5_29 - Cron job drops internet every 30 minutes.:

            I found out that when the next scheduled CRON Event runs

            So you confirm that you you set this :

            c669b7ae-ff36-414f-aa2b-862a591cabe0-image.png

            to 30 minutes ?
            Why ?

            Also, run this 'by hand' :

            31ad010c-c863-4902-9852-4759da982cfd-image.png

            if it really takes 20 seconds or so (probably more, the web view version of the cron task is slower) then it's time to reduce the number of feeds you are using.
            Or use a more powerfull device.
            At the end of the feed updating, parsing and other jobs, the Resolver will get restarted (reloaded, whatever).
            When the Resolver starts, it will read in the list with IP's to be blocked. This will take a micro second or so when there are a few IP's - how big is your list ? Did you have a look ?
            Here it is : Services => DNS Resolver =>

            edc0df8b-a252-42ad-8e33-31e8d66dbb75-image.png

            This :

            c10ed21f-0eb3-4940-9971-ed84a881247f-image.png

            isn't explained very clearly (to me, that is).
            Firewall states that exists, using IP's that are (were) blocked ??
            I could understand that if one of the newly loaded IP's is used in the present state table, these states are killed.
            Thus a connection gets killed.
            But if the IP is on the list and was on the list, thus blocked already in the past, then nothing changes.

            Or your son was using an IP that was not getting blocked before, and suddenly it is blocked - the IP was been put on a list, and it wasn't on the list before ? This means that pfBlocker is doing is job and your son is / was visiting "blacklisted" sites ;)
            ( or you use feeds that blacklist sites you don't know of - do not want to black list )

            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
            • PerforadoP
              Perforado Rebel Alliance
              last edited by Perforado

              I run a couple of those (as in 10+) and never had that problem. Maybe you exhaust the resources on your pfSense with the stuff you installed? pfBlockerNG is quite greedy with memory with some lists.

              On what kind of toaster did you install yours? ;)

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by A Former User

                i've had this problem before (not related to same thing as you, just speaking in general right now)

                for instance, the too many feeds. i have a lot running, and just like snort, you need to tend to that list, whitelist things that don't need to be blocked, etc.
                i very much appreciate the 'unlock' feature in this as it allows you to 'double check test' it before whitelisting (or before next CRON).

                a lot of times, i would have apps on my phone (amazon shopping as an example) that would not work due to certain hosts/IPs being blocked. after whitelisting (or wildcard whitelisting - make sure you know the difference), and then either waiting for cron, doing force update/reload, or even just clearing the pfblockerng counter on the widget [for me] has worked fairly quick to diagnose (usually unlocking then retesting the app takes less than a minute. make sure to clear cache on the affected app or device before retesting)

                most of the 'make sure you do this' stuff i just mentioned is actually listed in the GUI at the bottom of pages in the settings you're trying to adjust.

                hope this helps

                edit additional: running pfsense community release candidate version 2.4.5 and pfblockerng_devel 2.2.5_29

                1 Reply Last reply Reply Quote 1
                • PerforadoP
                  Perforado Rebel Alliance
                  last edited by

                  Will try to reproduce my theory later today by lobotimizing a test firewall.

                  Would love to know that feeds you use and on what kind of hardware (as in cpu/ram/hdd) you installed your pfSense.

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @Perforado
                    last edited by A Former User

                    @Perforado from my experience with 'forgetting to read an infoblock icon' just the other day ('this is a large list ~ 480k lines')... WHOOPS lol

                    for reference on my hardware, i7 3000 series quadcore, virtualization on, 8gb ram (upgrading to 32 on sunday 'just cause' and also cause of the next statements lol)

                    it filled the 8gb, hit the hard limit (4 million), spilled into the swap another 2gb... heh

                    edit additional: yes i also have TLD enabled

                    PerforadoP 1 Reply Last reply Reply Quote 1
                    • ?
                      A Former User
                      last edited by

                      also maybe consider reordering the lists for prioritization of rule loading?

                      my (whatever kind of-) logic here is that if the RAM is getting filled, with or without swap(?), and hits a hard limit then loads the rest 'as-is' like it does, AND if 'kill states' is enabled, especially with a half hour check - i could potentially see why the internet goes out every CRON update. TLD would just increase the chances of the filling up of RAM and/or network 'crashes' (i feel like pfsense states crash and reload as opposed to the system as a whole crashing and rebooting - this would be apparent in logs as well) from my understanding of the documentation.

                      i feel like i experienced this once or twice, but was during early testing.

                      1 Reply Last reply Reply Quote 0
                      • PerforadoP
                        Perforado Rebel Alliance @A Former User
                        last edited by

                        Managed to choke pfSense with 4GB ram and pfBlockerNG to not answer to icmp echo anymore.

                        So my theory stands: Add more memory.

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