New pfblockerNG install Database Sanity check Failed
-
@marchand-guy Verified hypothesis. The code always reported true before 3.2.8.
Good catch -
Looks like dev (@BBcan177) is already reviewing. Good teamwork, y'all.
Responsible commit here. Remark indicates it was a cleanup commit. I don't have the coding skills to say for sure, but this
pfblocker.php
update and thispfblocker_alerts.php
update look odd for some reason, in addition to whatever thepfblockerng.sh
L1281 fix exposed. -
I think I found the last issue. The "masterfile" is a list of Filename/IPs. The "mastercat" file is just the IPs only. So it was trying to grep -v (exclude) any lines that start with the placeholder IP. So we need to change the masterfile to the mastercat in this line.
Try to change this line from:
From:
s1="$(grep -cv ^${ip_placeholder2}$ ${masterfile})"To:
s1="$(grep -cv ^${ip_placeholder2}$ ${mastercat})" -
@BBcan177 Thank you!
-
@BBcan177 Success!
Database Sanity check [ PASSED ]
-
@Maltz How?
No change on pfsense. -
@marchand-guy I manually made the change to the shell script that BBcan177 described.
-
@BBcan177 so next step is a new package for pfSense?
-
@Maltz said in New pfblockerNG install Database Sanity check Failed:
@marchand-guy I manually made the change to the shell script that BBcan177 described.
Ok, done as well.
Thanks -
Thanks, @BBcan177.
Some clear confusion ITT re pfSense system version and pfBlockerNG package version numbers. For posterity:
pfSense 2.7.2 CE - Database Sanity check issue not present, because
pfBlockerNG
andpfBlockerNG-devel
packages are both on "RELENG_2_7_2" branch ofpfSense / FreeBSD-Ports
pfSense 2.8 CE - Database Sanity check regression, possibly because branch updated to "devel" for both packages?
(
RELENG_2_7_2
branch:pfBlockerNG
/pfBlockerNG-devel
)
(devel
branch:pfBlockerNG
/pfBlockerNG-devel
)I think that's what's happened. Maybe someone can give me a sanity check.
The package version numbers appear to have been realigned in pfSense 2.8 CE however. The last package versions of
pfBlockerNG
andpfBockerNG-devel
on pfSense 2.7.2 CE were3.2.8
and3.2.0_20
respectively.But under 2.8 CE, both packages are now currently on version
3.2.8
(pfBlockerNG
andpfBlockerNG-devel
).Will both packages continue to be maintained separately and we should expect version numbers to potentially diverge again?