aboutsummaryrefslogtreecommitdiff
path: root/net/adblock/files/adblock.sh
Commit message (Collapse)AuthorAge
...
* adblock: update 3.8.4Dirk Brenken2019-08-29
| | | | | | | * fix the 'adb_sysver' output * pass the adblock version information to the helper scripts correctly Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.8.3Dirk Brenken2019-08-26
| | | | | | | | | * fix a dns restart issue if 'flush dns cache' is set * fix a suspend/resume issue, the status wasn't properly updated * fix a long standing query issue * rework return code handling, mostly for debugging * various cleanups & cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.8.2Dirk Brenken2019-08-21
| | | | | | | | | | * background service: no longer miss "signal" events for the dns backend (to trigger adblock) * fix a dns backend reload issue during switch between different blocking modes * domain query: report found domains only once in "null" blocking mode with IPv4 & IPv6 list entries Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.8.1Dirk Brenken2019-08-20
| | | | | | | * fix a possible race condition during DNS file reset on slow hardware * optimize DNS restart behaviour in 'null' blocking mode * mute useless warnings 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: update 3.6.5-2Dirk Brenken2019-07-14
| | | | | | | | * clean-up config - remove youtube source (not working, false positives) - remove urlhaus source (false positives) - remove zeus source (discontinued) Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.6.5Dirk Brenken2019-02-02
| | | | | | | | | - fix reporting for bogus hostnames with underscores - no longer accidently overwrite existing 'serversfile' entries in dhcp config which reference to the adblock jail list - remove needless 'no_mail' flag - refined log message regarding tcpdump requirement for reporting Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: bugfix 3.6.4Dirk Brenken2019-01-24
| | | | | | | * respect 'adb_report' option to enable/disable adblock reporting (incl. tcpdump background process) * other reporting related corner case fixes 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: update 3.6.2Dirk Brenken2019-01-09
| | | | | | | | | | | | * enhance the query function to search in adblock backups as well, to get back the set of blocking lists sources for a certain domain * add "Latest DNS Queries" report to commandline version as well (already in LuCI) * made the tld compression (the error handling) more robust, remove the needless 'adb_forcesrt' option * removed abandoned 'feodo' list source * updated readme Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 3.6.1Dirk Brenken2018-12-26
| | | | | | | | | | * report engine supports multiple listening ports, set 'adb_replisten' to a space separated list of ports, default '53' * report engine supports multiple interfaces, set 'adb_repiface' to 'any' * small fixes 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.5-4Dirk Brenken2018-11-30
| | | | | | | * fix a cornercase suspend/resume issue with empty/no blocklists Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: bugfix 3.5.5v2Dirk Brenken2018-09-05
| | | | | | | * fix uci wrapper calls * fix link in readme 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: bugfix 3.5.4 v2Dirk Brenken2018-07-24
| | | | | * fix wrong firewall syntax of the last commit 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.3Dirk Brenken2018-06-07
| | | | | | | | | | | | | | | | backend: * enhance the whitelist function. Now sub-domains could be whitelisted (e.g. 'fakenews.facebook.com'), even if the correspondent tld is blacklisted (e.g. 'facebook.com') - this makes whitelisting much more flexible and predictable * rework the domain query function to adapt the whitelist changes * refine startup error checks/messages * small fixes luci: * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.5.2Dirk Brenken2018-05-14
| | | | | | | | | | | | | | backend: * add generic blocklist archive support * add support for blacklist archive from Toulouse 1 University Capitole * add support for urlhaus RPZ domains by abuse.ch * small bugfixes & enhancements luci: * archive sub-categories (shalla & ut_capitole) are now configurable via LuCI CBI template * small bugfixes & enhancements 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.5.0Dirk Brenken2018-01-31
| | | | | | | | | | | | | | | | | | | | * major performance boost: add a flexible 'Download Queue' to handle downloads & list processing in parallel, default queue size is '4', you can raise this e.g. to '8' or '16' to get it really fast * replace former 'whitelist mode': the new 'Jail' option builds an additional 'adb_list.jail' list in parallel which can be used manually for guest wifi or kidsafe configurations * regex parser & query function now fully support IDN domains with non-ASCII characters * add error handling in tld compression, to handle OOM conditions better * adblock.notify sends now html emails, to get a better look & feel, even on mobile devices * add czech regional blocklist maintained by turris omnia users * LuCI: Support new 'Download Queue' & 'Jail' options * LuCI: fix field width in "Runtime Information" section 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: update 3.1.1Dirk Brenken2017-12-02
| | | | | | | | | | | | * new function to set/delete options in external uci config files * kresd: automated 'rpz_file' handling in /etc/config/resolver * firewall: automated 'force_dns' handling if you enable or disable adblock * support sha256sum (default) and md5sum for blocklist comparison & conditional dns restarts * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: release 3.1.0Dirk Brenken2017-11-04
| | | | | | | | | | | | | | | | | * please note: config file update required! * add 'whitelist only' mode, block access to all domains except those explicitly listed in the whitelist file * rework awk regex for all blocklist sources * include 'third-party' domains for all regional lists * change adguard url and refine filter ruleset * use POSIX character classes * fix regex for whitelist preparation * fix corner case parsing issues * fix enable/disable behavior * various other small fixes * documentation update Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.0.3Dirk Brenken2017-10-18
| | | | | | | * add new list source to default config to block browser-based crypto mining Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 3.0.2Dirk Brenken2017-09-15
| | | | | | | * better system information * several kresd related documentation fixes Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: bugfix 3.0.1Dirk Brenken2017-09-12
| | | | | | | | * fix startup issues with backends like dnscrypt-proxy or kresd which does not come up without an existing block list * fix a small 'chown' issue 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: update 2.8.5Dirk Brenken2017-08-04
| | | | | | | | * add preliminary kresd dns backend support for turris devices, see readme (experimental / untested!) * use tld compression for overall list, too * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.8.3Dirk Brenken2017-07-05
| | | | | | | * refine manual/backup mode (exclude local blacklist processing) * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.8.2Dirk Brenken2017-06-29
| | | | | | | * made DNS restart conditional (compare list hash values), to prevent needless restarts of the DNS backend Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.8.1Dirk Brenken2017-06-29
| | | | | | | * revert 'wan6' interface trigger in default config due to current procd limitation (see: #4521) Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.8.0 (release 2)Dirk Brenken2017-06-27
| | | | | * fix a logical glitch Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.8.0Dirk Brenken2017-06-27
| | | | | | | | | | | | * add bind support (see readme) * export all blocked domains in one central file (adb_list.overall) * prerequisite for proper bind support * much faster sort operation with less memory consumption * backups are still handled per source separately, to be more flexible in adding/removing block list sources * add additional 'wan6' interface trigger in default configuration * various small fixes & optimizations Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.7.1Dirk Brenken2017-06-09
| | | | | | | | | | backend: * cosmetics frontend: * "Save & Reply" now distinguish between normal and manual/backup mode and triggers an appropriate reload or a start action Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.7.0Dirk Brenken2017-06-07
| | | | | | | | | | | | | | | backend: * add new 'manual mode' to re-use blocklist backups during startup, get fresh lists only via manual reload or restart action * additional free memory check during dns restart to prevent OOM errors * removed palevo tracker from default config, this tracker has been discontinued * cosmetics LuCI frontend (see luci repo): * add new 'manual mode' under extra options Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: maintenance update 2.6.4Dirk Brenken2017-05-17
| | | | | | | | | | * made wget default parms compatible with older program versions * shift dns detection routine to simplify dns override, just set 'adb_dnslist' to force a particular backend priority (default: 'dnsmasq unbound') * reduce ubus polling during dns detection 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.2Dirk Brenken2017-04-29
| | | | | | | * refine 'force dns' handling: - enabled-check before firewall reload - add rule name (better LuCI experience) Signed-off-by: Dirk Brenken <dev@brenken.org>
* adblock: update 2.6.1Dirk Brenken2017-04-26
| | | | | | | | | * add "adb_forcedns" to redirect all dns requests to local resolver (disabled by default) * add "adb_forcesrt" to enable overall sort / duplicate removal on low memory devices with less than 64 MB RAM (disabled by default) 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.0 (release 2)Dirk Brenken2017-02-28
| | | | | | * add missing sort step if tld compression was disabled 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.2Dirk Brenken2017-02-22
| | | | | | | | * optimize memory consumption & enable overall sort only on devices with > 64MB RAM, this prevents sort related kernel dumps 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>