PfBlockerNG v2.0 w/DNSBL
-
Getting this EasyList error for w/o elements.
[ DNSBL_EasyList - w/o Elements ] Download FAIL
Could not determine IP address of host.
Firewall and/or IDS are not blocking download. -
Getting this EasyList error for w/o elements.
[ DNSBL_EasyList - w/o Elements ] Download FAIL
Could not determine IP address of host.
Firewall and/or IDS are not blocking download.Well that's not a package error. You need working DNS. :D
$ host easylist-downloads.adblockplus.org easylist-downloads.adblockplus.org has address 148.251.139.76 easylist-downloads.adblockplus.org has address 144.76.100.145 easylist-downloads.adblockplus.org has IPv6 address 2a01:4f8:200:114f::2 easylist-downloads.adblockplus.org has IPv6 address 2a01:4f8:192:7126::2
-
Getting this EasyList error for w/o elements.
[ DNSBL_EasyList - w/o Elements ] Download FAIL
Could not determine IP address of host.
Firewall and/or IDS are not blocking download.Well that's not a package error. You need working DNS. :D
$ host easylist-downloads.adblockplus.org easylist-downloads.adblockplus.org has address 148.251.139.76 easylist-downloads.adblockplus.org has address 144.76.100.145 easylist-downloads.adblockplus.org has IPv6 address 2a01:4f8:200:114f::2 easylist-downloads.adblockplus.org has IPv6 address 2a01:4f8:192:7126::2
Filter out easylist-downloads.adblockplus.org via DNSBL as well as add it to an allow alias and see if this helps. Depending out how you having things setup could be blocking. Host lookup most likely works because it's doing is via unbound. Just a thought let us know :)
Tony M
-
I must be doing something wrong as when I load a page containing ads the page load stops until ad servers are timed out. Also in Status -> Services, dnsbl is showed as stopped. Can't seem to find any error logs about it anywhere. Also my alerts tab is empty besides the Deny list.
I configured dnsbl as instructed on page 1 and have double checked everything to be the same way. Though maybe the reason is that my clients use my domain controller as their dns which forwards to pfsense which in turn forwards to OpenDNS. Any ideas where I went wrong?
-
I must be doing something wrong as when I load a page containing ads the page load stops until ad servers are timed out. Also in Status -> Services, dnsbl is showed as stopped. Can't seem to find any error logs about it anywhere. Also my alerts tab is empty besides the Deny list.
I configured dnsbl as instructed on page 1 and have double checked everything to be the same way. Though maybe the reason is that my clients use my domain controller as their dns which forwards to pfsense which in turn forwards to OpenDNS. Any ideas where I went wrong?
dnsbl show as stopped is not a good sign, are you sure dnsbl check box is enabled as well as unbound (DNS Resolver)?
-
I must be doing something wrong as when I load a page containing ads the page load stops until ad servers are timed out. Also in Status -> Services, dnsbl is showed as stopped. Can't seem to find any error logs about it anywhere. Also my alerts tab is empty besides the Deny list.
I configured dnsbl as instructed on page 1 and have double checked everything to be the same way. Though maybe the reason is that my clients use my domain controller as their dns which forwards to pfsense which in turn forwards to OpenDNS. Any ideas where I went wrong?
dnsbl show as stopped is not a good sign, are you sure dnsbl check box is enabled as well as unbound (DNS Resolver)?
Yes, both dnsbl and unbound check box's are checked. The funny thing is that it blocks the ad's when enabled, but doesn't seem to use the 1x1 gif and instead just times out the servers.
-
I must be doing something wrong as when I load a page containing ads the page load stops until ad servers are timed out. Also in Status -> Services, dnsbl is showed as stopped. Can't seem to find any error logs about it anywhere. Also my alerts tab is empty besides the Deny list.
I configured dnsbl as instructed on page 1 and have double checked everything to be the same way. Though maybe the reason is that my clients use my domain controller as their dns which forwards to pfsense which in turn forwards to OpenDNS. Any ideas where I went wrong?
dnsbl show as stopped is not a good sign, are you sure dnsbl check box is enabled as well as unbound (DNS Resolver)?
Yes, both dnsbl and unbound check box's are checked. The funny thing is that it blocks the ad's when enabled, but doesn't seem to use the 1x1 gif and instead just times out the servers.
If the dnsbl web server is not running this is what I would expect, request will not have a response and will time out. Anything in /var/log/pfblockerng/dnsbl_error.log and dnsbl.log files?
-
The dnsbl_error.log seems normal, no errors or anything else like that. The dnsbl.log says "Log file is empty or does not exist." which I assume is because the service isn't started.
-
The dnsbl_error.log seems normal, no errors or anything else like that. The dnsbl.log says "Log file is empty or does not exist." which I assume is because the service isn't started.
Got it working by completely removing the package and settings and reinstalling, removing settings was the key though no idea what was wrong. Now it starts as it should.
-
Upgraded to 2.0, now always see the yellow sign on the status page with the following tooltip:
pfBlockerNG deDuplcation is out of sync. Perform a Force Reload to correct.
Tried Force Reload, Update, Cron, selecting/de-selecting deduplication is settings - nothing helps.
This warning goes off only if deduplication is disabled.
-
Host lookup most likely works because it's doing is via unbound. Just a thought let us know :)
Well, it's not. Also not blocked, otherwise it'd be resolved to the DNSBL VIP.
Tried Force Reload, Update, Cron, selecting/de-selecting deduplication is settings - nothing helps.
This warning goes off only if deduplication is disabled.Probably easier to just wipe the lists:
rm -rf /var/db/pfblockerng/
Reinstall the package and run 'Force Update' after that.
-
I am receiving certificate invalid errors after enabling the DNSBL when navigating certain sites - so far the culprit seems to mainly be googleads.g.doubleclick.net when trying to serve content over an HTTPS enabled website.
@Atlan, As indicated in reggie14's post, if you can reply back with the following questions below and we can go from there.
Can you provide additional information to reproduce this? What browser are you using? What webpage were you accessing? If I can see an example, and maybe inspect a packet capture and page source code may be I can see what's going on.
The dnsbl_error.log seems normal, no errors or anything else like that. The dnsbl.log says "Log file is empty or does not exist." which I assume is because the service isn't started.
Got it working by completely removing the package and settings and reinstalling, removing settings was the key though no idea what was wrong. Now it starts as it should.
If there are errors starting/stopping the DNSBL service, those will be logged to the pfSense System log. The RC file for the DNSBL service is here (/usr/local/etc/rc.d/dnsbl.sh [stop|start|restart])
The dnsbl_error.log seems normal, no errors or anything else like that. The dnsbl.log says "Log file is empty or does not exist." which I assume is because the service isn't started.
The dnsbl_error.log is actually an error log for DNSBL Lighttpd. I will be renaming this file to something else to avoid this confusion. This log is used to collect any HTTPS alerts from the Lighttpd conditional error process (debug.log-condition-handling option).
Upgraded to 2.0, now always see the yellow sign on the status page with the following tooltip:
This warning indicates that the masterfile is out of sync with the files in the /deny folder. This is a new feature that was added to v2.0 to warn users about this issue. Usually running a 'Force Reload' is sufficient to fix that warning; however, clearing out all the files and starting fresh might be needed in certain conditions. If this is still an issue, please review the pfblockerng.log file for other clues.
Probably easier to just wipe the lists:
rm -rf /var/db/pfblockerng/
Reinstall the package and run 'Force Update' after that.
Can also just uncheck 'Keep Settings' and Disable 'pfBNG' and 'Save' which will do the same :)
Getting this EasyList error for w/o elements.
[ DNSBL_EasyList - w/o Elements ] Download FAIL
Could not determine IP address of host.
Firewall and/or IDS are not blocking download.Well, it's not. Also not blocked, otherwise it'd be resolved to the DNSBL VIP.
I will be adding another validation on failed downloads to check if the 'Host Address' returns as the DNSBL VIP address (Meaning DNSBL is blocking the download), and adding that to the Error Response. But yes, if the error is "Could not determine IP address of host.", then there was another issue with the DNS lookup that failed. If DNSBL was blocking this download, that error message would not be displayed.
-
'If there are errors starting/stopping the DNSBL service, those will be logged to the pfSense System log. The RC file for the DNSBL service is here (/usr/local/etc/rc.d/dnsbl.sh [stop|start|restart])'
I didn't see anything logged in my system log to help me identify my problem. Luckily I saw your post - :)
My DNSBL service won't start. When I attempt to start it from command line it comes back with:
[2.2.5-RELEASE][root@cerberus.home]/root: /usr/local/etc/rc.d/dnsbl.sh start 2015-11-22 12:06:31: (network.c.542) SSL: BIO_read_filename('/var/unbound/dnsbl_cert.pem') failed
when I dive into 'var/unbound/' there is no 'dnsbl_cert.pem' file.
I would rather not lose all of my settings to reinstall the package. I've already tried this with the box checked 'keep settings' but it still didn't let the service start. Is there a way to get the file 'dnsbl_cert.pem' or a way to backup my settings and reapply them after I completely wipe the package?
thank you!
;D
-
Is there a way to get the file 'dnsbl_cert.pem' or a way to backup my settings and reapply them after I completely wipe the package?
If you run 'Force Update' that pem file should be automatically created.
-
Just did a 'force update' and it still didn't create the 'dnsbl_cert.pem' file. ..and I do have 'Enable DNSBL' checked.
from the log viewer:
http://pastebin.com/HbA3ZRiK
Thanks
-
It looks like Cron was running in the background when you pressed "Save"… This was in the log:
** DNSBL Disabled **
Try another 'Force update'. You also have to change the 'State' to 'Flex' for some of those lists that are failing.
Also Toasted Spam has this URL
http://toastedspam.com/denyAlso put 'StopForumSpam' into its own Alias and set the frequency to 'Once per day', as that List is rate-limiting connections.
-
Okay - I uncheck the 'enable DNSBL' box, saved it & then rechecked it. Saved it again, all while I made sure CRON was not running.
I also made the changes you suggested, thanks! :D
log: http://pastebin.com/jHQnF1qH
it still tells me
DNSBL Disabled
-
One of the required DNSBL settings is missing. Do you have the DNS Resolver (Unbound) enabled?
I also fixed an issue with the Download Failure function.
https://github.com/pfsense/pfsense-packages/pull/1192 -
I was just replying to you about my mistake! ::)
Sorry to waste your time. I didn't have the DNS Resolver enabled. I disabled the DNS forwarder, enabled DNS Resolver & did another 'force update' & it built the file and updated the config.
Thanks & again, sorry!
-
NP. This will probably help someone else who hits the same scenario. Either way, seeing your 'pfblockerng.log' tweaked me to check the code and find a small error with the download failure function. ;)