master #1

Merged
loweel merged 16 commits from bloved/zabov:master into master 2021-01-22 11:07:15 -05:00
Contributor

Major changes:

  • added multiple configuraitons
  • each configuration has his own BL sources and KillDB
  • configuration selection based on client ip (ip groups) or time rules (timetables)
  • local responder for local domains
  • domain aliases: /etc/hosts file replacement (can be used in ip groups too)
  • kill domain stats: domains are counted only once
  • Dockerfile: updated golang to 1.15.6
  • debug logs/query logger
Major changes: * added multiple configuraitons * each configuration has his own BL sources and KillDB * configuration selection based on client ip (ip groups) or time rules (timetables) * local responder for local domains * domain aliases: /etc/hosts file replacement (can be used in ip groups too) * kill domain stats: domains are counted only once * Dockerfile: updated golang to 1.15.6 * debug logs/query logger
- new json configuration: added multiple configs, ip groups/ip aliases and timetables
  - added multiple configurations:
    - each configuration has his own upstream, singlefilters, doublefilters, blackholeip hostsfile
    - cache DB is global to all configs
    - BL downloader and parser is optimized: each BL source is downloaded/parsed only once
- TODO:
  - implement configuration selection based on source IPs and timetables
  - unused code cleanup
- Malformed lines stats: stats are reset at refresh; ignoring blank/comment lines
- sanity checks
  - parsing of timetables
- removed unused global variables (moved at config level)
- added new stat: DNS request for each "CONFIG"
- implemented configuration from ip groups / timetables
- more sanity checks
  - added localresponder: if set use specified DNS server for local domains
  - ipaliases is now used in DNS responses (works same as /etc/hosts file)
- ForwardQuery(): accept param to avoid cache
- unused configurations are disabled to avoid wasting resources
- updated documentation in README.md
- added "debug" mode
- updated documentation in README.md
- BL downloader threads: added 2 seconds delay to allow local DNS service go up & running
- added new global setting "debugdbpath": if set to a directory name enables DNS queries logging in CLIENTIP-DATE.log file format
- FIX: Dockerfile: added timezone configuration (defaults to CET), use TZ env var to change it
This table will be used for any client that is not already included in an IP group
- ZabovCreateKDB is called only on active configurations
- Dockerfile: updated golang image to 1.15.6
- config.json: restored minimal settings
- added config.sample.json with all advanced settings
- urls-domains-updated.txt: removed/updated obsolete urls (CHEF-KOCH, malwaredomains.com)
loweel merged commit 13dd24b7b5 into master 2021-01-22 11:07:15 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
loweel/zabov!1
No description provided.