Commit graph

170 commits

Author SHA1 Message Date
Dirk Brenken
92c098fc02 adblock: update 2.1.5
* 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>
2017-01-23 19:03:41 +01:00
Dirk Brenken
d960507c5f adblock: bugfix 2.1.2
* fix minor build error in init script

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-01-20 09:57:33 +01:00
Dirk Brenken
43971e29a1 adblock: bugfix 2.1.1
* fix domain query function to support new unbound format

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-01-06 16:10:18 +01:00
Dirk Brenken
092599f126 adblock: update 2.1.0
* add initial unbound support (experimental, see online doc)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-01-05 10:33:29 +01:00
Dirk Brenken
1e99336f3c adblock: update 2.0.4
* small fixes & cosmetics (missed in last commit)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-12-31 14:17:40 +01:00
Dirk Brenken
412f1f58cc adblock: update 2.0.3
* fixed adblock statistics in CC
* print additional list details in adblock statistics

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-12-30 22:21:00 +01:00
Dirk Brenken
c842884168 adblock: update 2.0.2
* 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>
2016-12-23 07:18:57 +01:00
Dirk Brenken
708d83bc71 adblock: bugfix 2.0.1
* 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>
2016-12-22 19:33:59 +01:00
Dirk Brenken
7eedce0a58 adblock: release 2.0.0
* 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>
2016-12-20 12:17:08 +01:00
Dirk Brenken
ecbc056a29 adblock: bugfix 1.5.4
* CC/uclient-fetch compatibility fix

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-11-27 18:47:41 +01:00
Dirk Brenken
8a4917a0a1 adblock: update 1.5.3
* make wget check more flexible,
  fix for broken wget package installations

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-10-28 19:36:04 +02:00
Dirk Brenken
65bcae0986 adblock: update 1.5.2
* turris omnia compatibility fix

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-10-13 22:02:24 +02:00
Dirk Brenken
aa5cf5d4a2 adblock: bugfix 1.5.1
* fix uhttpd detection in tcp 4+6 configurations

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-10-11 17:09:05 +02:00
Dirk Brenken
dcfbfd9b1a adblock: update 1.5.0
* 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>
2016-10-07 19:19:03 +02:00
Dirk Brenken
23b14e7b4c adblock: update 1.4.10
- 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>
2016-09-29 18:07:45 +02:00
Dirk Brenken
564dc2294a adblock: update 1.4.9
* refine query function (see online doc)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-09-11 18:52:34 +02:00
Dirk Brenken
ba1c55f0af adblock: update 1.4.8
* 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>
2016-08-28 21:46:13 +02:00
Dirk Brenken
b31f99823c adblock: update 1.4.7
* 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>
2016-08-26 13:07:53 +02:00
Dirk Brenken
a029b3f9f4 adblock: update 1.4.6
* added a 'window.close()' to adblock landing page to automatically
close any pop-ups that might get loaded with a blocked ad
* simplified dnsmasq check in ap mode

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-08-21 20:56:47 +02:00
Dirk Brenken
4e873aad3c adblock: update 1.4.5
* change the default hphosts list source to ad and tracking servers
only, the overall list includes to many false positives
* new optional config parm 'adb_hotplugif' to restrict hotplug support
to a certain wan interface or to disable it at all
* documentation update
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-08-16 08:59:34 +02:00
Dirk Brenken
fcc93d75d0 adblock: update 1.4.4
* filter non-printable characters/binary data in input stream
* fix IPv4 adblock statistics in CC

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-08-14 17:34:34 +02:00
Dirk Brenken
58883787bf adblock: update 1.4.3
* fix race condition in restricted mode
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-07-31 18:16:31 +02:00
Dirk Brenken
880adb9d1a adblock: update 1.4.2
* ad broad blocklist source 'hphosts' https://hosts-file.net

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-07-28 22:29:46 +02:00
Dirk Brenken
6883d35f5e adblock: update 1.4.1
* fix two possible overflows in adblock statistics

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-07-20 22:10:35 +02:00
Dirk Brenken
c493f6af44 adblock: release 1.4.0
* rework/speed up overall sort
* simplified dns error handling

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-07-14 09:35:33 +02:00
Dirk Brenken
7ebd92f997 adblock: update 1.3.3
* enable automatic restore on empty source downloads

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-07-07 12:42:37 +02:00
Dirk Brenken
4bb8a34bbf adblock: update 1.3.2
* only a few more fixes

Signed-off-by: Dirk Brenken <dev@brenken.org>

Euro 16: germany vs. italy 6:5 (after 18 penalties) :-)
2016-07-03 07:42:19 +02:00
Dirk Brenken
7cfd8bc44e adblock: update 1.3.1
* fix uclient-fetch detection
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-29 23:39:12 +02:00
Dirk Brenken
f96f354ad1 adblock: release 1.3.0
* revised hotplug script
* remove wget package dependency
* support uclient-fetch or wget with ssl support
* documentation update

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-28 21:22:44 +02:00
Dirk Brenken
fbd4a7c746 adblock: update 1.2.8
* fw rule changes:
	force_dns now supports multiple lan devices
	disable needless force_dns- & forward/output-rules in 'ap mode'
	check return codes during adblock chain creation
* simplified the test for a running firewall
* documentation update

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-26 08:40:53 +02:00
Dirk Brenken
ba13e81d21 adblock: update 1.2.7
* provide adblock statistics as a separate function
  (/etc/init.d/adblock stats)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-22 20:16:19 +02:00
Dirk Brenken
001646e3fe adbock: update 1.2.6
* small addition in case of a failed list download

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-21 05:10:47 +02:00
Dirk Brenken
dc37ea1ba7 adblock: update 1.2.5
* restructured sources
* fix logical glitches in config handling
* many corner case fixes & cosmetics
* show runtime errors in LuCI (in lastrun section)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-18 15:12:19 +02:00
Dirk Brenken
672dd10b10 adblock: update 1.2.1
* small optimizations & cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-14 22:25:02 +02:00
Dirk Brenken
8ab3d8bdc2 adblock: release 1.2.0
* rework download/backup/restore handling
* rework firewall handling
* refine whitelist parsing
* changed default null-ip to 198.18.0.1 to prevent conflicts with bcp38
* spread traffic from ad servers (port 80/443) on two uhttpd instances,
this fixes timeouts on sites with many ssl ad server connections, i.e.
youtube.com
* provide statistics & last runtime for LuCI interface
* documentation update

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-12 18:53:51 +02:00
Dirk Brenken
d0eceb6b25 adblock: update 1.1.17
* change winspy url again
* various cosmetics left out in former release

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-04 08:36:47 +02:00
Dirk Brenken
26fa1c5df0 adblock: update 1.1.16, release 2
* workaround for LuCI search path issue

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-03 19:40:37 +02:00
Dirk Brenken
41b05a5532 adblock: update 1.1.16
* new config option 'adb_restricted' to disable updates of the adblock
config during runtime (no flash writes, disabled by default)
* new update function, to apply latest configuration changes if needed
(/etc/init.d/adblock cfgup)
* fix dns redirect rule
* various optimizations

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-06-03 15:21:55 +02:00
Dirk Brenken
4f3f239ff2 adblock: update 1.1.15
* toggle to quickly switch adblocking 'on' or 'off' (/etc/init.d/adblock
toggle)
* new config option 'fetchttl' to set download timeouts (default: 5
seconds)
* better config check, distinct between major/minor changes
* documentation update

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-05-26 17:43:34 +02:00
Dirk Brenken
bad84563dc adblock: update 1.1.12
* change wget binary naming
* change winspy source url
* documentation update

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-05-24 01:50:48 +02:00
Dirk Brenken
54b0115d25 adblock: update 1.1.11
* fix changed winspy source url in default config
* fix adblock counters in config
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-05-16 22:51:07 +02:00
Dirk Brenken
57853a6c14 adblock: update 1.1.10
* automatic AP mode detection (change nullip address accordingly)
* (de-)compress backups on the fly
* remove hardcoded path for logger
* documentation update
* change maintainer email address
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
2016-05-13 11:07:52 +02:00
Dirk Brenken
7b4ad33255 adblock: update 1.1.2
* remove hardcoded paths for system tools like iptables, uci & fetch
(wget)
* support openwrt & lede spin-off
* cosmetics & cleanups

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-05-08 18:57:54 +02:00
Dirk Brenken
262f4551e2 adblock: update to 1.1.1
* discard uncommitted uci changes in case of processing errors
* init script (stop action) now removes all 'adb_src_count' &
'adb_src_timestamp' entries in config
* updated documentation

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-05-02 20:32:00 +02:00
Dirk Brenken
b9aeb82c95 adblock: release 1.1.0
* support more router modes, as long as the firewall and the DNS server
are enabled
* new source sites can be added & changed via awk ruleset in uci config
* source domain count, last update time & overall count will be stored
in uci config
* added 3 new source sites:
   ransomware tracker
   rolist/easylist
   winspy
* switch to minimal inline base64 encoded 1×1 GIF for pixel server
(separate png image no longer needed)
* simplified uci parser
* source download & domain sort optimization
* add whitelist parser with wildcard support
* reduced code size & various cleanups
* updated documentation

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-04-30 22:34:09 +02:00
Dirk Brenken
40a9c0a92d adblock: update 1.0.3
* remove syntax glitch & cosmetics
* probably the last 1.0.x release

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-04-07 15:38:30 +02:00
Dirk Brenken
e32bbffc7b adblock: update 1.0.2
* fix corner case during shallalist backup/restore

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-03-26 12:24:38 +01:00
Dirk Brenken
a066df55a5 adblock: update 1.0.1
* optimize list sort
* simplified block list removal

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-03-23 21:02:45 +01:00
Dirk Brenken
9f719e4c2c adblock: release 1.0.0
* add sysctl.org as new adblock source
* add main debug switch (by default all stderr outputs are going to
/dev/null)
* small cleanups
* first 'stable' release! ;-)

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-03-08 22:52:07 +01:00
Dirk Brenken
8a0e3c0940 adblock: 0.91.0
* fix blocklist footer/counter
* optimize/rework blocklist rulesets
* change source url for spam404 and yoyo
* code cosmetics & cleanups

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-03-04 15:23:01 +01:00
Dirk Brenken
a869954089 adblock: 0.90.0
* all relevant adblock events will be properly written to syslog/stdout
* removed needless 'debug log' option
* add optional parm 'adb_forcedns' to redirect all queries to local
resolver (default: '1', enabled)
* revised space check
* various code cosmetics & cleanups

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-02-28 21:26:41 +01:00
Dirk Brenken
babad56cc6 adblock: 0.80.1
* fix ip6tables reject types
* simplified firewall ruleset for IPv4/IPv6
* fix memory detection (swap was always 0)
* fix dnsmasq restart after partial restore
* ad hotplug support, adblock will be started when wan interface comes
up
* change adblock init script accordingly, do nothing on 'boot'
* optimize wget parameters for faster download results (in case of an
error)
* added CC installation notes to readme
* removed needless external online check
* removed needless optional parms 'adb_maxtime', 'adb_maxloop',
'adb_probeipv4' and 'adb_probeipv6'

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-02-22 21:19:22 +01:00
Dirk Brenken
43fb20ccc3 adblock: 0.80.0
* removed no longer needed ntp sync
* simplified wan uplink check
* simplified adblock config parser (removed needless callbacks during
parsing)
* partly rearrange config options
* ruadlist/easylist are no longer marked as experimental
* updated documentation (esp. regarding new LuCI frontend)

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-02-21 16:19:14 +01:00
Dirk Brenken
c353ed253c adblock: 0.70.2
* fix wan update detection failure

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-02-19 14:04:32 +01:00
Dirk Brenken
d27b8c82a9 adblock: 0.70.1
* fix root cause for https timeout issues
* fix startup issues via luci
* detach init start process to fix luci timeout issues
* fix html header in adblock pages
* fix adblock.conf options to single quotes

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-02-16 19:50:38 +01:00
Dirk Brenken
7609da872d adblock: update to 0.70.0
* openwrt init system support, see /etc/init.d/adblock
* support for two new adblock sources: openphish and ruadlist/easylist
* partial block list restore, i.e. if a single list download failed
* fix performance regression on sites with links to https ad servers
* removed no longer used samples dir
* updated documentation

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-02-15 12:25:21 +01:00
Dirk Brenken
1b8358b1ab adblock: 0.60.1
- fix possible race condition during startup
- fix duplicate logging during startup
- fix wget parms to prevent partitial downloads
- fix iptables rules to meet openwrt user chains
- added a rule in output chain to reject local ad related requests as
well
- changed default IPv4/IPv6 blackhole ip address to fix routing issues
with windows clients

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
2016-02-03 19:19:29 +01:00
Dirk Brenken
75b0ded581 adblock: update to 0.60.0
* "zero-conf" installation & setup, usually no manual config changes
required (i.e. ip address, network devices etc.)
* full IPv4 and IPv6 support
* new adblock list source (malwaredomainlist.com)
* adblock related statistics will be done by iptables
* removed curl dependency
* for IPv6 support you need 'kmod-ipt-nat6'
* fix Chaos Calmer compability 
* various small changes & fixes
* updated documentation
* updated maintainer email address

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2016-01-25 18:13:19 +01:00
Dirk Brenken
bdb599ff28 adblock: bugfix
* fix cornercase during domain query removal

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-12-21 14:35:03 +01:00
Dirk Brenken
8e041736fc adblock: small changes
* add whocares.org as additional source
* add adblock statistics (requires query log)
* cosmetics

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-12-20 22:40:54 +01:00
Dirk Brenken
1f5d9e641c adblock: feature update
* add two new blocklist sources: adaway.org and disconnect.me
* each blocklist source will be processed separately (no longer use one
big monolithic adblocklist), duplicates makes no harm to dnsmasq 
* url timestamp check to download and process only updated blocklists
* overall duplicate removal in separate blocklists (will be
automatically disabled on low memory systems) 
* additional checks & various small changes

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-12-17 11:49:31 +01:00
Dirk Brenken
45f005d856 adblock: maintenance update
* remove "downloads" category from shallalist default configuration, due
to false positives (i.e. debian & microsoft update sites)
* remove example white- & blacklist entries
* further optimize shallalist handling
* fix domain merging with empty whitelist
* various minor fixes & enhancements
* documentation update


Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-11-29 16:44:24 +01:00
Dirk Brenken
2d40930fa0 adblock: bugfix release
* fix download parms
* fix tmp vars
* other small fixes

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-11-26 21:48:05 +01:00
Dirk Brenken
6d75710491 adblock: reduce memory consumption
* rework shallalist processing: significantly reduce memory consumption
during archive extraction and merging.
* considerable reduce memory consumption during adblock source
processing.
* considerable reduce memory consumption of sort (sorts only the domain
list and not the bigger dnsmasq file)

other changes:
* auto detection/defaults for adb_if, adb_dev, adb_ntpsrv, adb_maxloop,
adb_maxtime and adb_minspace - these options can be safely removed from
previous adblock configuration file
* check total memory and main uhttpd configuration on startup
* documentation update

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-11-24 22:29:05 +01:00
Dirk Brenken
1c4a92c9f6 adblock: logging & documentation update
- centralized logging via separate function to stdout, syslog and file
- remove dependencies between helper functions
- add two new options "adb_maxtime" and "adb_maxloop"
- add description to every adblock config option (see
adblock.conf.sample)
- update README.md

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-11-21 08:04:34 +01:00
Dirk Brenken
3dc3e1d214 adblock: fix redirection issues
fix more corner cases because of mksh to ash migration
fix logical glitch during startup

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-11-16 10:10:24 +01:00
Dirk Brenken
c7edde075c adblock: additional check for running dns query background task
fix for possible query log config change (enabled => disabled)

Please apply to upstream - thank you!

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-11-12 14:56:04 +01:00
Dirk Brenken
aa2649e8c3 adblock: busybox "tr" does not support character classes by default
bugfix: busybox "tr" does not support character classes by default and
generates (partly) odd domain names. 

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-11-12 04:59:48 +01:00
Dirk Brenken
1f5ed5d040 adblock: uci support, dynamic uhttpd instance support plus various fixes
* add uci support
* add dynamic uhttpd instance support
  (no longer rely on uhttpd config changes)
* package reordering
* plus various fixes

Signed-off-by: Dirk Brenken <dirk@brenken.org>
2015-11-11 19:39:51 +01:00
dirk
10bd039c37 powerful adblock script to block ad/abuse domains
Signed-off-by: dirk <dirk@brenken.org>
2015-10-28 00:02:23 +01:00