alectrocute / UnboundBL

🛑 DNSBL (adblock) on OPNsense with UnboundBL & Unbound DNS
62 stars 12 forks source link

No /var/unbound/dnsbl.conf created #6

Open koenvervloesem opened 5 years ago

koenvervloesem commented 5 years ago

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 commented 5 years ago

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...

tlsnine commented 5 years ago
chmod +x /usr/local/opnsense/scripts/OPNsense/Unboundbl/*.sh

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

fireheadman commented 4 years ago

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 commented 4 years ago

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