|
@@ -12,22 +12,24 @@ and return the local ip address of your router and the internal web server deliv
|
12
|
12
|
* support of the following domain blacklist sites (free for private usage, for commercial use please check their individual licenses):
|
13
|
13
|
* [pgl.yoyo.org](http://pgl.yoyo.org/adservers), approx. 2.500 entries
|
14
|
14
|
* [malwaredomains.com](http://malwaredomains.com), approx. 16.000 entries
|
15
|
|
- * [zeustracker.abuse.ch](https://zeustracker.abuse.ch), currently down
|
|
15
|
+ * [zeustracker.abuse.ch](https://zeustracker.abuse.ch), approx. 420 entries
|
16
|
16
|
* [feodotracker.abuse.ch](https://feodotracker.abuse.ch), approx. 10 entries
|
17
|
17
|
* [palevotracker.abuse.ch](https://palevotracker.abuse.ch), approx. 10 entries
|
18
|
18
|
* [dshield.org](http://dshield.org), approx. 4.500 entries
|
19
|
|
- * [shallalist.de](http://www.shallalist.de) (tested with the categories "adv" "costtraps" "downloads" "spyware" "tracker" "warez"), approx. 37.000 entries
|
|
19
|
+ * [shallalist.de](http://www.shallalist.de) (categories "adv" "costtraps" "spyware" "tracker" "warez" enabled by default), approx. 32.000 entries
|
|
20
|
+ * a short description of all shallalist categories can be found [online](http://www.shallalist.de/categories.html)
|
20
|
21
|
* [spam404.com](http://www.spam404.com), approx. 5.000 entries
|
21
|
22
|
* [winhelp2002.mvps.org](http://winhelp2002.mvps.org), approx. 15.000 entries
|
22
|
23
|
* blocklist parsing by fast & flexible regex rulesets
|
23
|
24
|
* additional white- and blacklist support for manual overrides
|
24
|
25
|
* separate dynamic adblock network interface
|
25
|
26
|
* separate dynamic uhttpd instance as pixel server
|
26
|
|
-* optional: quality checks and a powerful backup/restore handling to ensure a reliable dnsmasq service
|
|
27
|
+* adblock quality checks after list update to ensure a reliable dnsmasq service
|
|
28
|
+* optional: powerful adblock list backup/restore handling
|
27
|
29
|
* optional: adblock updates only on pre-defined wan interfaces (useful for (mobile) multiwan setups)
|
28
|
|
-* optional: domain query logging as a background service to easily identify free and already blocked domains
|
|
30
|
+* optional: domain query logging as a background service to easily identify free and already blocked domains (see example output below)
|
|
31
|
+* optional: status & error logging to separate file (req. ntp time sync)
|
29
|
32
|
* optional: ntp time sync
|
30
|
|
-* optional: status & error logging (req. ntp time sync)
|
31
|
33
|
|
32
|
34
|
## Prerequisites
|
33
|
35
|
* [openwrt](https://openwrt.org) (tested only with trunk > r47025), CC should also work
|
|
@@ -41,8 +43,9 @@ and return the local ip address of your router and the internal web server deliv
|
41
|
43
|
|
42
|
44
|
## Usage
|
43
|
45
|
* select & install adblock package (*opkg install adblock*)
|
44
|
|
-* configure /etc/config/adblock to your needs, see additional comments in *adblock.conf.sample*
|
|
46
|
+* configure */etc/config/adblock* to your needs, see additional comments in *adblock.conf.sample*
|
45
|
47
|
* at least configure the ip address of the local adblock interface/uhttpd instance, needs to be a different subnet from the normal LAN
|
|
48
|
+* optional: add additional domain white- or blacklist entries, one domain per line (wildcards & regex are not allowed!), both list are located in */etc/adblock*
|
46
|
49
|
* by default openwrts main uhttpd instance is bind to all ports of your router. For a working adblock setup you have to bind uhttpd to the standard LAN port only, please change listen_http accordingly
|
47
|
50
|
* start /usr/bin/adblock-update.sh and check console output or *logread -e "adblock"* for errors
|
48
|
51
|
|
|
@@ -59,25 +62,24 @@ and return the local ip address of your router and the internal web server deliv
|
59
|
62
|
|
60
|
63
|
stdout excerpt for successful adblock run:
|
61
|
64
|
|
62
|
|
- root@pi2wrt:~# /usr/bin/adblock-update.sh
|
63
|
|
- adblock[17771] info : domain adblock processing started (0.21.0)
|
64
|
|
- adblock[17771] info : get wan/update interface (wlan1), after 0 loops
|
65
|
|
- adblock[17771] info : get ntp time sync (0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org), after 0 loops
|
66
|
|
- adblock[17771] info : shallalist archive download finished
|
67
|
|
- adblock[17771] info : shallalist archive extraction finished
|
68
|
|
- adblock[17771] info : shallalist (pre-)processing finished (adv costtraps downloads spyware tracker warez)
|
69
|
|
- adblock[17771] info : source download finished (http://pgl.yoyo.org/adservers/serverlist.php?hostformat=one-line&showintro=0&mimetype=plaintext, 2426 entries)
|
70
|
|
- adblock[17771] info : source download finished (http://mirror1.malwaredomains.com/files/justdomains, 15275 entries)
|
71
|
|
- adblock[17771] info : source download finished (https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist, 3 entries)
|
72
|
|
- adblock[17771] info : source download finished (https://feodotracker.abuse.ch/blocklist/?download=domainblocklist, 0 entries)
|
73
|
|
- adblock[17771] info : source download finished (https://palevotracker.abuse.ch/blocklists.php?download=domainblocklist, 11 entries)
|
74
|
|
- adblock[17771] info : source download finished (http://www.dshield.org/feeds/suspiciousdomains_Low.txt, 4542 entries)
|
75
|
|
- adblock[17771] info : source download finished (http://spam404bl.com/spam404scamlist.txt, 5193 entries)
|
76
|
|
- adblock[17771] info : source download finished (http://winhelp2002.mvps.org/hosts.txt, 13852 entries)
|
77
|
|
- adblock[17771] info : source download finished (file:////tmp/tmp.emlDeH/shallalist.txt, 36961 entries)
|
78
|
|
- adblock[17771] info : source download finished (file:///etc/adblock/adblock.blacklist, 1 entries)
|
79
|
|
- adblock[17771] info : new adblock list with 73090 domains loaded, backup generated
|
80
|
|
- adblock[17771] info : domain adblock processing finished (0.21.0)
|
|
65
|
+ adblock[11541] info : domain adblock processing started (0.22.2, r47665, 29.11.2015 14:58:11)
|
|
66
|
+ adblock[11541] info : wan update check will be disabled
|
|
67
|
+ adblock[11541] info : get ntp time sync (192.168.254.254), after 0 loops
|
|
68
|
+ adblock[11541] info : shallalist (pre-)processing started ...
|
|
69
|
+ adblock[11541] info : shallalist (pre-)processing finished (adv costtraps spyware tracker warez)
|
|
70
|
+ adblock[11541] info : source download finished (http://pgl.yoyo.org/adservers/serverlist.php?hostformat=one-line&showintro=0&mimetype=plaintext, 2423 entries)
|
|
71
|
+ adblock[11541] info : source download finished (http://mirror1.malwaredomains.com/files/justdomains, 16016 entries)
|
|
72
|
+ adblock[11541] info : source download finished (https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist, 419 entries)
|
|
73
|
+ adblock[11541] info : source download finished (https://feodotracker.abuse.ch/blocklist/?download=domainblocklist, 0 entries)
|
|
74
|
+ adblock[11541] info : source download finished (https://palevotracker.abuse.ch/blocklists.php?download=domainblocklist, 12 entries)
|
|
75
|
+ adblock[11541] info : source download finished (http://www.dshield.org/feeds/suspiciousdomains_Low.txt, 4542 entries)
|
|
76
|
+ adblock[11541] info : source download finished (http://spam404bl.com/spam404scamlist.txt, 5193 entries)
|
|
77
|
+ adblock[11541] info : source download finished (http://winhelp2002.mvps.org/hosts.txt, 13635 entries)
|
|
78
|
+ adblock[11541] info : source download finished (file:////tmp/tmp.CgbMmO/shallalist.txt, 32446 entries)
|
|
79
|
+ adblock[11541] info : empty source download finished (file:///etc/adblock/adblock.blacklist)
|
|
80
|
+ adblock[11541] info : domain merging finished
|
|
81
|
+ adblock[11541] info : new adblock list with 69646 domains loaded, backup generated
|
|
82
|
+ adblock[11541] info : domain adblock processing finished (0.22.2, r47665, 29.11.2015 14:59:23)
|
81
|
83
|
|
82
|
84
|
|
83
|
85
|
generated domain blocklist for dnsmasq:
|