OpenWrt Forum Archive

Topic: adblock package, release 2.x

The content of this topic has been archived between 22 Mar 2018 and 4 May 2018. Unfortunately there are posts – most likely complete pages – missing.

locojohn wrote:

1. Thanks.  But the suggested command for stats returns "running = false":

that's the procd status for this "fake" service, it will be always "false". Relevant information are in the "data" section only.

locojohn wrote:

2. In previous versions it was also possible to see date of last update for each source using adblock Luci interface.   It was also possible to see how many domains in percetage were blocked so far.  This is no longer working, is there a way to see this info back?

no, adblock 2.x simplified a lot and flash writes to adblock config were removed.

dibdot wrote:

that's the procd status for this "fake" service, it will be always "false". Relevant information are in the "data" section only.
[...]
no, adblock 2.x simplified a lot and flash writes to adblock config were removed.

Thanks for the clarification dibdot.  May God bless you.

Andrejs

i was add new list in /etc/config/adblock as example, then restart mordem, but it not work

dibdot wrote:

Yes, please read the online documentation (see first post) and install the full wget package (with ssl support).

Thank you dibdot

(Last edited by Alph4 on 21 Jan 2017, 15:50)

that is my log. please help me:

/root$ /etc/init.d/adblock restart
/root$ logread -e "adblock"
Sun Jan 22 16:17:29 2017 daemon.err adblock.sh[6835]:     -O FILE    Save to FILE ('-' for stdout)
Sun Jan 22 16:17:29 2017 daemon.err adblock.sh[6835]:     -Y    Use proxy ('on' or 'off')
Sun Jan 22 16:17:29 2017 daemon.err adblock.sh[6835]: 
Sun Jan 22 16:17:34 2017 user.notice adblock-[2.1.1] info : status ::: block lists with overall 0 domains loaded (OpenWrt Chaos Calmer 15.05.1)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: chown: unknown user/group dnsmasq:dnsmasq
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: /usr/bin/wget: unrecognized option `--no-config'
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [-U|--user-agent AGENT] URL...
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Retrieve files via HTTP or FTP
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -s    Spider mode - only check file existence
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -c    Continue retrieval of aborted transfer
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -q    Quiet
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -P DIR    Save to DIR (default .)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -O FILE    Save to FILE ('-' for stdout)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -U STR    Use STR for User-Agent header
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -Y    Use proxy ('on' or 'off')
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: /usr/bin/wget: unrecognized option `--no-config'
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [-U|--user-agent AGENT] URL...
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Retrieve files via HTTP or FTP
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -s    Spider mode - only check file existence
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -c    Continue retrieval of aborted transfer
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -q    Quiet
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -P DIR    Save to DIR (default .)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -O FILE    Save to FILE ('-' for stdout)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -Y    Use proxy ('on' or 'off')
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: /usr/bin/wget: unrecognized option `--no-config'
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [-U|--user-agent AGENT] URL...
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Retrieve files via HTTP or FTP
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -s    Spider mode - only check file existence
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -c    Continue retrieval of aborted transfer
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -q    Quiet
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -P DIR    Save to DIR (default .)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -O FILE    Save to FILE ('-' for stdout)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -Y    Use proxy ('on' or 'off')
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: /usr/bin/wget: unrecognized option `--no-config'
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [-U|--user-agent AGENT] URL...
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Retrieve files via HTTP or FTP
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -s    Spider mode - only check file existence
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -c    Continue retrieval of aborted transfer
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -q    Quiet
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -P DIR    Save to DIR (default .)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -O FILE    Save to FILE ('-' for stdout)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: /usr/bin/wget: unrecognized option `--no-config'
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [-U|--user-agent AGENT] URL...
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Retrieve files via HTTP or FTP
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -s    Spider mode - only check file existence
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -c    Continue retrieval of aborted transfer
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -q    Quiet
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -P DIR    Save to DIR (default .)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -O FILE    Save to FILE ('-' for stdout)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -Y    Use proxy ('on' or 'off')
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: /usr/bin/wget: unrecognized option `--no-config'
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [-U|--user-agent AGENT] URL...
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Retrieve files via HTTP or FTP
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -s    Spider mode - only check file existence
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -c    Continue retrieval of aborted transfer
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -q    Quiet
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -P DIR    Save to DIR (default .)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -O FILE    Save to FILE ('-' for stdout)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -Y    Use proxy ('on' or 'off')
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: /usr/bin/wget: unrecognized option `--no-config'
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [-U|--user-agent AGENT] URL...
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Retrieve files via HTTP or FTP
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -s    Spider mode - only check file existence
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -c    Continue retrieval of aborted transfer
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -q    Quiet
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -P DIR    Save to DIR (default .)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -O FILE    Save to FILE ('-' for stdout)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -U STR    Use STR for User-Agent header
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -Y    Use proxy ('on' or 'off')
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: /usr/bin/wget: unrecognized option `--no-config'
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     [-U|--user-agent AGENT] URL...
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: Retrieve files via HTTP or FTP
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -s    Spider mode - only check file existence
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -c    Continue retrieval of aborted transfer
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -q    Quiet
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -P DIR    Save to DIR (default .)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -O FILE    Save to FILE ('-' for stdout)
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -U STR    Use STR for User-Agent header
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]:     -Y    Use proxy ('on' or 'off')
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: 
Sun Jan 22 16:23:45 2017 user.notice adblock-[2.1.1] info : status ::: block lists with overall 0 domains loaded (OpenWrt Chaos Calmer 15.05.1)
supperzerohero wrote:

that is my log. please help me:

n 22 16:23:40 2017 daemon.err adblock.sh[7029]: /usr/bin/wget: unrecognized option `--no-config'
Sun Jan 22 16:23:40 2017 daemon.err adblock.sh[7029]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.

See here

I'm getting "user.notice adblock-[2.1.2] error: status ::: no download utility with ssl support found/configured"

Fresh install of openwrt and adblock - any ideas? Seems to be related to wget, but this is installed?

Using Designated Driver : 50082.

Thanks!

madmic wrote:

I'm getting "user.notice adblock-[2.1.2] error: status ::: no download utility with ssl support found/configured"

Fresh install of openwrt and adblock - any ideas? Seems to be related to wget, but this is installed?

Using Designated Driver : 50082.

Thanks!

Check the following:

root@lede:~# opkg list-installed | grep wget
wget - 1.18-2

root@lede:~# ls -la /usr/bin/wget
lrwxrwxrwx    1 root     root             8 Jan 20 15:09 /usr/bin/wget -> wget-ssl
dibdot wrote:
madmic wrote:

I'm getting "user.notice adblock-[2.1.2] error: status ::: no download utility with ssl support found/configured"

Fresh install of openwrt and adblock - any ideas? Seems to be related to wget, but this is installed?

Using Designated Driver : 50082.

Thanks!

Check the following:

root@lede:~# opkg list-installed | grep wget
wget - 1.18-2

root@lede:~# ls -la /usr/bin/wget
lrwxrwxrwx    1 root     root             8 Jan 20 15:09 /usr/bin/wget -> wget-ssl

Thanks - looks like wget wasn't installed properly. Reinstalled and we're good to go.
"user.notice adblock-[2.1.2] info : status ::: block lists with overall 5968 domains loaded (OpenWrt Designated Driver 50082)"

On CC with 4MB device (I'm not the only one) there is basically enough space only for adblock and some lists, but I cannot use it because only busybox wget (no-ssl) is included.

My question is, does it have to require full wget and ssl ? Is no-ssl version possible?

(Last edited by bw4517 on 31 Jan 2017, 08:15)

bw4517 wrote:

On CC with 4MB device (I'm not the only one) there is basically enough space only for adblock and some lists, but I cannot use it because only busybox wget (no-ssl) is included.

My question is, does it have to require full wget and ssl ? Is no-ssl version possible?

14 of 21 blacklist sites are using https ... so a no-ssl capable version is not sufficient. If you need a small memory footprint try current LEDE trunk (or forthcoming release 17.01) with uclient-fetch & libustream-mbedtls.

dibdot wrote:
bw4517 wrote:

On CC with 4MB device (I'm not the only one) there is basically enough space only for adblock and some lists, but I cannot use it because only busybox wget (no-ssl) is included.

My question is, does it have to require full wget and ssl ? Is no-ssl version possible?

14 of 21 blacklist sites are using ht tps ... so a no-ssl capable version is not sufficient. If you need a small memory footprint try current LEDE trunk (or forthcoming release 17.01) with uclient-fetch & libustream-mbedtls.

Thanks for reply.

I checked LEDE, webpage says it won't even fit GUI on 4MB devices, but I use CC + LuCI just fine now.

Anyways, that's not the solution at the moment.

I would be perfectly happy with 7 blacklist sites, better than none and no adblock, that's why I asked if you could make also adblock-nossl.

adblock release 2.3.0 is now in trunk, with the following changes:

* automatically selects dnsmasq or unbound as dns backend
* add the new 'adguard' source, a combined/quite effective block list
* remove needless dns backend restarts
* optimize adblock restart behavior
* optimize block list processing on inotify enabled filesystems
* better return code checking on block list download
* fix boot function/startup on Chaos Calmer
* fix a bug in blocklist removal function
* add more (optional) debug output
* move backup options to global config

if you're coming from a previous version please update your adblock config as well, cause the new release supports a new block list source and puts the backup options to the global config.

Have fun!
Dirk

Hi can this be used with DNSCrypt?

tapper wrote:

Hi can this be used with DNSCrypt?

yes, works ootb ... I use it that way, too.

dibdot wrote:
tapper wrote:

Hi can this be used with DNSCrypt?

yes, works ootb ... I use it that way, too.

OK cool could you help me out then mate?
I installed it but am not shure how to get it to work.
I use opendns servers for dns.
Here is my stock /etc/config/dhcp

Start of file
config dnsmasq
    option domainneeded '1'
    option boguspriv '1'
    option filterwin2k '0'
    option localise_queries '1'
    option rebind_protection '1'
    option rebind_localhost '1'
    option local '/lan/'
    option domain 'lan'
    option expandhosts '1'
    option nonegcache '0'
    option authoritative '1'
    option readethers '1'
    option leasefile '/tmp/dhcp.leases'
    option resolvfile '/tmp/resolv.conf.auto'
    option localservice '1'

config dhcp 'lan'
    option interface 'lan'
    option start '100'
    option limit '150'
    option dhcpv6 'server'
    option ra 'server'
    option leasetime '6h'
    option ra_management '1'

config dhcp 'wan'
    option interface 'wan'
    option ignore '1'

config odhcpd 'odhcpd'
    option maindhcp '0'
    option leasefile '/tmp/hosts/odhcpd'
    option leasetrigger '/usr/sbin/odhcpd-update'
End of file.
I did look on the wiki but am not sure about what lines to change. It says to change the ones in bold but i use a screen reader and it can not tell me witch lines thay are. thanks.

tapper wrote:
dibdot wrote:
tapper wrote:

Hi can this be used with DNSCrypt?

yes, works ootb ... I use it that way, too.

OK cool could you help me out then mate?

yes of course, it's all pretty standard ...

First of all my dnscrypt-proxy config, I'm using the adguard dns server for that:

config dnscrypt-proxy ns1
        option address '127.0.0.1'
        option port '5353'
        option resolver 'adguard-dns-ns1'

Second my dhcp config (only the changed options):

#      option resolvfile '/tmp/resolv.conf.auto'
        option noresolv '1'
        list server '127.0.0.1#5353'
        list server '/pool.ntp.org/4.4.4.4'

set option "resolvfile" in comment, additionaly set the "noresolv" option. Furthermore add two new list server entries, one for your local dnscrypt proxy and a second one for (unencrypted) ntp updates.

bw4517 wrote:

On CC with 4MB device (I'm not the only one) there is basically enough space only for adblock and some lists, but I cannot use it because only busybox wget (no-ssl) is included.

My question is, does it have to require full wget and ssl ? Is no-ssl version possible?

I ran a current build of CC for the tl-wr841* that includes sqm, adblock, and uclient-fetch by replacing busybox with the newer slimmed down version present in LEDE. It required a wget symlink and a minor edit to the adblock script's fetch location, but I think it should work. It's untested as I don't have the hardware on me at the moment, but you can find it at the link below.

dl.dropboxusercontent.com/s/nqx8xp5q0ul … l-wr841.7z

something going wrong sudenly, it stop to download/see lists (block lists with overall 0 domains loaded )

i reset my router and reinstall wget, adblock, luci-adblock again from scratch but still get the same hmm

Sat Feb 11 12:07:07 2017 user.notice adblock-[2.3.0-2] debug: main    ::: dns-backend: dnsmasq, fetch-tool: /usr/bin/wget, parm: --no-config --quiet --tries=1 --no-cache --no-cookies --max-redirect=0 --timeout=5 --no-check-certificate -O
Sat Feb 11 12:07:07 2017 user.notice adblock-[2.3.0-2] debug: loop_0  ::: name: adaway, enabled: 1, dnsfile: /tmp/tmp.Tv8W0s/adb_list.adaway
Sat Feb 11 12:07:12 2017 user.notice adblock-[2.3.0-2] debug: loop_1  ::: name: adaway, rc: 4
Sat Feb 11 12:07:12 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: adaway, mode: restore, rc: 0
Sat Feb 11 12:07:12 2017 user.notice adblock-[2.3.0-2] debug: loop_2  ::: name: adaway, rc: 0
Sat Feb 11 12:07:12 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: adaway, mode: remove, rc: 0
Sat Feb 11 12:07:12 2017 user.notice adblock-[2.3.0-2] debug: loop_3  ::: name: adaway, rc: 0
Sat Feb 11 12:07:12 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: adguard, mode: remove, rc: 0
Sat Feb 11 12:07:12 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: blacklist, mode: remove, rc: 0
Sat Feb 11 12:07:12 2017 user.notice adblock-[2.3.0-2] debug: loop_0  ::: name: disconnect, enabled: 1, dnsfile: /tmp/tmp.Tv8W0s/adb_list.disconnect
Sat Feb 11 12:07:17 2017 user.notice adblock-[2.3.0-2] debug: loop_1  ::: name: disconnect, rc: 4
Sat Feb 11 12:07:17 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: disconnect, mode: restore, rc: 0
Sat Feb 11 12:07:17 2017 user.notice adblock-[2.3.0-2] debug: loop_2  ::: name: disconnect, rc: 0
Sat Feb 11 12:07:17 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: disconnect, mode: remove, rc: 0
Sat Feb 11 12:07:17 2017 user.notice adblock-[2.3.0-2] debug: loop_3  ::: name: disconnect, rc: 0
Sat Feb 11 12:07:17 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: dshield, mode: remove, rc: 0
Sat Feb 11 12:07:17 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: feodo, mode: remove, rc: 0
Sat Feb 11 12:07:17 2017 user.notice adblock-[2.3.0-2] debug: loop_0  ::: name: hphosts, enabled: 1, dnsfile: /tmp/tmp.Tv8W0s/adb_list.hphosts
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: loop_1  ::: name: hphosts, rc: 4
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: hphosts, mode: restore, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: loop_2  ::: name: hphosts, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: hphosts, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: loop_3  ::: name: hphosts, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: malware, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: malwarelist, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: openphish, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: palevo, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: ransomware, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: rolist, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: ruadlist, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: securemecca, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: shalla, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: spam404, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: sysctl, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: whocares, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: winspy, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: winhelp, mode: remove, rc: 0
Sat Feb 11 12:07:22 2017 user.notice adblock-[2.3.0-2] debug: loop_0  ::: name: yoyo, enabled: 1, dnsfile: /tmp/tmp.Tv8W0s/adb_list.yoyo
Sat Feb 11 12:07:27 2017 user.notice adblock-[2.3.0-2] debug: loop_1  ::: name: yoyo, rc: 4
Sat Feb 11 12:07:27 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: yoyo, mode: restore, rc: 0
Sat Feb 11 12:07:27 2017 user.notice adblock-[2.3.0-2] debug: loop_2  ::: name: yoyo, rc: 0
Sat Feb 11 12:07:27 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: yoyo, mode: remove, rc: 0
Sat Feb 11 12:07:27 2017 user.notice adblock-[2.3.0-2] debug: loop_3  ::: name: yoyo, rc: 0
Sat Feb 11 12:07:27 2017 user.notice adblock-[2.3.0-2] debug: list    ::: name: zeus, mode: remove, rc: 0
Sat Feb 11 12:07:28 2017 daemon.info dnsmasq[3041]: exiting on receipt of SIGTERM
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq[4051]: started, version 2.73 cachesize 150
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq[4051]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq[4051]: DNS service limited to local subnets
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq-dhcp[4051]: DHCP, IP range 192.168.10.100 -- 192.168.10.249, lease time infinite
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq[4051]: using local addresses only for domain lan
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq[4051]: reading /tmp/resolv.conf.auto
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq[4051]: using local addresses only for domain lan
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq[4051]: using nameserver 192.168.1.1#53
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq[4051]: read /etc/hosts - 1 addresses
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq[4051]: read /tmp/hosts/dhcp - 1 addresses
Sat Feb 11 12:07:33 2017 daemon.info dnsmasq-dhcp[4051]: read /etc/ethers - 0 addresses
Sat Feb 11 12:07:33 2017 user.notice adblock-[2.3.0-2] debug: restart ::: dns: dnsmasq, dns-up: true, count: 5
Sat Feb 11 12:07:33 2017 user.notice adblock-[2.3.0-2] debug: memory  ::: total: 126044, free: 84796, swap: 0
Sat Feb 11 12:07:33 2017 user.notice adblock-[2.3.0-2] debug: space   ::: tmp_dir: /tmp/tmp.Tv8W0s, tmp_kb: 61676, backup: 0, backup_dir: /mnt, backup_kb: 10936
Sat Feb 11 12:07:33 2017 user.notice adblock-[2.3.0-2] info : status  ::: block lists with overall 0 domains loaded (OpenWrt Chaos Calmer 15.05.1)
root@ArcherC7:~# ubus call service list '{"name":"adblock_stats"}'
{
        "adblock_stats": {
                "instances": {
                        "statistics": {
                                "running": false,
                                "command": [
                                        ""
                                ],
                                "data": {
                                        "active_lists": [
                                                {

                                                }
                                        ],
                                        "adblock_version": "2.3.0-2",
                                        "blocked_domains": "0",
                                        "dns_backend": "dnsmasq",
                                        "last_rundate": "11.02.2017 12:07:33",
                                        "system": "OpenWrt Chaos Calmer 15.05.1"
                                }
                        }
                }
        }
}

also

dibdot wrote:

adblock release 2.3.0 is now in trunk, with the following changes:
[...]if you're coming from a previous version please update your adblock config as well, cause the new release supports a new block list source and puts the backup options to the global config.
[...]

how we do that? just delete the previous config file and install the new/updated package?

(Last edited by imbaSD on 11 Feb 2017, 14:27)

I'm seeing the exact same issue. I didn't update from an earlier version though, but installed 2.3.0 directly. "active_lists" is an empty array.

imbaSD wrote:

something going wrong sudenly, it stop to download/see lists (block lists with overall 0 domains loaded )

i reset my router and reinstall wget, adblock, luci-adblock again from scratch but still get the same hmm

Sat Feb 11 12:07:07 2017 user.notice adblock-[2.3.0-2] debug: main    ::: dns-backend: dnsmasq, fetch-tool: /usr/bin/wget, parm: --no-config --quiet --tries=1 --no-cache --no-cookies --max-redirect=0 --timeout=5 --no-check-certificate -O
Sat Feb 11 12:07:07 2017 user.notice adblock-[2.3.0-2] debug: loop_0  ::: name: adaway, enabled: 1, dnsfile: /tmp/tmp.Tv8W0s/adb_list.adaway
Sat Feb 11 12:07:12 2017 user.notice adblock-[2.3.0-2] debug: loop_1  ::: name: adaway, rc: 4

wget return code 4 is a generic network error. Please make sure that your internet connection is up & running.
For a test ssh to your router and try something like that:

wget --no-check-certificate https://adaway.org/hosts.txt >/dev/null 2>&1; echo "RETURN CODE: $?"
imbaSD wrote:

how we do that? just delete the previous config file and install the new/updated package?

after package update installation you should find the new config in '/etc/config/adblock-opkg', just rename it to adblock (overwrite the old one).

@ImabSD

Further testing with @kdex showed us the root cause, a network error ... the wget defaults are a bit to "optimistic" for your environment.
To solve the problem, please wait for 2.3.0-3 (sent a PR just now) or add this to your global adblock config:

[...]
        option adb_fetch '/usr/bin/wget'
        option adb_fetchparm '--no-config --quiet --no-cache --no-cookies --max-redirect=0 --timeout=10 --no-check-certificate -O'
[...]

Thanks again @kdex for testing!

(Last edited by dibdot on 12 Feb 2017, 08:32)

dibdot wrote:

@ImabSD

Further testing with @kdex showed us the root cause, a network error ... the wget defaults are a bit to "optimistic" for your environment.
To solve the problem, please wait for 2.3.0-3 (sent a PR just now) or add this to your global adblock config:

[...]
        option adb_fetch '/usr/bin/wget'
        option adb_fetchparm '--no-config --quiet --no-cache --no-cookies --max-redirect=0 --timeout=10 --no-check-certificate -O'
[...]

Thanks again @kdex for testing!

Update to 2.3.0-3 but still dont work

Sun Feb 12 12:38:36 2017 user.notice adblock-[2.3.0-3] error: status  ::: dns backend restart with active block lists failed (OpenWrt Chaos Calmer 15.05.1)
Sun Feb 12 12:38:36 2017 user.notice adblock-[2.3.0-3] error: Please check the online documentation 'https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md'

and when add these 2 lines to global adblock config

Sun Feb 12 12:43:13 2017 user.notice adblock-[2.3.0-3] error: status  ::: no active/supported DNS backend found
Sun Feb 12 12:43:13 2017 user.notice adblock-[2.3.0-3] error: Please check the online documentation 'https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md'

also

dibdot wrote:

wget return code 4 is a generic network error. Please make sure that your internet connection is up & running.
For a test ssh to your router and try something like that:

wget --no-check-certificate https://adaway.org/hosts.txt >/dev/null 2>&1; echo "RETURN CODE: $?"

when run this i get

root@ArcherC7:~# wget --no-check-certificate https://adaway.org/hosts.txt >/dev/null 2>&1; echo "RETURN CODE: $?"
RETURN CODE: 0

could this issue be ISP fault or its coincident? because all this start when i change my provider and his new modem (a week ago)

(Last edited by imbaSD on 12 Feb 2017, 12:37)

imbaSD wrote:

Update to 2.3.0-3 but still dont work

Your dnsmasq instance is not running, please try the following in a ssh session:

1. /etc/init.d/dnsmasq restart
2. wait 3-5 seconds
3. /etc/init.d/adblock start
dibdot wrote:
imbaSD wrote:

Update to 2.3.0-3 but still dont work

Your dnsmasq instance is not running, please try the following in a ssh session:

1. /etc/init.d/dnsmasq restart
2. wait 3-5 seconds
3. /etc/init.d/adblock start

still the same

Sun Feb 12 19:04:38 2017 daemon.info dnsmasq[1633]: exiting on receipt of SIGTERM
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq[2122]: started, version 2.73 cachesize 150
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq[2122]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq[2122]: DNS service limited to local subnets
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq-dhcp[2122]: DHCP, IP range 192.168.10.100 -- 192.168.10.249, lease time infinite
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq[2122]: using local addresses only for domain lan
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq[2122]: reading /tmp/resolv.conf.auto
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq[2122]: using local addresses only for domain lan
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq[2122]: using nameserver 192.168.1.1#53
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq[2122]: read /etc/hosts - 1 addresses
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq[2122]: read /tmp/hosts/dhcp - 1 addresses
Sun Feb 12 19:04:42 2017 daemon.info dnsmasq-dhcp[2122]: read /etc/ethers - 0 addresses
Sun Feb 12 19:06:50 2017 daemon.info dnsmasq[2122]: exiting on receipt of SIGTERM
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq[2327]: started, version 2.73 cachesize 150
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq[2327]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq[2327]: DNS service limited to local subnets
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq-dhcp[2327]: DHCP, IP range 192.168.10.100 -- 192.168.10.249, lease time infinite
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq[2327]: using local addresses only for domain lan
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq[2327]: reading /tmp/resolv.conf.auto
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq[2327]: using local addresses only for domain lan
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq[2327]: using nameserver 192.168.1.1#53
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq[2327]: read /etc/hosts - 1 addresses
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq[2327]: read /tmp/hosts/dhcp - 1 addresses
Sun Feb 12 19:06:55 2017 daemon.info dnsmasq-dhcp[2327]: read /etc/ethers - 0 addresses
Sun Feb 12 19:06:55 2017 user.notice adblock-[2.3.0-3] info : status  ::: block lists with overall 0 domains loaded (OpenWrt Chaos Calmer 15.05.1)
root@ArcherC7:~# ubus call service list '{"name":"adblock_stats"}'
{
        "adblock_stats": {
                "instances": {
                        "statistics": {
                                "running": false,
                                "command": [
                                        ""
                                ],
                                "data": {
                                        "active_lists": [
                                                {

                                                }
                                        ],
                                        "adblock_version": "2.3.0-3",
                                        "blocked_domains": "0",
                                        "dns_backend": "dnsmasq",
                                        "last_rundate": "12.02.2017 19:06:55",
                                        "system": "OpenWrt Chaos Calmer 15.05.1"
                                }
                        }
                }
        }
}

the strange thing is that blacklist is working fine, i manually find some hosts and put them (over 50k sites)

[.....]
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analyzer2.fc2.com
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analyzer.pasta.dianxinos.com
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analyzer.liveads.no
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analyzer.fc2.com
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analyze.yahooapis.com
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analyze.full-marke.com
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analyticsengine.s3.amazonaws.com
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analytics.zhihu.com
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analytics.youporn.phncdn.com
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analytics.yolacdn.net
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analytics.yola.net
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analytics.yam.com
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analytics.yahoo.com
Sun Feb 12 19:11:12 2017 daemon.info dnsmasq[2533]: using local addresses only for domain analytics.xl.pt
[.....]

(Last edited by imbaSD on 12 Feb 2017, 18:14)