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

    Failed or invalid Mime Type: [application/SIMH-tape-data|0] (solved)

    Scheduled Pinned Locked Moved pfBlockerNG
    3 Posts 2 Posters 73 Views 2 Watching
    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 Offline
      fireodo
      last edited by fireodo

      Hi,
      @BBcan177
      today I found a strange error when pfBlockerNG 3.2.8 was executing the Update of the GeoIP Database from Maxmind.
      Here the extract from extras.log:

      Download Process Starting [ 08/16/25 03:30:00 ]
       /usr/local/share/GeoIP/GeoLite2-Country.tar.gz		200 OK
       /usr/local/share/GeoIP/GeoLite2-Country-CSV.zip		200 OK
       /usr/local/share/GeoIP/asn.mmdb		200 OK
      
      Failed to Download asn.mmdb
       /usr/local/share/GeoIP/asn.csv.gz		200 OK
      ASN Lookup Table has been updated [ 08/16/25 03:30:08 ]
      Download Process Ended [ 08/16/25 03:30:10 ]
      
      Country code update Start
       Processing ISO IPv4 Continent/Country Data [ 08/16/25 03:30:11 ]
       Processing ISO IPv6 Continent/Country Data [ 08/16/25 03:30:30 ]
       Creating pfBlockerNG Continent PHP files
       IPv4 Africa			 [ 08/16/25 03:30:41 ]
       IPv6 Africa			
       IPv4 Antarctica		
       IPv6 Antarctica		
       IPv4 Asia			
       IPv6 Asia			 [ 08/16/25 03:30:43 ]
       IPv4 Europe			 [ 08/16/25 03:30:44 ]
       IPv6 Europe			 [ 08/16/25 03:30:48 ]
       IPv4 North America		 [ 08/16/25 03:30:51 ]
       IPv6 North America		 [ 08/16/25 03:30:56 ]
       IPv4 Oceania			 [ 08/16/25 03:31:00 ]
       IPv6 Oceania			 [ 08/16/25 03:31:01 ]
       IPv4 South America		
       IPv6 South America		
       IPv4 Proxy and Satellite	
       IPv6 Proxy and Satellite	 [ 08/16/25 03:31:02 ]
       IPv4 Top Spammers		
       IPv6 Top Spammers		
       pfBlockerNG Reputation Tab
      Country Code Update Ended
      

      and in the error.log:

      [PFB_FILTER - 17] Failed or invalid Mime Type: [application/SIMH-tape-data|0]
      

      When I execute manually

      /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php dcc
      

      I get:

      Download Process Starting [ 08/16/25 09:18:02 ]
       /usr/local/share/GeoIP/GeoLite2-Country.tar.gz		200 OK
       /usr/local/share/GeoIP/GeoLite2-Country-CSV.zip		200 OK
       /usr/local/share/GeoIP/asn.mmdb		200 OK
      
      Failed to Download asn.mmdb
       /usr/local/share/GeoIP/asn.csv.gz		200 OK
      ASN Lookup Table has been updated [ 08/16/25 09:18:09 ]
      Download Process Ended [ 08/16/25 09:18:11 ]
      
      Country code update Start
       Processing ISO IPv4 Continent/Country Data [ 08/16/25 09:18:12 ]
       Processing ISO IPv6 Continent/Country Data [ 08/16/25 09:18:33 ]
       Creating pfBlockerNG Continent PHP files
       IPv4 Africa			 [ 08/16/25 09:18:44 ]
       IPv6 Africa			
       IPv4 Antarctica		
       IPv6 Antarctica		
       IPv4 Asia			
       IPv6 Asia			 [ 08/16/25 09:18:46 ]
       IPv4 Europe			 [ 08/16/25 09:18:47 ]
       IPv6 Europe			 [ 08/16/25 09:18:51 ]
       IPv4 North America		 [ 08/16/25 09:18:54 ]
       IPv6 North America		 [ 08/16/25 09:18:59 ]
       IPv4 Oceania			 [ 08/16/25 09:19:03 ]
       IPv6 Oceania			 [ 08/16/25 09:19:04 ]
       IPv4 South America		
       IPv6 South America		
       IPv4 Proxy and Satellite	
       IPv6 Proxy and Satellite	
       IPv4 Top Spammers		
       IPv6 Top Spammers		 [ 08/16/25 09:19:05 ]
       pfBlockerNG Reputation Tab
      Country Code Update Ended
      
      

      and also the before mentioned entry in the error.log

      (so it leads me to the conclusion its related to the GeoIP Update process)

      I have no Idea from where that could come from. Last update was 5 days ago and there was everything fine ... 🤔

      Edit: Could it be related to this?:

      /usr/local/share/GeoIP/asn.mmdb 200 OK

      Failed to Download asn.mmdb

      Regards,
      fireodo

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

      tinfoilmattT 1 Reply Last reply Reply Quote 1
      • tinfoilmattT Offline
        tinfoilmatt @fireodo
        last edited by

        Also started seeing this recently. Still investigating—but found this discussion (ASN data is IPinfo, not Maxmind), and then there was this whole recent thing where an "application/octet-stream" MIME type download started appearing (I forget with which popular feed). Fix was to edit pfblockerng.inc at ~L257.

        I'm considering simply adding "application/SIMH-tape-data" to the list to test.

        fireodoF 1 Reply Last reply Reply Quote 1
        • fireodoF Offline
          fireodo @tinfoilmatt
          last edited by fireodo

          @tinfoilmatt said in Failed or invalid Mime Type: [application/SIMH-tape-data|0]:
          (ASN data is IPinfo, not Maxmind)

          Thats correct but "GeoLite2-Country" is from Maxmind ... (that confused me)

          I'm considering simply adding "application/SIMH-tape-data" to the list to test.

          Thats what i tought too ... I'll try when I have the time for it ...

          Edit: I can confirm - adding "application/SIMH-tape-data" to the list at line 257 in /usr/local/pkg/pfblockerng/pfblockerng.inc did the trick - no more error!
          Edit: OK, problem resolved but I would like to know, whats the cause for that error! 🤔
          Thanks a lot!

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

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