Commit Graph

131 Commits

Author SHA1 Message Date
Sven Eckelmann bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00
Dirk Brenken 45cb0e1023
adblock: update 3.8.5
* 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>
2019-09-06 11:08:07 +02:00
Dirk Brenken 161597f2fa
adblock: update 3.8.4
* fix the 'adb_sysver' output
* pass the adblock version information to the helper scripts correctly

Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-08-29 14:45:01 +02:00
Dirk Brenken 95189994e7
adblock: update 3.8.3
* 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>
2019-08-26 14:18:40 +02:00
Dirk Brenken 806f5ca9d8
adblock: update 3.8.2
* 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>
2019-08-21 11:16:43 +02:00
Dirk Brenken 866878aa78
adblock: update 3.8.1
* 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>
2019-08-20 09:45:28 +02:00
Dirk Brenken 504412ccdb
adblock: release 3.8.0
* 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>
2019-08-16 05:08:58 +02:00
Dirk Brenken 1d81adc003
adblock: update 3.6.5-2
* 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>
2019-07-14 22:13:49 +02:00
Dirk Brenken be848a000e adblock: update 3.6.5
- 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>
2019-02-02 08:38:56 +01:00
Dirk Brenken 5a7e8cea89 adblock: bugfix 3.6.4
* 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>
2019-01-24 12:31:47 +01:00
Dirk Brenken 6216168262 adblock: release 3.6.3
* 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>
2019-01-14 15:58:13 +01:00
Dirk Brenken 3233bb307b adblock: update 3.6.2
* 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>
2019-01-09 12:40:45 +01:00
Dirk Brenken 9ec73489e0 adblock: release 3.6.1
* 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>
2018-12-26 21:19:21 +01:00
Dirk Brenken 4e8d22eced adblock: release 3.6.0
* 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>
2018-12-19 17:32:29 +01:00
Dirk Brenken 299b6c3928 adblock: update 3.5.5-4
* fix a cornercase suspend/resume issue
  with empty/no blocklists

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-11-30 20:04:16 +01:00
Dirk Brenken ff139131a7 adblock: fix adguard source
* fix regex for adguard blocklist source

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-11-10 17:39:08 +01:00
Dirk Brenken cd3f925210 adblock: bugfix 3.5.5v2
* fix uci wrapper calls
* fix link in readme

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-09-05 17:39:57 +02:00
Dirk Brenken 4987f066f9 adblock: update 3.5.5
* 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>
2018-09-01 08:35:35 +02:00
Dirk Brenken b03075ba51 adblock: bugfix 3.5.4 v2
* fix wrong firewall syntax of the last commit

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-07-24 21:53:03 +02:00
Dirk Brenken eb2891cd99 adblock: 3.5.4
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>
2018-07-21 22:27:04 +02:00
Dirk Brenken 18190c1fbb adblock: update 3.5.3
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>
2018-06-07 21:12:42 +02:00
Dirk Brenken 1aa8e8fe14 adblock: change winspy url
* the windows 7/8.1/10 rules has been merged and the blocklist url
  has been changed

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-06-04 14:29:47 +02:00
Dirk Brenken 258039dbbe adblock: update 3.5.2
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>
2018-05-14 22:23:18 +02:00
Dirk Brenken ba6d67883a adblock: update 3.5.1
* maintenance update, just small backend bugfixes

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-02-20 15:30:52 +01:00
Dirk Brenken c44e40809e adblock: update 3.5.0
* 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>
2018-01-31 13:13:32 +01:00
Dirk Brenken c3098f69d0 adblock: update 3.4.3
* 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>
2018-01-10 22:28:53 +01:00
Dirk Brenken 35234924cb adblock: update 3.4.1
* 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>
2018-01-05 20:25:28 +01:00
Dirk Brenken d699afd7fe adblock: release 3.4.0
* 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>
2017-12-28 18:11:17 +01:00
Dirk Brenken f831d54d90 adblock: update 3.1.1
* 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>
2017-12-02 18:46:53 +01:00
Julius-Paul Jann e49b2e2c08 adblock: add German list
Signed-off-by: Julius-Paul Jann <foss@nokius.net>
2017-11-09 20:41:53 +01:00
Dirk Brenken 02e21a1e71 adblock: release 3.1.0
* 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>
2017-11-04 14:00:20 +01:00
Dirk Brenken 5c934e5352 adblock: update 3.0.3
* add new list source to default config to block browser-based
  crypto mining

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-10-18 12:50:12 +02:00
Dirk Brenken 8822046be5 adblock: update 3.0.2
* better system information
* several kresd related documentation fixes

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-09-15 14:51:14 +02:00
Dirk Brenken 4deebc0b18 adblock: bugfix 3.0.1
* 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>
2017-09-12 11:44:37 +02:00
Dirk Brenken 206c847bb5 adblock: release 3.0
* 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>
2017-09-09 19:45:36 +02:00
Dirk Brenken 9aba9ac562 adblock: update 2.8.5
* 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>
2017-08-04 11:01:15 +02:00
Patrick Mulder 0513566fcf adblock: Added a new region.
Signed-off-by: Patrick Mulder <pcmulder89@gmail.com>
2017-07-22 20:33:26 +02:00
Dirk Brenken d51f38672a adblock: update 2.8.3
* refine manual/backup mode (exclude local blacklist processing)
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-07-05 18:46:08 +02:00
Dirk Brenken acafc3c40e adblock: update 2.8.2
* made DNS restart conditional (compare list hash values),
  to prevent needless restarts of the DNS backend

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-06-29 15:34:18 +02:00
Dirk Brenken e2af11adeb adblock: update 2.8.1
* revert 'wan6' interface trigger in default config
  due to current procd limitation (see: #4521)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-06-29 12:57:15 +02:00
Dirk Brenken 14c5e7cae9 adblock: update 2.8.0 (release 2)
* fix a logical glitch

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-06-27 08:44:15 +02:00
Dirk Brenken e660813798 adblock: update 2.8.0
* 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>
2017-06-27 07:45:34 +02:00
Dirk Brenken 88be3d2d49 adblock: update 2.7.1
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>
2017-06-09 20:19:56 +02:00
Dirk Brenken 617448dc93 adblock: update 2.7.0
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>
2017-06-07 19:31:13 +02:00
Dirk Brenken 272c79de83 adblock: maintenance update 2.6.4
* 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>
2017-05-17 21:28:12 +02:00
Dirk Brenken 6ffae3bc1e adblock: maintenance update 2.6.3
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>
2017-05-08 11:19:57 +02:00
Dirk Brenken bf7d1dc85c adblock: update 2.6.2
* refine 'force dns' handling:
  - enabled-check before firewall reload
  - add rule name (better LuCI experience)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-04-29 07:56:28 +02:00
Dirk Brenken 95b3c8ba12 adblock: update 2.6.1
* 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>
2017-04-26 13:36:49 +02:00
Dirk Brenken fcc91afc65 adblock: update 2.6.0-2
* 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>
2017-04-17 17:54:37 +02:00
Dirk Brenken 45af003ba1 adblock: update 2.6.0
* 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>
2017-04-12 15:54:11 +02:00