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

    pfblockerNG ASN bgpview trouble

    Scheduled Pinned Locked Moved pfBlockerNG
    35 Posts 7 Posters 1.8k 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.
    • fireodoF
      fireodo
      last edited by

      Hi,

      can anybody else confirm that it is some trouble with api.bgpview.io and the download of ASN Prefixes?

      Regards,
      fireodo

      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
      pfsense 2.7.2 CE
      Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

      P 1 Reply Last reply Reply Quote 2
      • P
        Patch @fireodo
        last edited by Patch

        @fireodo Yes
        For example AS40027 which my pfsense shows was last updated in 9 Aug 2024
        Looking in both the following directories
        /var/db/pfblockerng/original
        /var/db/pfblockerng/native
        AS40027_v4.txt contains only

        127.1.7.7
        

        Deleting these files

        Running Firewall/pfBockerNG/Update -> Update, Run

        [ AS40027_v4 ]			 Downloading update [ 08/15/24 18:46:33 ] .
          Downloading ASN: 40027...... completed ..
          Empty file, Adding '127.1.7.7' to avoid download failure.
        

        In contrast https://bgp.tools/as/40027#prefixes shows many IP address ranges

        Exactly the same has occurs with the other ASN I had set up.

        fireodoF 1 Reply Last reply Reply Quote 2
        • fireodoF
          fireodo @Patch
          last edited by fireodo

          @Patch said in pfblockerNG ASN bgpview trouble:

          Yes

          OK. Thanks for confirmation ... seems the api.bgpview.io is down/not functional.

          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
          pfsense 2.7.2 CE
          Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

          P 1 Reply Last reply Reply Quote 1
          • P
            Patch @fireodo
            last edited by Patch

            @fireodo said in pfblockerNG ASN bgpview trouble:

            seems the api.bgpview.io is down/not functional

            https://api.bgpview.io/
            returns a blank page in the middle of which it has

            500 | Server Error
            
            fireodoF 1 Reply Last reply Reply Quote 1
            • fireodoF
              fireodo @Patch
              last edited by

              @Patch said in pfblockerNG ASN bgpview trouble:

              https://api.bgpview.io/
              returns a blank page in the middle of which it has

              500 | Server Error

              Thanks. I see it too ...

              Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
              SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
              pfsense 2.7.2 CE
              Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

              P 1 Reply Last reply Reply Quote 1
              • P
                Patch @fireodo
                last edited by Patch

                Seam their test environment is not happy also
                https://bgpview.docs.apiary.io/#reference/0/asn/view-asn-details?console=1 then click on call resource

                fireodoF 1 Reply Last reply Reply Quote 0
                • fireodoF
                  fireodo @Patch
                  last edited by

                  @Patch
                  So we have to wait that they get it fixed ...

                  Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                  SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                  pfsense 2.7.2 CE
                  Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                  J 1 Reply Last reply Reply Quote 0
                  • U
                    Uglybrian
                    last edited by

                    I knew it wasnt just me. I get the same 127.1.7.7 with tic tok ASN.

                    1 Reply Last reply Reply Quote 0
                    • J
                      jrey @fireodo
                      last edited by

                      @fireodo said in pfblockerNG ASN bgpview trouble:

                      wait that they get it fixed ...

                      Sure is a lot of weird stuff going on right now -- well every day really..

                      https://asnlookup.com (still also off, went down about the same time as bgp)

                      Aug 14 2024 news article published 7:34PM "GitHub is recovering after major network outage" "the company is rolling back a database infrastructure change"

                      interesting--- article published shortly after they both went down, and there are others still down...

                      We wait..

                      fireodoF 1 Reply Last reply Reply Quote 0
                      • fireodoF
                        fireodo @jrey
                        last edited by fireodo

                        @jrey said in pfblockerNG ASN bgpview trouble:

                        interesting--- article published shortly after they both went down, and there are others still down...

                        Maybe coincidence but ... anyway a little bit strange ...
                        Btw. BGP had in the past similar problems as right now ... so its not very surprisingly ...

                        Edit: Now the service is back online (20:00 CEST)

                        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                        pfsense 2.7.2 CE
                        Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          Patch @fireodo
                          last edited by Patch

                          @fireodo said in pfblockerNG ASN bgpview trouble:

                          Now the service is back online (20:00 CEST)

                          Not completely for me.
                          Deleting these files
                          Running Firewall/pfBockerNG/Update -> Update, Run
                          I still get

                          [ AS40027_v4 ]			 Downloading update .
                            Downloading ASN: 40027...... completed ..
                            Empty file, Adding '127.1.7.7' to avoid download failure.
                          

                          but https://api.bgpview.io/ no longer gives a error page, instead redirecting to https://bgpview.docs.apiary.io/#

                          J 2 Replies Last reply Reply Quote 0
                          • J
                            jrey @Patch
                            last edited by

                            @Patch said in pfblockerNG ASN bgpview trouble:

                            no longer gives a error page

                            not sure what you are trying but the actual api that pfblockerNG will hit for the ASN (netflix) you have listed is returning values (visually it looks fine to me, I'll add it to a list and see what happens when it pulls) as I don't use that particular ASN, all of the ones I do use are working as expected

                            try this is a browser
                            https://api.bgpview.io/asn/40027/prefixes

                            guessing it is likely redirecting based on the fact you tried it in a browser and didn't provide the parameters ?

                            1 Reply Last reply Reply Quote 0
                            • J
                              jrey @Patch
                              last edited by jrey

                              @Patch

                              it pulled and parsed as expected -- no issue

                              Screen Shot 2024-08-16 at 8.46.50 PM.png

                              P 1 Reply Last reply Reply Quote 0
                              • P
                                Patch @jrey
                                last edited by Patch

                                @jrey said in pfblockerNG ASN bgpview trouble:

                                it pulled and parsed as expected -- no issue

                                Interesting.
                                I'm running

                                • pfsense v2.7.2
                                • pfBlockerNG v3.2.0_8

                                At two sites both are not able to pull any ASN data (for multiple asn's) so insert 127.1.7.7

                                Not sure what is different between my and your system

                                pfblockerng ASN no entries.jpg

                                pfblockerng ASN no entries native.jpg

                                Perhaps is a Cloudflare cache refresh problem https://bgpview.docs.apiary.io/#reference/0/asn/view-asn-details?console=1
                                pfblockerng ASN no entries Cloudflare.jpg

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  jrey @Patch
                                  last edited by

                                  @Patch

                                  Ok, so I fired up my test box 2.7.2 and 3.2.0_8 same versions
                                  created an ASN entry for AS40027

                                  works fine.

                                  ssh into your device and run this - the simplest form required for bpg

                                  curl -sS1 https://api.bgpview.io/asn/40027/prefixes
                                  

                                  What do you see? Should be a json format dump of the ASN data starting with

                                  {"status":"ok","status_message":"Query was successful","data":{"ipv4_prefixes":[{"prefix":"45.57.8.0\/23","ip":"45.57.8.0","cidr":23,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code
                                  
                                  P 1 Reply Last reply Reply Quote 2
                                  • P
                                    Patch @jrey
                                    last edited by Patch

                                    @jrey said in pfblockerNG ASN bgpview trouble:

                                    curl -sS1 https://api.bgpview.io/asn/40027/prefixes

                                    What do you see? Should be a json format dump of the ASN data starting with

                                    {"status":"ok","status_message":"Query was successful","data":{"ipv4_prefixes":[{"prefix":"45.57.8.0/23","ip":"45.57.8.0","cidr":23,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code

                                    Hey, that works for me too.
                                    But

                                    • Firewall / pfBlockerNG / Log Browser -> Original IP Files -> AS40027_v4.orig -> Trash
                                    • Firewall / pfBlockerNG / Update -> Reload, IP ->
                                    [ AS40027_v4 ]			 Downloading update [ 08/17/24 22:48:06 ] .
                                      Downloading ASN: 40027...... completed ..
                                      Empty file, Adding '127.1.7.7' to avoid download failure.
                                    

                                    Similarly restarting pfsense also clears the log files then

                                    • Firewall / pfBlockerNG / Update -> empty file again
                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      jrey @Patch
                                      last edited by jrey

                                      @Patch

                                      Please show me the screen where you have the feed set up.
                                      Can you also include the first part of the response from the curl you did manually "that works for me too"

                                      P 1 Reply Last reply Reply Quote 0
                                      • P
                                        Patch @jrey
                                        last edited by Patch

                                        @jrey
                                        I tried un-installing nmap v1.4.4_7
                                        un-installing pfBlockerNG then re installing -> no difference
                                        The only other package I have installed is System_Patches v2.2.11_15

                                        @jrey said in pfblockerNG ASN bgpview trouble:

                                        Please show me the screen where you have the feed set up.

                                        pfblockerng ASN Netflix.jpg

                                        @jrey said in pfblockerNG ASN bgpview trouble:

                                        Can you also include the first part of the response from the curl you did manually

                                        {"status":"ok","status_message":"Query was successful","data":{"ipv4_prefixes":[{"prefix":"45.57.8.0\/23","ip":"45.57.8.0","cidr":23,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.57.0.0\/17","ip":"45.57.0.0","cidr":17,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"45.57.8.0\/24","ip":"45.57.8.0","cidr":24,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.57.0.0\/17","ip":"45.57.0.0","cidr":17,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"45.57.9.0\/24","ip":"45.57.9.0","cidr":24,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.57.0.0\/17","ip":"45.57.0.0","cidr":17,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"45.57.40.0\/23","ip":"45.57.40.0","cidr":23,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.120.152.0\/22","ip":"45.120.152.0","cidr":22,"rir_name":"APNIC","allocation_status":"unknown"}},{"prefix":"45.57.40.0\/24","ip":"45.57.40.0","cidr":24,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.57.0.0\/17","ip":"45.57.0.0","cidr":17,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"45.57.41.0\/24","ip":"45.57.41.0","cidr":24,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.155.40.0\/22","ip":"45.155.40.0","cidr":22,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"45.57.86.0\/23","ip":"45.57.86.0","cidr":23,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.57.0.0\/17","ip":"45.57.0.0","cidr":17,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"45.57.86.0\/24","ip":"45.57.86.0","cidr":24,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.57.0.0\/17","ip":"45.57.0.0","cidr":17,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"45.57.87.0\/24","ip":"45.57.87.0","cidr":24,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.57.0.0\/17","ip":"45.57.0.0","cidr":17,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"45.57.90.0\/23","ip":"45.57.90.0","cidr":23,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.57.0.0\/17","ip":"45.57.0.0","cidr":17,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"45.57.90.0\/24","ip":"45.57.90.0","cidr":24,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.57.0.0\/17","ip":"45.57.0.0","cidr":17,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"45.57.91.0\/24","ip":"45.57.91.0","cidr":24,"roa_status":"Valid","name":"SS-CDN-4","description":"Netflix Streaming Services Inc.","country_code":"US","parent":{"prefix":"45.57.0.0\/17","ip":"45.57.0.0","cidr":17,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"207.45.72.0\/24","ip":"207.45.72.0","cidr":24,"roa_status":"Valid","name":null,"description":null,"country_code":null,"parent":{"prefix":null,"ip":null,"cidr":null,"rir_name":null,"allocation_status":"unknown"}},{"prefix":"207.45.72.0\/23","ip":"207.45.72.0","cidr":23,"roa_status":"Valid","name":null,"description":null,"country_code":null,"parent":{"prefix":null,"ip":null,"cidr":null,"rir_name":null,"allocation_status":"unknown"}},{"prefix":"207.45.73.0\/24","ip":"207.45.73.0","cidr":24,"roa_status":"Valid","name":"DVD-NETFLIX","description":"Netflix, Inc","country_code":"US","parent":{"prefix":"207.45.72.0\/22","ip":"207.45.72.0","cidr":22,"rir_name":"ARIN","allocation_status":"unknown"}},{"prefix":"207.45.74.0\/23","ip":"207.45.74.0","cidr":23,"roa_status":"Valid","name":null,"description":null,"country_code":null,"parent":{"prefix":null,"ip":null,"cidr":null,"rir_name":null,"allocation_status":"unknown"}}],"ipv6_prefixes":[{"prefix":"2a00:86c0:2008::\/48","ip":"2a00:86c0:2008::","cidr":48,"roa_status":"Valid","name":null,"description":null,"country_code":"US","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2008::\/47","ip":"2a00:86c0:2008::","cidr":47,"roa_status":"Valid","name":null,"description":null,"country_code":"US","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2009::\/48","ip":"2a00:86c0:2009::","cidr":48,"roa_status":"Valid","name":null,"description":null,"country_code":"US","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2040::\/48","ip":"2a00:86c0:2040::","cidr":48,"roa_status":"Valid","name":null,"description":null,"country_code":"US","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2040::\/47","ip":"2a00:86c0:2040::","cidr":47,"roa_status":"Valid","name":"US-NETFLIX1-20120130","description":"Netflix Inc","country_code":"GB","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2041::\/48","ip":"2a00:86c0:2041::","cidr":48,"roa_status":"Valid","name":null,"description":null,"country_code":"US","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2042::\/48","ip":"2a00:86c0:2042::","cidr":48,"roa_status":"Valid","name":"US-NETFLIX1-20120130","description":"Netflix Inc","country_code":"GB","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2042::\/47","ip":"2a00:86c0:2042::","cidr":47,"roa_status":"Valid","name":"US-NETFLIX1-20120130","description":"Netflix Inc","country_code":"GB","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2043::\/48","ip":"2a00:86c0:2043::","cidr":48,"roa_status":"Valid","name":"NET6-2A00-86C-3","description":"NET6 2A00 86C 3","country_code":"GB","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2052::\/47","ip":"2a00:86c0:2052::","cidr":47,"roa_status":"Valid","name":"US-NETFLIX1-20120130","description":"Netflix Inc","country_code":"GB","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2086::\/48","ip":"2a00:86c0:2086::","cidr":48,"roa_status":"Valid","name":"US-NETFLIX1-20120130","description":"Netflix Inc","country_code":"GB","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2086::\/47","ip":"2a00:86c0:2086::","cidr":47,"roa_status":"Valid","name":"US-NETFLIX1-20120130","description":"Netflix Inc","country_code":"GB","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2087::\/48","ip":"2a00:86c0:2087::","cidr":48,"roa_status":"Valid","name":null,"description":null,"country_code":"US","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2090::\/47","ip":"2a00:86c0:2090::","cidr":47,"roa_status":"Valid","name":null,"description":null,"country_code":"US","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2090::\/48","ip":"2a00:86c0:2090::","cidr":48,"roa_status":"Valid","name":null,"description":null,"country_code":"US","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}},{"prefix":"2a00:86c0:2091::\/48","ip":"2a00:86c0:2091::","cidr":48,"roa_status":"Valid","name":null,"description":null,"country_code":"US","parent":{"prefix":"2a00:86c0::\/32","ip":"2a00:86c0::","cidr":32,"rir_name":"RIPE","allocation_status":"unknown"}}]},"@meta":{"time_zone":"UTC","api_version":1,"execution_time":"28.06 ms"}}
                                        

                                        Which Beyond compare suggests is identical to yours for the data shown.

                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          Patch @Patch
                                          last edited by Patch

                                          I also tried

                                          • disabling pfblockerNG ASN cache,
                                          • deleting the /var/db/pfblockerng/original/ files
                                          • Deleting the /var/db/pfblockerng/native/ files
                                          • Rerunning Firewall / pfBlockerNG / Update -> Reload, IP

                                          But still only empty files result

                                          pfblockerng ASN Cache disable.jpg

                                          Bob.DigB 1 Reply Last reply Reply Quote 0
                                          • Bob.DigB
                                            Bob.Dig LAYER 8 @Patch
                                            last edited by Bob.Dig

                                            @Patch I tried it myself, making this alias and failed. I see the same as you. Older ASN-aliases aren't affected as far as I can tell. So you are not alone. I guess I will try another ASN next.
                                            Edit: Also no luck, old ones work.

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