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

    pfBlockerNG-devel v2.2.5_28 > IP > Reputation: I get .../pfblockerng/pfblockerng_reputation.php 404 not found

    Scheduled Pinned Locked Moved pfBlockerNG
    26 Posts 4 Posters 5.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.
    • nzkiwi68N
      nzkiwi68
      last edited by nzkiwi68

      Shell pfBlocker update failure too...

      [2.4.4-RELEASE][admin@ho1.nc.localdomain]/root: php -f /usr/local/www/pfblockerng/pfblockerng.php dc

      Download Process Starting [ 01/13/20 21:25:26 ]
      /usr/local/share/GeoIP/GeoLite2-Country.tar.gz 401 Unauthorized

      Failed to Download GeoLite2-Country.mmdb
      /usr/local/share/GeoIP/GeoLite2-Country-CSV.zip 401 Unauthorized

      Failed to Download
      Download Process Ended [ 01/13/20 21:25:27 ]

      [2.4.4-RELEASE][admin@ho1.nc.localdomain]/root:

      1 Reply Last reply Reply Quote 0
      • nzkiwi68N
        nzkiwi68
        last edited by

        "GeoIP Files" log files section reports invalid filename/path despite numerous uninstall/reinstall attempts.

        f9b3c329-37c5-4792-aa1d-2654a2f36605-image.png

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

          https://forum.netgate.com/topic/149343/pfblockerng-maxmind-registration-required-to-continue-to-use-the-geoip-functionality

          "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/

          nzkiwi68N 1 Reply Last reply Reply Quote 0
          • nzkiwi68N
            nzkiwi68 @BBcan177
            last edited by

            @BBcan177

            Yes fully registered... something else is going on...

            8bf83474-84cc-4835-a0b8-d0b958194be1-image.png

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

              @nzkiwi68
              It's says "not authorized" in the download log.

              "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/

              nzkiwi68N 1 Reply Last reply Reply Quote 0
              • nzkiwi68N
                nzkiwi68 @BBcan177
                last edited by

                @BBcan177

                Ok.... but...

                This was an HA pair of SG-4860 firewalls, with the updated pfBlockerNG WITH the MaxMind registration entered and working

                Then, config copied out, hand tuned the interfaces, uploaded to a an HA pair of XG-1537

                Same MaxMind registration token as before

                nzkiwi68N 1 Reply Last reply Reply Quote 0
                • nzkiwi68N
                  nzkiwi68 @nzkiwi68
                  last edited by

                  @nzkiwi68 I've tried setting other MaxMind tokens that I have working on other customers, but, no matter what token I seem to put into pfBlocker the Geo IP won't work.

                  1 Reply Last reply Reply Quote 0
                  • nzkiwi68N
                    nzkiwi68
                    last edited by

                    Just signed up (again) to MaxMind with a gmail account, got a brand new, shiny, fresh token.

                    Put into pfBlockerNG-devel v2.2.5_28 and it still won't download GeoLite2

                    I get:

                    ===[ GeoIP Process ]============================================

                    MaxMind Database downloading and processing ( approx 4MB ) ... Please wait ...

                    Download Process Starting [ 01/14/20 06:55:09 ]
                    /usr/local/share/GeoIP/GeoLite2-Country.tar.gz 401 Unauthorized

                    Failed to Download GeoLite2-Country.mmdb
                    /usr/local/share/GeoIP/GeoLite2-Country-CSV.zip 401 Unauthorized

                    Failed to Download
                    Download Process Ended [ 01/14/20 06:55:10 ]

                    provelsP 1 Reply Last reply Reply Quote 0
                    • provelsP
                      provels @nzkiwi68
                      last edited by

                      @nzkiwi68 FWIW (every penny paid...), I'd click "Save settings" in pfB, uninstall and reinstall. And make sure it installs completely before you change pages in the GUI.

                      Peder

                      MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                      BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

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

                        Try to copy and paste the key as plain text.

                        "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/

                        nzkiwi68N 1 Reply Last reply Reply Quote 0
                        • nzkiwi68N
                          nzkiwi68 @BBcan177
                          last edited by

                          @BBcan177 Of course, I tried that again just now... still no joy.
                          It appears that it is not really saving the token or using the token despite anything I've tried..

                          My best guess is the old firewall cluster was pfSense 2.3 something and pfBlockerNG old version, upgraded over the past 2 years and something must be left in the current config which is causing pfBlockerNG to misbehave.

                          Is there anything deeper we can look at?

                          1 Reply Last reply Reply Quote 0
                          • nzkiwi68N
                            nzkiwi68
                            last edited by

                            Also a significant point is the backup firewall in the HA cluster is exhibiting exactly the same problem.

                            If I try and add a new token directly to the backup firewall etc, the same issue occurs, it cannot and will not download the geolite2 database stating "401 Unauthorized"

                            I really think I'm bumping into a bug, probably something to do with upgrading from;

                            • pfBlockerNG
                            • pfBlockerNG-devel
                            1 Reply Last reply Reply Quote 0
                            • nzkiwi68N
                              nzkiwi68
                              last edited by

                              On the backup firewall.

                              • Untick pfBlockerNG "keep settings"

                              • Uninstall pfBlockerNG

                              • Reinstall pfBlockerNG

                              Only set these minimal settings;
                              Firewall > pfBlockerNG > General: tick enable pfBlocker
                              Firewall > pfBlockerNG > IP: enter MaxMind key
                              Firewall > pfBlockerNG > IP: tick some interfaces for inbound and outbound as required
                              Firewall > pfBlockerNG > IP: enable "floating rules:
                              Firewall > pfBlockerNG > IP: enable "kill states"

                              Run Firewall > pfBlockerNG > Update

                              UPDATE PROCESS START [ 01/14/20 08:11:05 ]

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

                              Clearing all DNSBL Feeds
                              ** DNSBL Disabled **

                              ===[ GeoIP Process ]============================================

                              MaxMind Database downloading and processing ( approx 4MB ) ... Please wait ...

                              Download Process Starting [ 01/14/20 08:11:06 ]
                              /usr/local/share/GeoIP/GeoLite2-Country.tar.gz 401 Unauthorized

                              Failed to Download GeoLite2-Country.mmdb
                              /usr/local/share/GeoIP/GeoLite2-Country-CSV.zip 401 Unauthorized

                              Failed to Download
                              Download Process Ended [ 01/14/20 08:11:07 ]

                              ===[ Aliastables / Rules ]==========================================

                              No changes to Firewall rules, skipping Filter Reload
                              No Changes to Aliases, Skipping pfctl Update

                              ===[ Kill States ]==================================================

                              Firewall state(s) validation for [ 744 ] IPv4 address(es)...
                              Firewall state(s) validation for [ 2 ] IPv6 address(es)...
                              No matching states found

                              ======================================================================

                              UPDATE PROCESS ENDED [ 01/14/20 08:11:09 ]

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

                                @nzkiwi68
                                Only other thing I can suggest is that Maxmind is blocking your wan ip. Are you going out of a vpn connection? Try without.

                                "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/

                                nzkiwi68N 1 Reply Last reply Reply Quote 0
                                • nzkiwi68N
                                  nzkiwi68 @BBcan177
                                  last edited by

                                  @BBcan177 No VPN

                                  It was working on the old SG-4860 HA cluster, I'm sure if I plugged them back in, it would work.
                                  Can you give me a cmd I can run in the shell that should download the DB?
                                  I can modify the code you give me and put in my token...

                                  I expect that will work and prove there's something amiss with this pfBlocker installation

                                  1 Reply Last reply Reply Quote 0
                                  • nzkiwi68N
                                    nzkiwi68
                                    last edited by

                                    Could it be a rights permission for the local directory where pfBlockerNG tried to save the Geolite2 DB files?

                                    1 Reply Last reply Reply Quote 0
                                    • nzkiwi68N
                                      nzkiwi68
                                      last edited by

                                      I can ping dev.maxmind.com...

                                      1 Reply Last reply Reply Quote 0
                                      • nzkiwi68N
                                        nzkiwi68
                                        last edited by

                                        I think MaxMind may have changed everything and broken pfBlocker.

                                        After logging onto the MaxMind, reading their blog on how to directly download;
                                        https://dev.maxmind.com/geoip/geoipupdate/#Direct_Downloads

                                        I create the following URL;
                                        https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-country&license_key=XXXXXXXXX&suffix=tar.gz

                                        Where XXXXX is my token / key, but it won't won't download using a browser.

                                        RonpfSR BBcan177B 2 Replies Last reply Reply Quote 0
                                        • RonpfSR
                                          RonpfS @nzkiwi68
                                          last edited by

                                          @nzkiwi68 said in pfBlockerNG-devel v2.2.5_28 > IP > Reputation: I get .../pfblockerng/pfblockerng_reputation.php 404 not found:

                                          I think MaxMind may have changed everything and broken pfBlocker.

                                          After logging onto the MaxMind, reading their blog on how to directly download;
                                          https://dev.maxmind.com/geoip/geoipupdate/#Direct_Downloads

                                          I create the following URL;
                                          https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-country&license_key=XXXXXXXXX&suffix=tar.gz

                                          Where XXXXX is my token / key, but it won't won't download using a browser.

                                          I get : "Database edition not found" in FireFox.

                                          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
                                          • BBcan177B
                                            BBcan177 Moderator @nzkiwi68
                                            last edited by

                                            @nzkiwi68

                                            The URLs that pfBlockerNG uses are here for the MaxMind databases:
                                            https://github.com/pfsense/FreeBSD-ports/blob/devel/net/pfSense-pkg-pfBlockerNG-devel/files/usr/local/www/pfblockerng/pfblockerng.php#L70-L84

                                            You can see from your screenshots/posts that it connects to MaxMind and gets "Authorization denied"... So its something on MaxMinds side blocking or rate-limiting you. If you attempt too many downloads in one day than that could block your WAN IP. There is no posted literature on the MaxMind website that indicates their limiting details.

                                            You can try to change your WAN IP if its dynamic and see if that helps. Also login to your MaxMind Account and see the Download History to see how many downloads you completed today.

                                            Other than that, I would contact MaxMind and see what their support has to say. I don't see any issues with the package from the details that you have posted here.

                                            If it is MaxMind blocking you, then you might need to wait 24 hours. Alternatively download the files from another site and copy them to the /usr/local/share/GeoIP folder and run this command to extract them:

                                            php -f /usr/local/www/pfblockerng/pfblockerng.php ugc
                                            

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