Skip to content

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

Notifications You must be signed in to change notification settings

m0zgen/blocky-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

Installer features

installer.sh it is a bash script for install Blocky 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):

*/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:

DNS Testing

You can define DNS servers list and will test response speed with statistics - average, min, max response time:

TODO's

TODO add diff compare procedure fro syncing

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages