Fast and lightweight DNS proxy as ad-blocker for local network with many features
Go to file
Kwitsch 1d25cca4e5
Goreleaser fix (#1003)
* use zig for goreleaser

* added test workflow

* Revert "added test workflow"

This reverts commit 9c55c5fd9e.

* added goreleaser test

* autorun goreleaser tests

* add pseudo tag for goreleaser

* added test

* added arm test

* arch test

* missing qemu setup?

* test alternate run

* test rework

* path fix?

* 18 won't run

* another test

* permission fix

* amd64 matrix

* added macos

* added windows test

* consolidate unix tests

* fix path

* fix path2

* matrix consolidation

* +x fails on macos

* fix runner

* windows fix

* Update .github/workflows/goreleaser-test.yml

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>

* Update .github/workflows/goreleaser-test.yml

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>

* Update .github/workflows/goreleaser-test.yml

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>

* Update .github/workflows/goreleaser-test.yml

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>

* auto test binaries on release

---------

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
2023-04-26 08:57:22 +02:00
.github Goreleaser fix (#1003) 2023-04-26 08:57:22 +02:00
api chore(build): update golangci-lint (#931) 2023-03-16 07:49:09 +01:00
cache chore(build): Automation workflows (#972) 2023-04-03 16:33:16 +02:00
cmd feat(bootstrap): support multiple upstreams 2023-01-18 18:57:55 +01:00
config Add maxErrorsPerFile blocking configuration (#986) 2023-04-12 20:43:49 +02:00
docs Add homebrew link to the installation docs (#995) 2023-04-15 23:56:29 +02:00
e2e chore(test): add HTTP listener readiness check 2023-04-05 14:55:38 +02:00
evt chore(build): add additional linters (#774) 2022-11-29 21:58:26 +01:00
helpertest Test refactoring (#798) 2022-12-29 14:58:25 +01:00
lists fix: make domain validation in list parser more lenient 2023-04-14 16:20:54 -04:00
log refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
metrics refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
model refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
querylog Added gofumpt (#805) 2022-12-26 22:11:45 +01:00
redis refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
resolver Add maxErrorsPerFile blocking configuration (#986) 2023-04-12 20:43:49 +02:00
server chore(build): update golangci-lint (#931) 2023-03-16 07:49:09 +01:00
util chore(build): Automation workflows (#972) 2023-04-03 16:33:16 +02:00
web chore: update golangci-lint (#631) 2022-08-19 22:04:35 +02:00
.dockerignore build(tests): e2e integration tests with docker and testcontainers (#753) 2022-11-24 21:54:52 +01:00
.gitignore build(tests): e2e integration tests with docker and testcontainers (#753) 2022-11-24 21:54:52 +01:00
.golangci.yml chore: update testcontainers version (#821) 2023-01-05 10:30:53 +01:00
.goreleaser.yml Goreleaser fix (#1003) 2023-04-26 08:57:22 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2021-03-05 10:58:39 +01:00
Dockerfile build(tests): e2e integration tests with docker and testcontainers (#753) 2022-11-24 21:54:52 +01:00
LICENSE added license text 2020-01-13 21:57:57 +01:00
Makefile chore(build): add format with gofumpt to build (#974) 2023-04-04 09:25:45 +02:00
README.md chore: change branch name to "main" (#744) 2023-03-07 17:25:04 +01:00
codecov.yml chore(test): exclude mocks from code coverage report 2023-03-15 16:46:51 +01:00
go.mod build(deps): bump github.com/alicebob/miniredis/v2 from 2.30.1 to 2.30.2 2023-04-19 16:21:34 +02:00
go.sum build(deps): bump github.com/alicebob/miniredis/v2 from 2.30.1 to 2.30.2 2023-04-19 16:21:34 +02:00
main.go use full-qualified name as module 2021-08-27 13:41:36 +02:00
main_static.go added setLocaltime 2022-11-12 21:37:01 +01:00
mkdocs.yml chore: mirror git repo to codeberg 2023-03-13 14:04:18 +01:00
tools.go chore(build): add format with gofumpt to build (#974) 2023-04-04 09:25:45 +02:00

README.md

GitHub Workflow Status GitHub Workflow Status GitHub latest version GitHub Release Date GitHub go.mod Go version Docker pulls Docker Image Size (latest) Codecov Codacy grade Go Report Card Donation

Blocky

Blocky is a DNS proxy and ad-blocker for the local network written in Go with following features:

Features

  • Blocking - Blocking of DNS queries with external lists (Ad-block, malware) and whitelisting

    • Definition of black and white lists per client group (Kids, Smart home devices, etc.)
    • Periodical reload of external black and white lists
    • Regex support
    • Blocking of request domain, response CNAME (deep CNAME inspection) and response IP addresses (against IP lists)
  • Advanced DNS configuration - not just an ad-blocker

    • Custom DNS resolution for certain domain names
    • Conditional forwarding to external DNS server
    • Upstream resolvers can be defined per client group
  • Performance - Improves speed and performance in your network

    • Customizable caching of DNS answers for queries -> improves DNS resolution speed and reduces amount of external DNS queries
    • Prefetching and caching of often used queries
    • Using multiple external resolver simultaneously
    • Low memory footprint
  • Various Protocols - Supports modern DNS protocols

    • DNS over UDP and TCP
    • DNS over HTTPS (aka DoH)
    • DNS over TLS (aka DoT)
  • Security and Privacy - Secure communication

    • Supports modern DNS extensions: DNSSEC, eDNS, ...
    • Free configurable blocking lists - no hidden filtering etc.
    • Provides DoH Endpoint
    • Uses random upstream resolvers from the configuration - increases your privacy through the distribution of your DNS traffic over multiple provider
    • Blocky does NOT collect any user data, telemetry, statistics etc.
  • Integration - various integration

    • Prometheus metrics
    • Prepared Grafana dashboards (Prometheus and database)
    • Logging of DNS queries per day / per client in CSV format or MySQL/MariaDB/PostgreSQL database - easy to analyze
    • Various REST API endpoints
    • CLI tool
  • Simple configuration - single or multiple configuration files in YAML format

    • Simple to maintain
    • Simple to backup
  • Simple installation/configuration - blocky was designed for simple installation

    • Stateless (no database, no temporary files)
    • Docker image with Multi-arch support
    • Single binary
    • Supports x86-64 and ARM architectures -> runs fine on Raspberry PI
    • Community supported Helm chart for k8s deployment

Quick start

You can jump to Installation chapter in the documentation.

Full documentation

You can find full documentation and configuration examples at: https://0xERR0R.github.io/blocky/

Contribution

Issues, feature suggestions and pull requests are welcome!

ko-fi