Re: adblock package, release 2.x

Comitizer wrote:

I found the stats, thank you.  That works ok.
As to the block lists, let's put it this way, what do you have enabled?  smile

Next year, OK? smile

Re: adblock package, release 2.x

dibdot wrote:
imbaSD wrote:
[....]
Fri Dec 30 00:07:58 2016 daemon.info dnsmasq[8473]: using local addresses only for domain 7bpeople.com

That's only a dnsmasq info, not an error. Please enable adblock debug in config, make a '/etc/init.d/adblock restart' and send the output of logread -e "adblock" - thanks.

that is only what i get, and yes the debug was enabled from yesterday and no errors after restart (right now i repeat the procedure and still get the same) smile

Adblock working fine, but with 'ubus call service list' i get nothing hmm

for now will let it as it is, next year maybe i will reinstall the firmware and your packages to see.

TP-Link Archer C7 v2 @Chaos Calmer 15.05.1

353 (edited by hnyman 2016-12-30 11:19:13)

Re: adblock package, release 2.x

imbaSD wrote:

Adblock working fine, but with 'ubus call service list' i get nothing hmm
...
TP-Link Archer C7 v2 @Chaos Calmer 15.05.1.

First guess: you are using the old 15.05.1 with an ancient ubus (May 2015). The method used to push stats via ubus has possibly been introduced later into ubus, or its format has changed, or something like that.

There are lots of changes into ubus since 2015-05-25 that the CC15.05.1 is using:
http://git.openwrt.org/?p=project/ubus.git;a=shortlog

Re: adblock package, release 2.x

Just returned from vacation and installed the new version hoping it would resolved problem I encountered.  Unfortunately, it seems not working for me as it didn't block ads or porn sites with shalla enabled. I enabled debug and here is the logread:

root@lede:~# logread -e "adblock"
Fri Dec 30 20:01:17 2016 user.notice adblock-[2.0.2] info : status ::: block lists with overall 772451 domains loaded (LEDE Reboot SNAPSHOT r2694-6b524fe)
Fri Dec 30 20:02:08 2016 user.notice adblock-[2.0.2] info : status ::: block lists with overall 772451 domains loaded (LEDE Reboot SNAPSHOT r2694-6b524fe)
Fri Dec 30 20:03:03 2016 user.notice adblock-[2.0.2] info : status ::: block lists with overall 772451 domains loaded (LEDE Reboot SNAPSHOT r2694-6b524fe)
Fri Dec 30 20:03:52 2016 user.notice adblock-[2.0.2] info : status ::: block lists with overall 772451 domains loaded (LEDE Reboot SNAPSHOT r2694-6b524fe)
Fri Dec 30 20:04:46 2016 user.notice adblock-[2.0.2] info : status ::: block lists with overall 772451 domains loaded (LEDE Reboot SNAPSHOT r2694-6b524fe)
Fri Dec 30 20:05:42 2016 user.notice adblock-[2.0.2] info : status ::: block lists with overall 772451 domains loaded (LEDE Reboot SNAPSHOT r2694-6b524fe)
Fri Dec 30 20:05:49 2016 user.notice adblock-[2.0.2] debug: memory ::: total: 512628, free: 435528, swap: 0
Fri Dec 30 20:05:49 2016 user.notice adblock-[2.0.2] debug: space  ::: tmp_dir: /tmp/tmp.eObjHM, tmp_kb: 236092, backup: 0, backup_dir: /mnt, backup_kb: 20712
Fri Dec 30 20:05:49 2016 user.notice adblock-[2.0.2] debug: main   ::: tool: /usr/bin/wget, parm: --no-config --quiet --tries=1 --no-cache --no-cookies --max-redirect=0 --timeout=5 --no-check-certificate -O
Fri Dec 30 20:05:49 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: adaway, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.adaway
Fri Dec 30 20:05:54 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: adaway, load-rc: 4
Fri Dec 30 20:05:54 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: adaway, list-rc: 4
Fri Dec 30 20:05:54 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: blacklist, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.blacklist
Fri Dec 30 20:05:54 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: blacklist, load-rc: 0
Fri Dec 30 20:05:54 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: blacklist, list-rc: 0
Fri Dec 30 20:05:54 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: disconnect, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.disconnect
Fri Dec 30 20:05:55 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: disconnect, load-rc: 0
Fri Dec 30 20:05:55 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: disconnect, list-rc: 0
Fri Dec 30 20:05:55 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: shalla, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.shalla
Fri Dec 30 20:06:04 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: shalla, load-rc: 0
Fri Dec 30 20:06:27 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: shalla, list-rc: 0
Fri Dec 30 20:06:27 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: yoyo, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.yoyo
Fri Dec 30 20:06:29 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: yoyo, load-rc: 0
Fri Dec 30 20:06:29 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: yoyo, list-rc: 0
Fri Dec 30 20:06:37 2016 user.notice adblock-[2.0.2] debug: memory ::: total: 512628, free: 396404, swap: 0
Fri Dec 30 20:06:37 2016 user.notice adblock-[2.0.2] debug: space  ::: tmp_dir: /tmp/tmp.eObjHM, tmp_kb: 196044, backup: 0, backup_dir: /mnt, backup_kb: 20712
Fri Dec 30 20:06:37 2016 user.notice adblock-[2.0.2] info : status ::: block lists with overall 772451 domains loaded (LEDE Reboot SNAPSHOT r2694-6b524fe)
Fri Dec 30 20:06:41 2016 user.notice adblock-[2.0.2] debug: memory ::: total: 512628, free: 436096, swap: 0
Fri Dec 30 20:06:41 2016 user.notice adblock-[2.0.2] debug: space  ::: tmp_dir: /tmp/tmp.dIfAeo, tmp_kb: 236092, backup: 0, backup_dir: /mnt, backup_kb: 20712
Fri Dec 30 20:06:41 2016 user.notice adblock-[2.0.2] debug: main   ::: tool: /usr/bin/wget, parm: --no-config --quiet --tries=1 --no-cache --no-cookies --max-redirect=0 --timeout=5 --no-check-certificate -O
Fri Dec 30 20:06:41 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: adaway, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.adaway
Fri Dec 30 20:06:46 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: adaway, load-rc: 4
Fri Dec 30 20:06:46 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: adaway, list-rc: 4
Fri Dec 30 20:06:46 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: blacklist, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.blacklist
Fri Dec 30 20:06:46 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: blacklist, load-rc: 0
Fri Dec 30 20:06:46 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: blacklist, list-rc: 0
Fri Dec 30 20:06:46 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: disconnect, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.disconnect
Fri Dec 30 20:06:47 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: disconnect, load-rc: 0
Fri Dec 30 20:06:47 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: disconnect, list-rc: 0
Fri Dec 30 20:06:47 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: shalla, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.shalla
Fri Dec 30 20:06:56 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: shalla, load-rc: 0
Fri Dec 30 20:07:19 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: shalla, list-rc: 0
Fri Dec 30 20:07:19 2016 user.notice adblock-[2.0.2] debug: loop   ::: name: yoyo, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.yoyo

Not sure what's wrong with my Linksys WRT1900ACS.

Thanks in advance!

Re: adblock package, release 2.x

imbaSD wrote:

Adblock working fine, but with 'ubus call service list' i get nothing hmm

This Chaos Calmer related bug has been fixed in 2.0.3, the statistics now includes separate list statistics, too:

root@blackhole:/etc/config$ ubus call service list '{"name":"adblock_stats"}'
{
    "adblock_stats": {
        "instances": {
            "stats": {
                "running": false,
                "command": [
                    ""
                ],
                "data": {
                    "active_lists": [
                        {
                            "palevo": "14",
                            "blacklist": "143",
                            "winspy": "164",
                            "adaway": "408",
                            "zeus": "446",
                            "rolist": "638",
                            "malwarelist": "1218",
                            "openphish": "1589",
                            "ransomware": "1463",
                            "ruadlist": "1773",
                            "yoyo": "2315",
                            "dshield": "123",
                            "disconnect": "3175",
                            "spam404": "6155",
                            "malware": "9879",
                            "whocares": "11794",
                            "winhelp": "10896",
                            "sysctl": "8525",
                            "securemecca": "9903",
                            "shalla": "25776",
                            "hphosts": "36911"
                        }
                    ],
                    "blocked_domains": "133308",
                    "last_rundate": "30.12.2016 22:15:19"
                }
            }
        }
    }
}

Re: adblock package, release 2.x

huangjqiu wrote:

Not sure what's wrong with my Linksys WRT1900ACS.
Thanks in advance!

Sorry, no idea. Please start with a fresh installation & the default adblock config.

357 (edited by imbaSD 2016-12-31 17:07:55)

Re: adblock package, release 2.x

dibdot wrote:
imbaSD wrote:

Adblock working fine, but with 'ubus call service list' i get nothing hmm

This Chaos Calmer related bug has been fixed in 2.0.3, the statistics now includes separate list statistics, too:

root@blackhole:/etc/config$ ubus call service list '{"name":"adblock_stats"}'
{
    "adblock_stats": {
        "instances": {
            "stats": {
                "running": false,
                "command": [
                    ""
                ],
                "data": {
                    "active_lists": [
                        {
                            "palevo": "14",
                            "blacklist": "143",
                            "winspy": "164",
                            "adaway": "408",
                            "zeus": "446",
                            "rolist": "638",
                            "malwarelist": "1218",
                            "openphish": "1589",
                            "ransomware": "1463",
                            "ruadlist": "1773",
                            "yoyo": "2315",
                            "dshield": "123",
                            "disconnect": "3175",
                            "spam404": "6155",
                            "malware": "9879",
                            "whocares": "11794",
                            "winhelp": "10896",
                            "sysctl": "8525",
                            "securemecca": "9903",
                            "shalla": "25776",
                            "hphosts": "36911"
                        }
                    ],
                    "blocked_domains": "133308",
                    "last_rundate": "30.12.2016 22:15:19"
                }
            }
        }
    }
}

now it's working smile

root@ArcherC7:~# ubus call service list '{"name":"adblock_stats"}'
{
        "adblock_stats": {
                "instances": {
                        "stats": {
                                "running": false,
                                "command": [
                                        ""
                                ],
                                "data": {
                                        "active_lists": [
                                                {
                                                        "adaway": "409",
                                                        "yoyo": "2368",
                                                        "disconnect": "3199"
                                                }
                                        ],
                                        "blocked_domains": "5976",
                                        "last_rundate": "31.12.2016 18:02:07"
                                }
                        }
                }
        }
}



hnyman wrote:
imbaSD wrote:

Adblock working fine, but with 'ubus call service list' i get nothing hmm
...
TP-Link Archer C7 v2 @Chaos Calmer 15.05.1.

First guess: you are using the old 15.05.1 with an ancient ubus (May 2015). The method used to push stats via ubus has possibly been introduced later into ubus, or its format has changed, or something like that.

There are lots of changes into ubus since 2015-05-25 that the CC15.05.1 is using:
http://git.openwrt.org/?p=project/ubus.git;a=shortlog

you are absolutely right, new at the field tongue
Will try to update it

TP-Link Archer C7 v2 @Chaos Calmer 15.05.1

Re: adblock package, release 2.x

Hey, first of all thank you for your developement of this plugin and the support.

My question is if it would be possible to block only the ads that are being loaded through a wireless connection / wifi?

Re: adblock package, release 2.x

Seroczynski wrote:

Hey, first of all thank you for your developement of this plugin and the support.
My question is if it would be possible to block only the ads that are being loaded through a wireless connection / wifi?

I do not see the use case for that, but if you need such things split lan/wlan networks and use different DNS resolver for each of them.

Re: adblock package, release 2.x

dibdot wrote:
Seroczynski wrote:

Hey, first of all thank you for your developement of this plugin and the support.
My question is if it would be possible to block only the ads that are being loaded through a wireless connection / wifi?

I do not see the use case for that, but if you need such things split lan/wlan networks and use different DNS resolver for each of them.

Thanks, I'll look into that.

Re: adblock package, release 2.x

Apologies if I have simply skipped pass something on the installation, but how do I get it to block IPv6 adverts?

Thanks for the tool and for reading my post!

Re: adblock package, release 2.x

Callumpy wrote:

Apologies if I have simply skipped pass something on the installation, but how do I get it to block IPv6 adverts?
Thanks for the tool and for reading my post!

Please see first post with a link to the online documentation. Simply use the same DNS resolver for IPv4 & IPv6 and ads get blocked - adblock 2.x don't care about network protocols at all.

Re: adblock package, release 2.x

dibdot wrote:
Callumpy wrote:

Apologies if I have simply skipped pass something on the installation, but how do I get it to block IPv6 adverts?
Thanks for the tool and for reading my post!

Please see first post with a link to the online documentation. Simply use the same DNS resolver for IPv4 & IPv6 and ads get blocked - adblock 2.x don't care about network protocols at all.

I tried using the firewall rule provided on the documentation, again though, ads are only blocked when I disable IPv6. I'm not sure what I'm missing.

364 (edited by dibdot 2017-01-11 20:50:22)

Re: adblock package, release 2.x

Callumpy wrote:

I tried using the firewall rule provided on the documentation, again though, ads are only blocked when I disable IPv6. I'm not sure what I'm missing.

You don't need any firewall rules (the documented one only force client requests to the local dns resolver), in fact your IPv6 dnsmasq configuration seems to be borked. Check that the local - adblock enabled - dnsmasq instance will be used for IPv4 & IPv6 ... you should see something like that (dig from a connected client):

IPv4:
dirk@x250:~$ dig doubleclick.net

; <<>> DiG 9.10.3-P4-Debian <<>> doubleclick.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 27403
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;doubleclick.net.        IN    A

;; Query time: 70 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Wed Jan 11 20:32:32 CET 2017
;; MSG SIZE  rcvd: 33

IPv6:
dirk@x250:~$ dig -6 doubleclick.net

; <<>> DiG 9.10.3-P4-Debian <<>> -6 doubleclick.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 48592
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;doubleclick.net.        IN    A

;; Query time: 71 msec
;; SERVER: fe80::e695:6eff:fe40:a29e%3#53(fe80::e695:6eff:fe40:a29e%3)
;; WHEN: Wed Jan 11 20:35:43 CET 2017
;; MSG SIZE  rcvd: 33

365 (edited by Callumpy 2017-01-12 00:14:22)

Re: adblock package, release 2.x

dibdot wrote:
Callumpy wrote:

I tried using the firewall rule provided on the documentation, again though, ads are only blocked when I disable IPv6. I'm not sure what I'm missing.

You don't need any firewall rules (the documented one only force client requests to the local dns resolver), in fact your IPv6 dnsmasq configuration seems to be borked. Check that the local - adblock enabled - dnsmasq instance will be used for IPv4 & IPv6 ... you should see something like that (dig from a connected client):

IPv4:
dirk@x250:~$ dig doubleclick.net

; <<>> DiG 9.10.3-P4-Debian <<>> doubleclick.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 27403
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;doubleclick.net.        IN    A

;; Query time: 70 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Wed Jan 11 20:32:32 CET 2017
;; MSG SIZE  rcvd: 33

IPv6:
dirk@x250:~$ dig -6 doubleclick.net

; <<>> DiG 9.10.3-P4-Debian <<>> -6 doubleclick.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 48592
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;doubleclick.net.        IN    A

;; Query time: 71 msec
;; SERVER: fe80::e695:6eff:fe40:a29e%3#53(fe80::e695:6eff:fe40:a29e%3)
;; WHEN: Wed Jan 11 20:35:43 CET 2017
;; MSG SIZE  rcvd: 33


You may be right, borked. Not sure what the hell is going on with it.


root@Router:~# dig doubleclick.net

; <<>> DiG 9.9.8-P3 <<>> doubleclick.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 63416
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;doubleclick.net.               IN      A

;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jan 11 22:08:00 GMT 2017
;; MSG SIZE  rcvd: 33

root@Router:~# dig -6 doubleclick.net

; <<>> DiG 9.9.8-P3 <<>> -6 doubleclick.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54743
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;doubleclick.net.               IN      A

;; Query time: 3 msec
;; SERVER: ::1#53(::1)
;; WHEN: Wed Jan 11 22:08:43 GMT 2017
;; MSG SIZE  rcvd: 33
callum@Ubuntu-Server:~$ dig -4 doubleclick.net

; <<>> DiG 9.9.5-3ubuntu0.10-Ubuntu <<>> -4 doubleclick.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40399
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;doubleclick.net.        IN    A

;; Query time: 3 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Wed Jan 11 22:18:57 GMT 2017
;; MSG SIZE  rcvd: 33

callum@Ubuntu-Server:~$ dig -6 doubleclick.net

; <<>> DiG 9.9.5-3ubuntu0.10-Ubuntu <<>> -6 doubleclick.net
;; global options: +cmd
;; connection timed out; no servers could be reached
Callums-MacBook-Pro:~ callum$ dig -4 doubleclick.net

; <<>> DiG 9.8.3-P1 <<>> -4 doubleclick.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 39926
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;doubleclick.net.        IN    A

;; Query time: 12 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Wed Jan 11 22:17:28 2017
;; MSG SIZE  rcvd: 33

Callums-MacBook-Pro:~ callum$ dig -6 doubleclick.net

; <<>> DiG 9.8.3-P1 <<>> -6 doubleclick.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13351
;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;doubleclick.net.        IN    A

;; ANSWER SECTION:
doubleclick.net.    299    IN    A    90.201.126.24
doubleclick.net.    299    IN    A    90.201.126.16
doubleclick.net.    299    IN    A    90.201.126.20
doubleclick.net.    299    IN    A    90.201.126.31
doubleclick.net.    299    IN    A    90.201.126.42
doubleclick.net.    299    IN    A    90.201.126.59
doubleclick.net.    299    IN    A    90.201.126.46
doubleclick.net.    299    IN    A    90.201.126.53
doubleclick.net.    299    IN    A    90.201.126.49
doubleclick.net.    299    IN    A    90.201.126.27
doubleclick.net.    299    IN    A    90.201.126.57
doubleclick.net.    299    IN    A    90.201.126.48
doubleclick.net.    299    IN    A    90.201.126.35
doubleclick.net.    299    IN    A    90.201.126.26
doubleclick.net.    299    IN    A    90.201.126.38
doubleclick.net.    299    IN    A    90.201.126.37

;; Query time: 26 msec
;; SERVER: 2001:4860:4860::8888#53(2001:4860:4860::8888)
;; WHEN: Wed Jan 11 22:17:34 2017
;; MSG SIZE  rcvd: 289

EDIT: I've also noticed it seems to work temperamentally on this Windows machine, I've tried it from some other devices like phones and TV's where it doesn't work at all (they do also support IPv6).

EDIT2: The Windows PC only seems to work up until the DNS bug stops and it actually gets DNS addresses from my DHCP server. Once it has resolved DNS addresses it starts seeing adverts again.

So this could be a simple configuration problem? The addresses that are showing on my Windows machine are public IPv6 DNS servers, should I be forcing devices to use my router as the DNS server?

EDIT3: When I manually set the router's IPv6 address as the DNS server, the ad-blocking is working. I've tried putting the router's v6 address in the announced DNS servers field but it's still grabbing the public ones that are set on my WANv6 interface.

Re: adblock package, release 2.x

Callumpy wrote:

You may be right, borked. Not sure what the hell is going on with it.

Callums-MacBook-Pro:~ callum$ dig -4 doubleclick.net
[...]
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 39926
[...]
;; SERVER: 192.168.1.254#53(192.168.1.254)

Callums-MacBook-Pro:~ callum$ dig -6 doubleclick.net
[...]
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13351
[..]
;; SERVER: 2001:4860:4860::8888#53(2001:4860:4860::8888)

IPv4 will be answered with "NXDOMAIN" by your local dnsmasq instance, IPv6 will be answered with "NOERROR" by public google dns.
Please try to fix the underlying network/dnsmasq configuration issue. Unfortunately no further tips from my side cause I didn't have an IPv6 uplink.

367

Re: adblock package, release 2.x

Hello and thanks for this adblock plugin.

But i can't bring it to work on my "WR841n v9" with installed "Chaos Calmer 15.05.1 / LuCI 15.05-149"

I found this error log in the luci Systemlog:

Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: /usr/bin/wget: unrecognized option `--no-config'
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [-U|--user-agent AGENT] URL...
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Retrieve files via HTTP or FTP
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -s    Spider mode - only check file existence
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -c    Continue retrieval of aborted transfer
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -q    Quiet
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -P DIR    Save to DIR (default .)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -O FILE    Save to FILE ('-' for stdout)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -Y    Use proxy ('on' or 'off')
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: /usr/bin/wget: unrecognized option `--no-config'
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [-U|--user-agent AGENT] URL...
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Retrieve files via HTTP or FTP
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -s    Spider mode - only check file existence
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -c    Continue retrieval of aborted transfer
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -q    Quiet
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -P DIR    Save to DIR (default .)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -O FILE    Save to FILE ('-' for stdout)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -U STR    Use STR for User-Agent header
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -Y    Use proxy ('on' or 'off')
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: /usr/bin/wget: unrecognized option `--no-config'
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [-U|--user-agent AGENT] URL...
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Retrieve files via HTTP or FTP
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -s    Spider mode - only check file existence
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -c    Continue retrieval of aborted transfer
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -q    Quiet
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -P DIR    Save to DIR (default .)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -O FILE    Save to FILE ('-' for stdout)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -Y    Use proxy ('on' or 'off')
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: /usr/bin/wget: unrecognized option `--no-config'
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [-U|--user-agent AGENT] URL...
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Retrieve files via HTTP or FTP
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -s    Spider mode - only check file existence
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -c    Continue retrieval of aborted transfer
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -q    Quiet
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -P DIR    Save to DIR (default .)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -O FILE    Save to FILE ('-' for stdout)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -Y    Use proxy ('on' or 'off')
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: /usr/bin/wget: unrecognized option `--no-config'
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [-U|--user-agent AGENT] URL...
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Retrieve files via HTTP or FTP
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -s    Spider mode - only check file existence
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -c    Continue retrieval of aborted transfer
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -q    Quiet
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -P DIR    Save to DIR (default .)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -O FILE    Save to FILE ('-' for stdout)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -U STR    Use STR for User-Agent header
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -Y    Use proxy ('on' or 'off')
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: /usr/bin/wget: unrecognized option `--no-config'
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     [-U|--user-agent AGENT] URL...
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: Retrieve files via HTTP or FTP
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -s    Spider mode - only check file existence
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -c    Continue retrieval of aborted transfer
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -q    Quiet
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -P DIR    Save to DIR (default .)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -O FILE    Save to FILE ('-' for stdout)
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:     -Y    Use proxy ('on' or 'off')
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]:
Wed Jan 18 17:38:34 2017 daemon.info dnsmasq[1094]: exiting on receipt of SIGTERM


Do anyone know how to solve my problem?
Clean install was already tried.

And is this script working on the 1043n v1 if the system has "gargoyle" v1.8.1 and not the OpenWrt?

Re: adblock package, release 2.x

Alph4 wrote:

Hello and thanks for this adblock plugin.

But i can't bring it to work on my "WR841n v9" with installed "Chaos Calmer 15.05.1 / LuCI 15.05-149"

I found this error log in the luci Systemlog:

Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: /usr/bin/wget: unrecognized option `--no-config'
Wed Jan 18 17:38:34 2017 daemon.err adblock.sh[2273]: BusyBox v1.23.2 (2016-01-02 18:01:44 CET) multi-call binary.

Do anyone know how to solve my problem?

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

369 (edited by supperzerohero 2017-01-19 15:34:53)

Re: adblock package, release 2.x

can i add blocklist for my country?
if not, please add list: drive.google.com/open?id=0Bx1dNRoQZ2M2dDF4NXI5NTRZanc

Re: adblock package, release 2.x

supperzerohero wrote:

can i add blocklist for my country?

yes, please read the online documentation (see first post) with an example for adding new block lists on your own.

371 (edited by supperzerohero 2017-01-20 18:45:43)

Re: adblock package, release 2.x

i config source 'rolist' with url: abpvn.com/filter/abpvn-QGMKcG.txt
is that true?

372 (edited by dibdot 2017-01-20 19:10:14)

Re: adblock package, release 2.x

supperzerohero wrote:

i config source 'rolist' with url: abpvn.com/filter/abpvn-QGMKcG.txt
is that true?

add something like that to /etc/config/adblock:

config source 'unknown'
        option enabled '1'
        option adb_src 'http://abpvn.com/filter/abpvn-QGMKcG.txt'
        option adb_src_rset '{FS=\"[|^]\"} \$0 ~/^\|\|([A-Za-z0-9_-]+\.){1,}[A-Za-z]+\^$/{print tolower(\$3)}'
        option adb_src_desc 'unknown'

and restart adblock processing (/etc/init.d/adblock restart) afterwards.

Re: adblock package, release 2.x

So I am running adblock 2.1.1 on OpenWrt Designated Driver 50082 and I can't find a way to update block lists.   I read the manual thrice or more times and it says that the lists are updated when running "/etc/init.d/adblock start".  But I can't find anything in the log where it indicates updating the block lists when I run /etc/init.d/adblock start or /etc/init.d/adblock restart from command line or cronjob.  This is all log shows:

# logread -e 'adblock'

Fri Jan 20 20:30:17 2017 user.notice adblock-[2.1.1] debug: memory ::: total: 125732, free: 74392, swap: 0
Fri Jan 20 20:30:17 2017 user.notice adblock-[2.1.1] debug: space  ::: tmp_dir: /tmp/tmp.BfIbId, tmp_kb: 58052, backup: 0, backup_dir: /mnt, backup_kb: 1192
Fri Jan 20 20:30:18 2017 user.notice adblock-[2.1.1] 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
Fri Jan 20 20:30:18 2017 user.notice adblock-[2.1.1] debug: loop   ::: name: adaway, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.adaway
Fri Jan 20 20:30:18 2017 user.notice adblock-[2.1.1] debug: loop   ::: name: adaway, load-rc: 0
Fri Jan 20 20:30:18 2017 user.notice adblock-[2.1.1] debug: loop   ::: name: adaway, list-rc: 0
Fri Jan 20 20:30:18 2017 user.notice adblock-[2.1.1] debug: loop   ::: name: disconnect, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.disconnect
Fri Jan 20 20:30:19 2017 user.notice adblock-[2.1.1] debug: loop   ::: name: disconnect, load-rc: 0
Fri Jan 20 20:30:20 2017 user.notice adblock-[2.1.1] debug: loop   ::: name: disconnect, list-rc: 0
Fri Jan 20 20:30:20 2017 user.notice adblock-[2.1.1] debug: loop   ::: name: yoyo, enabled: 1, dnsfile: /tmp/dnsmasq.d/adb_list.yoyo
Fri Jan 20 20:30:21 2017 user.notice adblock-[2.1.1] debug: loop   ::: name: yoyo, load-rc: 0
Fri Jan 20 20:30:21 2017 user.notice adblock-[2.1.1] debug: loop   ::: name: yoyo, list-rc: 0
Fri Jan 20 20:30:32 2017 user.notice adblock-[2.1.1] debug: memory ::: total: 125732, free: 78200, swap: 0
Fri Jan 20 20:30:32 2017 user.notice adblock-[2.1.1] debug: space  ::: tmp_dir: /tmp/tmp.BfIbId, tmp_kb: 54700, backup: 0, backup_dir: /mnt, backup_kb: 1192
Fri Jan 20 20:30:32 2017 user.notice adblock-[2.1.1] info : status ::: block lists with overall 52246 domains loaded (OpenWrt Designated Driver 50082)

Now, if I go check adblock in Luci app, it does not show me updated lists and, in fact, I am not even sure it is actually blocking domains at all.   

my /etc/config/adblock is as folllows:

config adblock 'global'
        option adb_enabled '1'
        option adb_whitelist '/etc/adblock/adblock.whitelist'
        option adb_whitelist_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\"^\"\$1\"\\\|[.]\"\$1)}'
        option adb_debug '1'

config service 'backup'
        option enabled '0'
        option adb_dir '/mnt'

[....]  # it doesn't let me post links, so I cannot show all the sources I am using, but I guess this is not important.

Any hints would be much appreciated.

Andrejs

Re: adblock package, release 2.x

locojohn wrote:

So I am running adblock 2.1.1 on OpenWrt Designated Driver 50082 and I can't find a way to update block lists.

# logread -e 'adblock'
Fri Jan 20 20:30:32 2017 user.notice adblock-[2.1.1] info : status ::: block lists with overall 52246 domains loaded (OpenWrt Designated Driver 50082)

That's the normal output for a successful update. To receive more adblock statistics ask ubus:

root@blackhole:~# ubus call service list '{"name":"adblock_stats"}'
{
    "adblock_stats": {
        "instances": {
            "stats": {
                "running": false,
                "command": [
                    ""
                ],
                "data": {
                    "active_lists": [
                        {
                            "palevo": "14",
                            "blacklist": "143",
                            "winspy": "164",
                            "zeus": "420",
                            "rolist": "648",
                            "malwarelist": "1217",
                            "ransomware": "1471",
                            "openphish": "1863",
                            "ruadlist": "1775",
                            "yoyo": "2313",
                            "dshield": "153",
                            "disconnect": "3181",
                            "spam404": "6251",
                            "whocares": "11868",
                            "winhelp": "10917",
                            "malware": "11322",
                            "sysctl": "8529",
                            "securemecca": "9918",
                            "shalla": "25787",
                            "hphosts": "37132"
                        }
                    ],
                    "adblock_version": "2.1.1",
                    "blocked_domains": "135086",
                    "dns_backend": "dnsmasq",
                    "last_rundate": "20.01.2017 19:07:13",
                    "system": "LEDE Reboot SNAPSHOT r2966-0d8381aea3"
                }
            }
        }
    }
}

375 (edited by locojohn 2017-01-20 21:05:17)

Re: adblock package, release 2.x

dibdot wrote:

That's the normal output for a successful update. To receive more adblock statistics ask ubus:

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

ubus call service list '{"name":"adblock_stats"}'
{
    "adblock_stats": {
        "instances": {
            "stats": {
                "running": false,
                "command": [
                    ""
                ],
                "data": {
                    "active_lists": [
                        {
                            "adaway": "409",
                            "ruadlist": "2353",
                            "yoyo": "2323",
                            "disconnect": "3193",
                            "sysctl": "20331",
                            "shalla": "27079"
                        }
                    ],
                    "adblock_version": "2.1.1",
                    "blocked_domains": "55688",
                    "dns_backend": "dnsmasq",
                    "last_rundate": "20.01.2017 22:03:34",
                    "system": "OpenWrt Designated Driver 50082"
                }
            }
        }
    }
}

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?

Andrejs