Simple-adblock: fast, lean and fully uci/luci configurable AdBlocking

I don't have OpenSSL installed. But wanting to install simple-adblock, one of the dependencies is OpenSSL. And it seems to me that it is because of wget-ssl.

Can you post more details about your OpenWrt build and ideally the output of opkg list-installed?

This appears when I want to install luci-app-simple-adblock-es

simple adblock blocking Twitter's link service (http://t.co) urls.

DNS_PROBE_FINISHED_NXDOMAIN

without simple adblock running urls work fine.

simple-adblock by itself doesn't block anything, it downloads the domains/addresses from the lists you select/add and lets dnsmasq use that for blocking.

I'm currently using the final block list which has about 370k entries, and it does NOT block t.co.

You can either:

  • explicitly white-list t.co so even if it's in some of the block-lists you use it will be removed from blocking
  • find out which block-list has that entry and stop using that block-list
3 Likes

Thank you for suggesting and finally I figured out how to white-list it and now it is working thank you again :innocent:

1 Like

i am receiving this message but nothing is wrong!

what should i do?

unninstall and reinstall from command line ? (it is not possible throug gui/luci isn't it?)

Reinstalling won't help. It may be an issue with the code for the luci app, I do have a fix in my own repo, if you could follow the steps to add my repo to your router and then install luci-app-simple-adblock version 1.8.8-3 let me know if the issue is fixed.

1 Like

tried but got this:

Change your custom feed to:
src/gz stangri_repo https://repo.openwrt.melmac.net

1 Like


do i need to worry about that failed signature check ?

this is what i get when i search without AND with the sugggested repo added:

1.8.8-3 does not come up... or should i look tthe package from cli ?

Thank You

You need to install SSL support for uclient-fetch/wget as my repo is only accessible thru https, not http.

You can also install the ipk file directly.

New in simple-adblock: 1.8.8-4: the allow command-line parameter allows to unblock domain(s) in the current block-list and save domain(s) in the config file as allowed domain(s). Helpful if you're getting DNS resolution errors from your browser and want to quickly allow the blocked domain.

I'd appreciate some feedback (especially if you're using dnsmasq.ipset option) over the next week or so before I submit PR/merge update into official OpenWrt repo.

There's no WebUI for this (only CLI), the WebUI for this will not be implemented until I (or someone else) transition the WebUI code from lua to Javascript.

Hello,

Adblock is not working for me as I'm getting error daemon.err dnsmasq[1]: failed to load names from /var/run/simple-adblock/dnsmasq.addnhosts: No such file or directory after upgrading to latest stable OpenWrt 22.03

I've tried couple of different settings but nothing helped. If I manually restart dnsmasq it will work as expected and ad will be blocked. But it still fails with the error on router boot and ad is not blocked in this case

Any idea what the issue might be?

Does simple-adblock actually create non-empty files in question?

Yes the generated file is not empty and if I restart dnsmasq by hand any ad from list will be blocked

Have you tried increasing the simple-adblock boot_delay option?

I've tried to increase boot_delay to 5 minutes, but the problem is still here.

simple-adblock logs on router boot
Thu Sep 15 20:41:11 2022 user.notice simple-adblock [4076]: Starting simple-adblock 1.9.0-1...
Thu Sep 15 20:41:12 2022 user.notice simple-adblock [4076]: [DL] Config  Update:  cdn.jsdelivr.net [✓]
Thu Sep 15 20:41:13 2022 user.notice simple-adblock [4076]: [DL] Blocked Domains: cdn.jsdelivr.net [✓]
Thu Sep 15 20:41:13 2022 user.notice simple-adblock [4076]: [DL] Blocked Hosts:   cdn.jsdelivr.net [✓]
Thu Sep 15 20:41:14 2022 user.notice simple-adblock [4076]: [DL] Blocked Domains: s3.amazonaws.com [✓]
Thu Sep 15 20:41:15 2022 user.notice simple-adblock [4076]: [DL] Blocked Hosts:   winhelp2002.mvps.org [✓]
Thu Sep 15 20:41:19 2022 user.notice simple-adblock [4076]: [DL] Blocked Hosts:   someonewhocares.org [✓]
Thu Sep 15 20:41:19 2022 user.notice simple-adblock [4076]: Sorting combined list [✓]
Thu Sep 15 20:41:32 2022 user.notice simple-adblock [4076]: Optimizing combined list [✓]
Thu Sep 15 20:41:32 2022 user.notice simple-adblock [4076]: Allowing domains [✓]
Thu Sep 15 20:41:32 2022 user.notice simple-adblock [4076]: Formatting merged file [✓]
Thu Sep 15 20:41:32 2022 user.notice simple-adblock [4076]: Creating DNSMASQ servers file [✓]
Thu Sep 15 20:41:33 2022 user.notice simple-adblock [4076]: Removing temporary files [✓]
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: read /tmp/hosts/odhcpd - 1 addresses
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Thu Sep 15 20:41:33 2022 daemon.err dnsmasq[1]: cannot read /var/run/simple-adblock/dnsmasq.servers: No such file or directory
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using nameserver 208.67.222.222#53
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using nameserver 4.4.4.4#53
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using nameserver 8.8.8.8#53
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using nameserver 82.209.200.16#53
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using nameserver 82.209.200.17#53
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for test
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for local
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Thu Sep 15 20:41:33 2022 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Thu Sep 15 20:41:33 2022 user.notice simple-adblock [4076]: Reloading DNSMASQ [✓]
Thu Sep 15 20:41:33 2022 user.notice simple-adblock [4076]: service is blocking 19114 domains (with dnsmasq.servers) [✓]
Thu Sep 15 20:41:34 2022 daemon.info procd: - init complete -
And there logs after I manually restarted dnsmasq
Thu Sep 15 20:44:53 2022 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: DNS service limited to local subnets
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for test
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for local
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using nameserver 208.67.222.222#53
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using nameserver 4.4.4.4#53
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using nameserver 8.8.8.8#53
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using nameserver 82.209.200.16#53
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using nameserver 82.209.200.17#53
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for test
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for local
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq[1]: read /tmp/hosts/odhcpd - 1 addresses
Thu Sep 15 20:44:56 2022 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using nameserver 208.67.222.222#53
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using nameserver 4.4.4.4#53
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using nameserver 8.8.8.8#53
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using nameserver 82.209.200.16#53
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using nameserver 82.209.200.17#53
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zytpirwai.net
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zyrtec.4.p2l.info
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zyrtec.3.p2l.info
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zyrtec.1.p2l.info
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zymerget.win
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zymerget.stream
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zymerget.party
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zymerget.faith
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using 19113 more local addresses
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using nameserver 208.67.222.222#53
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using nameserver 4.4.4.4#53
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using nameserver 8.8.8.8#53
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using nameserver 82.209.200.16#53
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using nameserver 82.209.200.17#53
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zytpirwai.net
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zyrtec.4.p2l.info
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zyrtec.3.p2l.info
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zyrtec.1.p2l.info
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zymerget.win
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zymerget.stream
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zymerget.party
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using only locally-known addresses for zymerget.faith
Thu Sep 15 20:44:57 2022 daemon.info dnsmasq[1]: using 19113 more local addresses

So there are no entries from dnsmasq immediately below this? Do you feel comfortable editing 2 lines of the init file on the router to test something?

Yeah, no more logs after this and I'm ready to test any config edits