Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m0zgen/blocky-installer

🧩 Install Blocky on to CentOS, Fedora, Debian, Ubuntu Linux
https://github.com/m0zgen/blocky-installer

Last synced: 1 day ago
JSON representation

🧩 Install Blocky on to CentOS, Fedora, Debian, Ubuntu Linux

Awesome Lists containing this project

README

        

# Blocky installer

Supported and tested on distros:
* CentOS 7/8, Fedora 35
* Debian 11, Ubuntu 20

## What is Blocky

Blocky is a DNS proxy and ad-blocker for the local network written in Go.

Official repository:
* https://github.com/0xERR0R/blocky.git
* Official [installation](https://0xerr0r.github.io/blocky/installation/) manual

## Installer features

`installer.sh` it is a bash script for install [Blocky](https://github.com/0xERR0R/blocky.git) to:

* Blocky will installs as systemctl unit service to `/opt/blocky` catalog as default.
* After install Blocky works under regular `blockyuser` user.

_Note: All features tested. deployed and using on CentOS 7/8, Fedora 35, Debian 11, Ubuntu 20_

## Features

* Install from scratch to rpm based distros
* Steb-by-step installer
* Automate installer (CentOS/Fedora)
* Detect and download latest `blocky` release from official repo
* Install under simple user
* New user creation
* Allow to user using privileged ports (aka 53) without sudo
* Allow to user start, stop, enable, disable `blocky` service
* Create `systemctl` unit service
* Generate simple `config.yml`
* Reinstall `blocky`
* Uninstall `blocky`
* Backup `blocky`
* Install additional software (optionally for CentOS/Fedora):
* Cloudflared
* Cerbot
* Nginx
* Add restarter script

## Sync configs (testing)

After install Blocky you can use sync feature to download or upload config to remote server over ssh connection with `sync.sh`.

In first run `sync.sh` will ask:
* Remote server IP
* Remote server port
* Remote server ssh user name

Then will try copy ssh key to remote server with `ssh-copy-id`, after that you can run script again and `sync.sh` will copy `cinfig.yml` from remote server to local `/opt/blocky` folder.

You can also configure the scheduler with crontab (as example):
```bash
*/30 * * * * /bin/bash /home/blockyusr/sync.sh
```

## Install Prometheus Stack

Additionally you can install Prometheus stack to you own CentOS 8 server:

* Prometheus
* Node Exporter
* Grafana

See more info on this repository:
* https://github.com/m0zgen/install-prometheus-stack

## DNS Testing

You can define DNS servers list and will test response speed with statistics - average, min, max response time:
* https://github.com/m0zgen/dns-tester

### TODO's
TODO add diff compare procedure fro syncing