Project

General

Profile

Actions

Bug #13926

closed

pfBlockerNG-devel 3.2.0 - Slow MaxMind Database Downloads under PHP 8.1

Added by Steve Wilson almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
pfBlockerNG
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
23.01
Affected Architecture:

Description

Prior to the update to PHP 8.1, downloads of the MaxMind database would take approximately 4 seconds. After the update to PHP 8.1, downloads now take over 13 minutes:

Download Process Starting [ 02/3/23 01:00:00 ]

Download Process Starting [ 02/3/23 01:00:00 ]
/usr/local/share/GeoIP/GeoLite2-Country.tar.gz 200 OK
/usr/local/share/GeoIP/GeoLite2-Country.tar.gz 200 OK
/usr/local/share/GeoIP/GeoLite2-Country-CSV.zip 200 OK
/usr/local/share/GeoIP/GeoLite2-Country-CSV.zip 200 OK
Download Process Ended [ 02/3/23 01:13:24 ]

Download Process Ended [ 02/3/23 01:13:24 ]

Similar issues with MaxMind download times have been noted with the Suricata package. See https://redmine.pfsense.org/issues/13839#change-65485. Modifying the default cURL options appearing at lines 165 - 175 in the pfblockerng.inc file with changes similar to those made to the Suricata package restores download performance to pre-PHP 8.1 levels:

Download Process Starting [ 02/3/23 02:00:00 ]

Download Process Starting [ 02/3/23 02:00:00 ]
/usr/local/share/GeoIP/GeoLite2-Country.tar.gz 200 OK
/usr/local/share/GeoIP/GeoLite2-Country.tar.gz 200 OK
/usr/local/share/GeoIP/GeoLite2-Country-CSV.zip 200 OK
/usr/local/share/GeoIP/GeoLite2-Country-CSV.zip 200 OK
Download Process Ended [ 02/3/23 02:00:04 ]

Download Process Ended [ 02/3/23 02:00:04 ]

It may be worthwhile to consider importing the changes made in the Suricata Redmine referenced above into the pfBlocker package to avoid these download delays.


Related issues

Related to Bug #13874: pfBlocker -devel hanging on cron jobsResolved

Actions
Actions

Also available in: Atom PDF