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

    No IPs suddenly

    Scheduled Pinned Locked Moved pfBlockerNG
    5 Posts 4 Posters 1.4k 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.
    • F
      fireix
      last edited by

      I'm using this tool to limit countries that are allowed to connect on certain services.

      I have about 10.000 IPs for my country and I woke up today with phonecalls that no-one was able to connect.

      I found out that the countrylist was empty. The fix was easy enough, just run an extra update. But why does this happen and is there a way to avoid this happening again (or at least running country-list manually)?

      I'm still hoping for a smoother way to allow traffic per country than this, but this has at least worked as a work-around for now.

      ===[  DNSBL Process  ]================================================

      DNSBL: Flush DNSBL_IP1/1 addresses added.

      Clearing all DNSBL Feeds…  completed
      Validating database... completed
      Reloading Unbound.... completed
      cat: /var/db/pfblockerng/dnsbl/*.txt: No such file or directory
      DNSBL update [ 0 | PASSED  ]… completed [ 11/15/16 07:00:21 ]
      –----------------------------------------

      ===[  Continent Process  ]============================================

      Could not open ISO [ DK_v4 ]
      Could not open ISO [ DK_rep_v4 ]
      Could not open ISO [ PL_v4 ]
      Could not open ISO [ SE_v4 ]
      [ pfB_Europe_v4 ] Changes found… Updating
      [ pfB_Europe_v4 ] Found no unique IPs, adding '1.1.1.1' to avoid empty file
      Could not open ISO [ PN_rep_v4 ]
      [ pfB_Oceania_v4 ] exists. [ 11/15/16 07:00:22 ]
      Could not open ISO [ PL_v4 ]
      Could not open ISO [ PL_rep_v4 ]
      Could not open ISO [ ES_v4 ]
      Could not open ISO [ ES_rep_v4 ]
      [ pfB_Top_v4 ] Changes found… Updating
      [ pfB_Top_v4 ] Found no unique IPs, adding '1.1.1.1' to avoid empty file

      1 Reply Last reply Reply Quote 0
      • BBcan177B
        BBcan177 Moderator
        last edited by

        Not sure if this is resolved, but you could try to re-download the MaxMind Database manually:

        php /usr/local/www/pfblockerng/pfblockerng.php dc
        

        "Experience is something you don't get until just after you need it."

        Website: http://pfBlockerNG.com
        Twitter: @BBcan177  #pfBlockerNG
        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

        1 Reply Last reply Reply Quote 0
        • F
          fireix
          last edited by

          It was solved by running the update manually once more (re-running the cronjob that fills up the IP-list).

          I notice this happens almost every day now. People can't connect while the database is rebuilding. Doesn't look like an optimal way to do this. I have to run this thing manually off-hours from now on and it is a extra work I would like to not have…

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            And why are you rebuilding the database every day when it's being updated once every month by upstream?

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

              On my P4 386 system, Cron update takes 20-40 minutes to complete,
              DNS reload of the 92MB pfb_dnsbl.conf takes 4-5 minutes.

              2016-12-07 02:27:16	Daemon.Info	1.2.3.4	Dec  7 02:27:19 unbound: [66112:0] info: service stopped (unbound 1.5.10).
              2016-12-07 02:31:23	Daemon.Info	1.2.3.4	Dec  7 02:31:26 unbound: [66112:0] info: start of service (unbound 1.5.10).
              ```During the reload, DNS fails, so it's not a bad idea to run cron update off-hours.
              
              As for the Maxmind database, once it is rebuilt, there is no need to run```
              php /usr/local/www/pfblockerng/pfblockerng.php dc
              ```until something breaks or a new MaxMind database is released and for some reason the cron MaxMind update failed.

              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
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.