-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move assignement of $pfb['dnsbl_iface'] into pfb_global() in pfblocker.inc #1105
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a part of this pull request, you must increase PORTVERSION or add a PORTREVISION line in the package Makefile. Without this version increase, the package will not be rebuilt to include the new change.
Done |
This change doesn't do anything. The function sync_package_pfblockerng() calls these functions:
So that variable $pfb['dnsbl_iface'] should already be defined and defaults to "lo0' when not defined. There is some other reason for that error to occur. I would also suggest switching to Unbound Python mode and using Null Blocking Mode. |
Let's just take the ballistics. pfb_sync_pckage() is called directly (on boot): // Main pfBlockerNG function
It calls pfb_global, where $pfb['dnsbl_iface'] is not set, ie empty. It then calls: // Create DNSBL VIP and NAT rules, lighttpd conf and services
Again, a call to pfb_global() and $pfb['dnsbl_iface'] is still empty, $iface is empty and the whole logic goes down the drain. |
ok I see that there is another call to pfb_create_dnsbl(), I looked at the other call at the bottom of the sync function. There are 5 variables that will need to be moved to pfb_global() (lines 6192-6197) I have a PR that I plan on submitting today, so two choices:
Thanks for reporting the bug. |
Superseded by #1106 |
Fixes: https://redmine.pfsense.org/issues/12330