britannic / blacklist

Blacklist and Adware Blocking for the Ubiquiti EdgeMax Router
Other
533 stars 35 forks source link

No config files in /etc/dnsmasq.d after apt install #49

Closed EliRibble closed 1 year ago

EliRibble commented 1 year ago

I installed to an EdgeRouter X using the instructions here.

me@ubnt:~$ show configuration commands | grep blacklist
set service dns forwarding blacklist disabled false
set service dns forwarding blacklist dns-redirect-ip 0.0.0.0
set system package repository blacklist components main
set system package repository blacklist description 'Britannic blacklist debian stretch repository'
set system package repository blacklist distribution stretch
set system package repository blacklist password ''
set system package repository blacklist url 'https://raw.githubusercontent.com/britannic/debian-repo/master/blacklist/public/'
set system package repository blacklist username ''
set system task-scheduler task update_blacklists executable arguments 10800
set system task-scheduler task update_blacklists executable path /config/scripts/update-dnsmasq-cronjob.sh
set system task-scheduler task update_blacklists interval 1d
~$ tail /var/log/update-dnsmasq.log
NOTI[001]2023-01-26 05:31:13.591: Starting blacklist update...
INFO[002]2023-01-26 05:31:13.624: Checking for stale blacklists...
INFO[003]2023-01-26 05:31:15.849: Successfully restarted dnsmasq
NOTI[004]2023-01-26 05:31:15.850: Blacklist update completed......
~$ ls /etc/dnsmasq.d
README                    dnsmasq-dhcp-config.conf

This seems to indicate that the package in installed and blacklist update is running but it's not actually writing any files for dnsmasq to process that blackhole DNS requests to bad hosts. Is there a way I can confirm that is the case? Are there other troubleshooting steps I should take?

EliRibble commented 1 year ago

Also:

$ sudo /config/scripts/update-dnsmasq -v
NOTI[001]05:31:13.591: Starting blacklist update...
INFO[002]05:31:13.624: Checking for stale blacklists...
INFO[003]05:31:15.849: Successfully restarted dnsmasq
NOTI[004]05:31:15.850: Blacklist update completed......

and

$ sudo /config/scripts/update-dnsmasq -version
 Build Information:
   Version:         1.2.4.7
   Date:            2021-12-18T181409
   CPU:             mipsle
   OS:              linux
   Git hash:            3f80f3c
britannic commented 1 year ago

Please post your question to the DNS Adblocking & Blacklisting dnsmasq Configuration Integration Package thread.