pfb_dnsnl (pfBlockerNG DNSBL) service won't start
-
@jrey I tried both.
Following scenario's I tried:
- Upgrade pfSense
- Before upgrade, "pfBNG-devel" was installed with "keep settings".
- Uninstalled pfBNG-devel.
- Installed pfBNG
- DNSBL won't start
- After Upgrade pfSense, I removed pfBNG to start over.
I reinstalled without (so no) "keep settings".
Similar result, DNSBL won't start.
For both scenarios (above): No warnings or errors shown in the system log.
I'm really clueless ATM. Any suggestions, how to analyse ?
-
.. did you check pfblockerng.log or error.log ?
-
@jrey Where can I find the error.log in the WebGUI ?
Also see thescreenshots below, for some info.
pfBlockerNG and Services status
System log
pfblockerng.log looks fine, no errors
-
@bobslee said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:
Where can I find the error.log in the WebGUI ?
Same place as the pfblockerng.log -- should be on the drop down.
Also looks like it is running (dashboard Green Check) and it looks like the ADs_Basic has processed packets.
so you might try simply
disabling the service,
reboot pfsense
restart the service. -
@jrey Thanks, I followed your suggestion (also did before, I remember).
No lines in the error.log
No changes in the DNSBL Service Status (shows still not running).
Screenshot shows:
- Left: DNS lookup which appears in dnsbl.log
- Right but the DNS lookup succeeds?
This diagnostic/test lookup may not happen, or am I missing something ?
-
@jrey If you need me to check or modify something on CLI (SSH) ?
Let me know. -
@bobslee
so the DNSBL is in fact blocking.Can you hit VIP from a browser and see the blocked webpage?
you should see the webpage ?
-- command line what do you get if you restart the service there?
cd /usr/local/etc/rc.d
./pfb_dnsbl.sh restart -
@jrey The VIP in browser keeps loading and finally timeout.
Restart:
[23.05.1-RELEASE][USER@pfSense.local.lan]/usr/local/etc/rc.d: ./pfb_dnsbl.sh restart 2023-11-12 20:54:04: (/wrkdirs/usr/ports/www/lighttpd/work/lighttpd-1.4.71/src/plugin.c.209) dlopen() failed for: /usr/local/lib/lighttpd/mod_openssl.so Shared object "libssl.so.30" not found, required by "mod_openssl.so" 2023-11-12 20:54:04: (/wrkdirs/usr/ports/www/lighttpd/work/lighttpd-1.4.71/src/server.c.1631) loading plugins finally failed
-
@bobslee said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:
keeps loading and finally timeout.
so no page loads then
@bobslee said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:
./pfb_dnsbl.sh restart
umm, according to the dependencies, pfBlocker should be using
lighttpd 1.4.72and your error message for the restart says in part.
www/lighttpd/work/lighttpd-1.4.71
first check the version running - command prompt
lighttpd -vshould resspond
lighttpd/1.4.72 (ssl) - a light and fast webserverif 1.4.72 (like above ^^)
stop
else
wouldn't hurt to grab a config backup, then
uninstall pfblocker (remove the package) (keep settings)
reboot pfsense
both pfblocker packages should be in the available package
install the non devel version (you're not missing anything) -
@jrey said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:
according to the dependencies, pfBlocker should be using
lighttpd 1.4.72My bad, I was looking on a different version of pfsense
under 23.09 the dependency is 1.4.71 so likely not changed from 23.05.1 (but I don't recall)
however under 2.7.1-RC (my sandbox) it is 1.4.72 for the same pfBlocker Versionthere are minor differences in some of the other dependencies as well.
Under 23.09
under 2.7.1-RC
service is running on both here
but this:
2023-11-12 20:54:04: (/wrkdirs/usr/ports/www/lighttpd/work/lighttpd-1.4.71/src/plugin.c.209) dlopen() failed for: /usr/local/lib/lighttpd/mod_openssl.so Shared object "libssl.so.30" not found, required by "mod_openssl.so"
2023-11-12 20:54:04: (/wrkdirs/usr/ports/www/lighttpd/work/lighttpd-1.4.71/src/server.c.1631) loading plugins finally failedis likely the root cause why the service isn't starting, it is not seeing what it wants for a successful start.
Both of my instances only report a non-fatal cipher error when running pfb_dnsbl.sh restart but the non-fatal allows it to run, and service to start.
might need to trouble-shoot specifically the error you are getting,
"lighttpd not starting properly with llibssi.so not found error"
-
You didn't have a wrong repo branch selected when you did one of those updates you noted above.?
this implies maybe you did.
Before upgrade, "pfBNG-devel" was installed with "keep settings".
-
@jrey Thanks for your effort!
Indeed, my
lighttpd
version is1.4.71
.Regarding the update, I just followed the WebGUI update path.
I didn't altered the branch manually.At this moment he Update window shows:
FreeBSD pkg program/command
More info to elaborate on the issue ...
Maybe following it's related to the openssl issue ?
Just checking here. Does pfSense ship with thepkg
command ?When I run eg
pkg info lighttpd
I get the output:
ld-elf.so.1: Shared object "libssl.so.30" not found, required by "pkg"
Which steps (of below) to proceed?
1. Reinstall pfBNG ?
Before this post, I already did your previous suggestion.
So maybe try again?Uninstall pfBNG (keep settings)
Reboot
Install pfBNG non devel.2. Update to 23.09 ?
Is it stable enough, things won't break?
Regarding backups:
I also use the ABC (auto config backup)
Is it possible to restore/rooback the whole system OS/FreeBSD with the ABC, in worst case? -
@jrey I noticed following.
However I didn't performed anything (no side effects) on the pfSense CLI yet, to keep it standard.Probably the
pkg
command isn't available, instead there'spkg-static
(kinda wrapper) ?I found the documentation section "Troubleshooting Upgrades".
https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html
Maybe there's useful info regarding the issue (pfBNG + lighttpd + openssl) and deps ? -
@jrey By the way ...
I doubt whether it's anopenssl
package issue, because the webserver (Lighttpd) serves HTTPS and also OpenVPN server/client (does use SSL?) still works.Kinda lost now.
-
@bobslee said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:
When I run eg pkg info lighttpd I get the output:
ld-elf.so.1: Shared object "libssl.so.30" not found, required by "pkg"Sound about right, if the Repo is pointing at 23.09 which it appears to be in the screen shot showing latest stable version above. Anything installed would be puling from there, not the version you are on which is still. 23.05.1
You might find this thread helpful in this regard.
https://forum.netgate.com/topic/183088/error-libssl-so-30-not-found-when-installing-package?_=1699874971773
-
@jrey Ok that clarifies :)
The system update screen seems a bit awkward to me, to pin the pkg repo that way.
It also suddenly was set to 23.09 (I didn't manually).Can you recommend how I can proceed quickly and safely ?
Sorry I'm really in a lack of time.Either, one of below ... ?
(1) Change Branch ?
Should I just change the "Branch" to "Previous Stable Version (23.05)" ?
Does this immediately updates the pkg index ?
Or which action to undertake here ?(2) Update the systgem (OS + packages) to 23.09 ?
-
@bobslee said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:
It also suddenly was set to 23.09 (I didn't manually).
Interesting before an update, it should always be showing you the version you are currently on and the drop down will have the next (if one is available) or last as selection options.
Clearly the screen capture you provided is showing conflicting information,
a) that you are on the branch "Latest Stable Version (23.09)
b) that you are current at 23.05.1Seems broken ;-)
If you are formatted ZFS Boot Environments might be your friend ?
I really can't recommend the next best course of action (and there are many) for your particular situation, that is a risk evaluation for each case, you need to make.
If you try to change the Branch here, forward or backward give it several minutes to adjust. I select the branch, navigate to the dashboard, grab a coffee, come back and confirm what the screen says, then proceed if the choice is appropriate. I've never had to select a previous version.
Often times in cases like this a fresh new image (start from scratch) is what I see recommended more often than not.
-
@jrey Thanks for your suggestions and effort !
I really appreciate it !
I understand the dedication in an open source community, as I also develop and maintain a big project.I feel a bit n00b now.
Apparently the System Update version pinning was the cause of all this!As you suggested:
I selected the previous stable version (my base system is on).
Waited.
Removed/uninstalled pfBNG
Installed pfBNGNow the DNSBL service just works !
I feel sorry about your efforts.
But the pfSense UI/UX could be improved here. -
Awesome !
I feel sorry about your efforts.
No problem, it was nice we could troubleshoot down to the actual cause of the DNSBL service not starting.
Even though the DNSBL was by all accounts "running", the service itself didn't show as started. The inability of the start to actually record/report on the lighttpd startup failure. Seems like a problem.
That of course is a completely different issue..
Have a great day!
-
@jrey Indeed, it sometimes takes a few hurdles to find the actual cause is somewhere else.
I don't whether the DNSBL was actually operational, because now the browser responds with pfBNG page when I request the VIP.
Thanks and enjoy your day ! :)