Project

General

Profile

Bug #8903

pfBlockerNG: PHP error

Added by Steve Wheeler 10 months ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
pfBlockerNG
Target version:
-
Start date:
09/16/2018
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.4.4
Affected Architecture:
All

Description

Seeing this on a clean install of pfSense-2.4.4.r.20180914.1530 and restoring an existing config.

PHP Errors:
[16-Sep-2018 16:44:57 Europe/London] PHP Warning:  Illegal string offset 'rule' in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 114

History

#1 Updated by Steve Wheeler 10 months ago

Sorry clipped the line in the copy there. Actual warning is:

[16-Sep-2018 16:45:55 Europe/London] PHP Warning:  Illegal string offset 'rule' in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 1146

#2 Updated by Steve Wheeler 10 months ago

This error looks to be triggering an unrequired config update:

--- /conf/backup/config-1537119183.xml    2018-09-16 18:33:05.281034000 +0100
+++ /conf/backup/config-1537119185.xml    2018-09-16 18:33:06.918551000 +0100
@@ -941,8 +941,8 @@
         <sequence>system_information:col1:open:0,interfaces:col2:open:0,services_status:col2:open:0,gateways:col2:open:0,ipsec:col2:open:0,pfblockerng:col3:open:0,suricata_alerts:col3:open:0</sequence>
     </widgets>
     <revision>
-        <time>1537119183</time>
-        <description><![CDATA[(system): pfBlockerNG: saving earlyshellcmd]]></description>
+        <time>1537119185</time>
+        <description><![CDATA[(system): pfBlockerNG: saving DNSBL changes]]></description>
         <username>(system)</username>
     </revision>
     <openvpn>

#4 Updated by BBcan177 . 10 months ago

Posted two PR to fix these issues and add other improvements.

https://github.com/pfsense/FreeBSD-ports/pull/567
https://github.com/pfsense/FreeBSD-ports/pull/569

Note: It doesn't address the earlyshellcmd issue as I am not sure if that is a pfBlockerNG issue?

#5 Updated by Steve Wheeler 10 months ago

Sorry, you're right, this is the -devel package. I'd forgotten I'd installed that.

I agree the earlyshellcmd issue looks to be a problem with shellcmd not pfBlocker.

Also available in: Atom PDF