aboutsummaryrefslogtreecommitdiff
path: root/net/adblock/files/adblock.init
Commit message (Collapse)AuthorAge
* adblock: update 4.1.5-3Dirk Brenken2022-10-22
| | | | | | | * fixed search regression in DNS report * removed last shallalist pointers in the init help Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 4.1.5-2Dirk Brenken2022-10-20
| | | | | | | | * fixed broken/blocked oisd download links (switched to the official github mirror) * made sure that curl error out on http errors as well * removed obsolete compatibility stuff from init script Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 4.1.5Dirk Brenken2022-10-18
| | | | | | | | | | | | * made the reporting/top statistics flexible, see "top_count" parm in CLI or in LuCI (default 10), fixes #19622 * added the new blocklist source cpbl (provided by PascalCoffeeLake@gmail.com) * added/separated Easylist/Easyprivacy blocklist sources (provided by PascalCoffeeLake@gmail.com) * added reg_jp blocklist_source (provided by PascalCoffeeLake@gmail.com) * removed the easylist addons from the other regional lists * removed the second/obsolete pl regional list and renamed the first one to "reg_pl" * updated the readme Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 4.1.4-2Dirk Brenken2022-09-11
| | | | | | | | | * some more cleanups, forgotten with the last update * optimized unbound syntax ('always_nxdomain' & 'always_transparent') * optimized oisd download sources (use wilcard variants which are much smaller) * removed superfluous version information/function Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 4.1.4Dirk Brenken2022-09-10
| | | | | | | | | | | | * dnsmasq upstream has changed the code for domain handling and recommends the 'local' syntax for large blocklists * remove pipefail command, see #19043 for reference * removed the unused 'adb_dnsinotify' parameter * removed the 'adb_maxqueue' parameter, the queue size will be automatically set by the number of cpu cores * various cleanups, mostly shellcheck related Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: 4.1.3-6Dirk Brenken2022-03-07
| | | | | | | * remove discontinued sources: shallalist, stalkerware * fix a logical glitch in startup trigger handling Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update to 4.1.1Dirk Brenken2021-04-17
| | | | | | | | | | | | * support the RPZ trigger 'RPZ-CLIENT-IP' to always allow/block certain clients based on their IP (currently only supported by bind!) * avoid promiscuous mode in tcpdump setup for adblock reporting * speed up dns report preparation * support dns report mailing (/etc/init.d/adblock report mail) * fix bind autodetection * update LuCI-frontend (separate PR) * update readme Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 4.1.0Dirk Brenken2021-02-26
| | | | | | | | | | | | * major source changes: * split oisd.nl in basic and full variant * add swedish regional list * made archive categories for shallalist and utcapitole selectable via LuCI * made all list variants of energized and stevenblack selectable via LuCI * removed dns filereset mode Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: fix when PROCD_RELOAD_DELAY is setThiago de Arruda Padilha2020-12-23
| | | | | | Move the "PROCD_RELOAD_DELAY" line to after the "delay" variable is set. Signed-off-by: Thiago de Arruda Padilha <tpadilha84@gmail.com>
* adblock: adapt openwrt rc.common changesDirk Brenken2020-11-03
| | | | | | | | | * since openwrt master has merged the depending P/R, the old extra_help/extra_commands syntax is no longer working, see #13798 for reference * removed test.sh script from package Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 4.0.7Dirk Brenken2020-10-18
| | | | | | | | | | | * fix aria2c download options * fix report engine with empty domains * fix safesearch ips of safe.duckduckgo.com (get ips dynamically) * fix safesearch ips of safesearch.pixabay.com (get ips dynamically) * add regional blocklist for italy * shellcheck adjustments * add test.sh for CI testing Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 4.0.5-4Dirk Brenken2020-05-31
| | | | | | | | * remove dumb list cache * start adblock processing after adding/removing list sources via CLI * add regional list source for france Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 4.0.5Dirk Brenken2020-05-23
| | | | | | | | | | * update energized source urls, add ultimate variant * switch shalla source to http (invalid server certificate) * add another stevenblack source variant (normal / porn) * small cornercase fixes * update readme Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 4.0.2Dirk Brenken2020-04-03
| | | | | | | | | | | * removed 'hphosts' from sources (discontinued) * fixed a "out of range" bug and another small issue in the f_dnsup function * add three new sources: 'anudeep', 'stopforumspam' and 'youtube' * changed 'list' behaviour, the source file has now a higher precedence than the archive file (see readme) * update readme, added missing parameters & more Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 4.0.0Dirk Brenken2020-03-28
| | | | | | | | | | | | | | | | | | | | | * new package dependencies: coreultis-sort and a download util with SSL support * focus on speed (multicore-support) to handle quite big lists * include 38 pre-configured blocklist sources in a compressed json file (/etc/adblock/adblock.sources.gz) * dynamic SafeSearch support for google, bing, duckduckgo, yandex, youtube and pixabay (CNAME (bind) & IP (dnsmaq, unbound)) * DNS backend autodetection * Download Utility autodetection * Report Interface autodetection * Easy cron wrapper to set an adblock related auto-timer for automatic blocklist updates * raw domain/blocklist support (e.g. for dnscrypt support) * re-add restrictive Jaillist support * rework online doc * Complete LuCI rewrite (migrated to client side JS) Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.8.11Dirk Brenken2019-11-16
| | | | | | | * some more init tweaks * update/cleanup readme Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.8.10Dirk Brenken2019-11-10
| | | | | * fix broken unbound integration Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.8.9Dirk Brenken2019-11-06
| | | | | | | * more startup tweaks * re-use f_log function in helper scripts * small fixes / polish up for forthcoming 19.07 release Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.8.7Dirk Brenken2019-10-31
| | | | | | * prevent forced parallel adblock service starts * refine service trigger Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: minor update 3.8.6-2Dirk Brenken2019-10-19
| | | | | | * fix service status message * refine readme regarding reload cron job (provided by @novoid) Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.8.6Dirk Brenken2019-09-16
| | | | | | | * refine stop logic to prevent needless dns backend restarts and other oddities * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.8.5Dirk Brenken2019-09-06
| | | | | | | | | | | | | | | | * use raw procd interface trigger as last resort, if the adblock config is not available during startup * fix selective subdomain whitelisting for dnsmasq * fix a kresd restart issue with 'DNS File Reset' * fix a suspend/resume cornercase * disable the tld compression, if the number of blocked domains is greater than 'adb_maxtld' (default: 100000) * made the fw portlist configurable (default '53 853 5353') * preliminary support for inotify-like autoload features of dns backends like kresd in future Turris OS. If 'adb_dnsinotify' is set to 'true', all adblock related restarts and the 'DNS File Reset' will be disabled Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 3.8.0Dirk Brenken2019-08-16
| | | | | | | | | | | | | | | | | | | | | | | * add support for 'DNS File Reset', where the final DNS blockfile will be purged after DNS backend loading (save storage space). A small background service will be started to trace/handle dns backend reloads/restarts * add support for the 'null' blocking variant in dnsmasq (via addn-hosts), which may provide better response times in dnsmasq * enhance the report & search engine to support the new blocking variants. Search now includes backups & black-/whitelist as well * compressed source list backups are now mandatory (default to '/tmp') * speed up TLD compression * E-Mail notification setup is now integrated in UCI/LuCI * update the LuCI frontend to reflect all changes (separate PR) * drop preliminary dnscrypt-proxy-support (use dnsmasq instead) * drop additional 'dnsjail' blocklist support (not used by anyone) * procd cleanups in init * various shellcheck cleanups * update readme Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 3.6.3Dirk Brenken2019-01-14
| | | | | | | | | | * the DNS Report now displays the hostname, MAC-Address or client IP (CLI & LuCI) * Filter the DNS Query result set for a particular domain, client or time frame (CLI & LuCI) * remove needless XHR.Poll-Events from Reporting page in LuCI * remove needless 'force sort' option in LuCI Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 3.6.0Dirk Brenken2018-12-19
| | | | | | | * add adblock dns query reporting via tcpdump (see readme for details) * fix tld compression on low memory systems (< 64 MB) * fix various small issues Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.5.5Dirk Brenken2018-09-01
| | | | | | | | | | | | * accept only ascii aka punycode chars in blocklists to prevent possible dns backend warnings * fix cornercase issues in json parsing (backend & frontend) * slightly optimize tld compression performance * refine logging * use uci wrapper where possible * change indentation from spaces to tabs (saves 8kb) * add experimental youtube blocklist source Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: 3.5.4Dirk Brenken2018-07-21
| | | | | | | | | | | | | backend: * add low priority mode (nice level 10), disabled by default * enhance 'Force DNS' to redirect ports 53, 853 and 5353 frontend: * switch to dynamic XHR polling for runtime information and logfile viewing * add new 'Refresh' button to reload blocklists * various cleanups & small fixes Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.5.1Dirk Brenken2018-02-20
| | | | | | * maintenance update, just small backend bugfixes Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.4.3Dirk Brenken2018-01-10
| | | | | | | | | | | | * add pidfile writing / check to prevent further race conditions * ease the download utility selection: uclient-fetch (default), wget, curl, aria2c, wget-nossl, busybox-wget are pre-configured * add debug download logging in case of an error, e.g. wrong url * change 'malware' blocklist source url * add logfile information to email template * LuCI: add 'Download Utility' select box * LuCI: add new "running" status Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.4.1Dirk Brenken2018-01-05
| | | | | | | | | | | | | | | | | | * enable code to support Turris Omnia forthcoming upstream change (new kresd 'keep_cache' option) to preserve kresd DNS cache * fix a 'status' race condition while the adblock process is running in parallel * various small speed improvements * rework debug output * refine blacklist handling * enable the (empty) blacklist source in the default config * email notification supports mstmp, even without sendmail symlink * email notification writes minimal status to log (one-liner) * LuCI: refine logfile search term * LuCI: Textarea 'autoscroll down' in logfile view * LuCI: Left-align blocklist source table plus a more compact design Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 3.4.0Dirk Brenken2017-12-28
| | | | | | | | | | | | | | | | | | | | * preserve DNS cache after adblock processing, - 'unbound' and 'named' support this (please check readme) - 'dnsmasq' now uses the 'servers-file' directive to minimize the reload disruption, even though the dns cache will be cleared after SIGHUP - 'kresd' dns cache is persistent by upstream default, anyway Turris Omnia devices need a small upstream software change which is not accepted/implemented yet * email notification in case of an error or domain count < n (default 0, check readme) * removed securemecca from default config (service has been closed) * new separate functions for hash compare and list/overall count * add missing package dependencies * various clean-ups * update documentation Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 3.0Dirk Brenken2017-09-09
| | | | | | | | | | | | | | * add kresd & turris omnia support * add dnscrypt-proxy support * change start priority to 30, to fix possible trigger issues on slow booting hardware * simplify suspend/resume handling (no longer use a hideout directory) * enhanced LuCI frontend * many small changes & improvements * default config change (please update your config!), adblock is now disabled by default * documentation update Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: maintenance update 2.6.3Dirk Brenken2017-05-08
| | | | | | | | | | | | | backend: * various small fixes & optimizations LuCI frontend (see luci repo): * Limit Blacklist/Whitelist Online editing to max. 512 KB, approx. 20.000 domains per list * Automatically refresh the overview page after button onclick event, e.g. 'Suspend/Resume' or 'Save & Apply' * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.6.0-2Dirk Brenken2017-04-17
| | | | | | | | | * change start priority to get all interface trigger events, even on fast hardware * made default trigger delay more conservative to fix possible start up issues Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.6.0Dirk Brenken2017-04-12
| | | | | | | | | | | | | | | | | | * no longer misuse ubus/procd service object for adblock runtime information, now save all required information directly in a JSON file/format (/tmp/adb_runtime.json) * new 'status' init command to print runtime information * add a configurable interface trigger timeout for nested or slow modem/router setups, set 'adb_triggerdelay' accordingly (default 1 second) * add support for pure http download utilities like wget-nossl or uclient-fetch without libustream-ssl (http donwloads only!) * fix stop action * fix enabled/disabled action * fix country code in regional list for china * LuCI update to reflect all changes Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.5.1Dirk Brenken2017-04-04
| | | | | | | | | | | | * re-order all regional lists in adblocklist/easylist format * add polish blocklist * add chinese blocklist * lists called now 'reg_<ch|pl|ro|ru>' * changed interface trigger default in config to 'wan' only * update / sync LuCI frontend (see luci repo for details) * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.5.0Dirk Brenken2017-03-26
| | | | | | | | | | | | | | | | | | * revamp LuCI GUI (see luci repo for details) * integrated runtime statistics in normal adblock ubus service instance (see readme) * simplified boot/init * no longer use raw interface trigger * use only network interface trigger, pre-configured for 'wan/wwan/lan' interfaces (see readme) * fixed a reload issue * removed switch to disable tld compression (seems to be pretty stable) * muted awk parser if source list contains incorrect records * raise dns backend timeout to 20 seconds * documentation update * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 2.4.0Dirk Brenken2017-02-28
| | | | | | | | | | | * add tld compression, this new "top level domain compression" removes up to 40 thousand needless host entries from the block lists and lowers the memory footprint for the dns backends by 8-10 MByte * optimize restart behavior in case of an error * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.3.1Dirk Brenken2017-02-16
| | | | | | | | * various optimizations & corner case fixes * removed no longer needed debug information * polished up for forthcoming LEDE release ;-) Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 2.3.0Dirk Brenken2017-02-05
| | | | | | | | | | | | | | | | * 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 * documentation update Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.1.5Dirk Brenken2017-01-23
| | | | | | | | | | | * fix init boot function * made fetch utility check more bullet proof * automatically switch between default wget & uclient-fetch configuration * output link to online documentation on error * update documentation Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: bugfix 2.1.2Dirk Brenken2017-01-20
| | | | | | * fix minor build error in init script Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.0.2Dirk Brenken2016-12-23
| | | | | | | * fixed dnsmasq check if multiple instances are present * bring back query function on highly demand * documentation update Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: bugfix 2.0.1Dirk Brenken2016-12-22
| | | | | | | | | | * fixed a dnsmasq restart issue (udhcpc error) * fixed a long standing corner case bug in "disabled" state (does not remove active block lists!) * simplified overall sort, removed needless 'for loop' * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 2.0.0Dirk Brenken2016-12-20
| | | | | | | | | | | | | | | | | | | | | | | | * changed complete dnsmasq handling - no longer redirect ad requests to internal web server via firewall rules etc., in fact send back a simple NXDOMAIN for all ad related (sub-)domains - smaller memory footprint for block lists - removed needless uhttpd instances - removed needless firewall rules/redirects * init/hotplug system migrated to procd - removed hotplug.d script, now using procd interface trigger * reduced code size/complexity - removed needless internal pre-checks & function blocks, no longer rely on a separate helper library - removed flash writes to adblock config * support different download tools like wget (default), aria2c, uclient-fetch, curl (see online doc) * adblock status/statistics via ubus call (see online doc) * various bug fixes * documentation update * changed makefile copyright notice Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 1.5.0Dirk Brenken2016-10-07
| | | | | | | | | | | | * add new 'envchk'function to check adblock environment only, i.e. check volatile firewall rules or uhttpd instances without list updates * add new optional parm 'adb_loglevel', set it to "0" to mute output (print only errors) * set hotplug priority to '90' as well (missed in the last commit) * documentation update * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 1.4.10Dirk Brenken2016-09-29
| | | | | | | | - add 'enabled' check to iface hotplug event handler - decrease startup priority from 99 to 90 - fix tab indentation in config Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 1.4.9Dirk Brenken2016-09-11
| | | | | * refine query function (see online doc) Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 1.4.8Dirk Brenken2016-08-28
| | | | | | | | | | | * enhance the new query function: change the regex to find only the relevant blocklist entries add a recursive tld search to quickly identify domains for whitelisting (see documentation) better result preparation * add securemecca as new blocklist source * documentation update Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 1.4.7Dirk Brenken2016-08-26
| | | | | | | | | | * add a query function to search the active blocklists for a specific domain (/etc/init.d/adblock query <DOMAIN>) * fix bug in ap mode/uhttpd port detection * check general firewall and dnsmasq package dependencies and remove redundant checks in ap mode Signed-off-by: Dirk Brenken <dev@brenken.org>