UnboundBL icon indicating copy to clipboard operation
UnboundBL copied to clipboard

No /var/unbound/dnsbl.conf created

Open koenvervloesem opened this issue 6 years ago • 4 comments

Thanks for creating this plugin, it looks great!

However, I can't get it to work. I installed it like this:

opnsense-code tools plugins
cd /usr/plugins/dns
git clone https://github.com/alectrocute/UnboundBL.git
cd UnboundBL
make package
pkg add work/pkg/*.txz

I can then find the configuration page in Services / Unbound DNS / DNSBL. However, when I add a blocklist url like the https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts in your example, enable the plugin and then click Save, nothing happens. There's no output in the console section like in your screenshot, the Total domains on blocklist stays empty, and there's no /var/unbound/dnsbl.conf created. The same happens with other blocklist URLs.

Is there a log file or another way to look at what's happening under the hood? There's nothing shown in /var/log/system.log.

koenvervloesem avatar Mar 22 '19 13:03 koenvervloesem

Ok, I found the culprit. After reading your pull request https://github.com/opnsense/plugins/pull/1249, I found some errors in /var/log/configd.log and I managed to get it working by:

chmod +x /usr/local/opnsense/scripts/OPNsense/Unboundbl/*.sh

It seems those two scripts weren't executable...

koenvervloesem avatar Mar 22 '19 14:03 koenvervloesem

chmod +x /usr/local/opnsense/scripts/OPNsense/Unboundbl/*.sh

I was having the same issue. Thanks for the post!!

tlsnine avatar Apr 22 '19 02:04 tlsnine

Same here.... Definitely needs some smoothing over on the install notes as well. image

After the chmod, there is actual output to see... image

fireheadman avatar Jul 10 '20 17:07 fireheadman

Bad part is.... the /var/unbound/dnsbl.conf file keeps getting wiped out when I add a whitelist host.

Add entry, save, restart... its gone every time. Although as others are getting too... it does show sites being blocked.

What file is created for the whitelist? image

fireheadman avatar Jul 10 '20 17:07 fireheadman