Crates.io | tenshi |
lib.rs | tenshi |
version | 0.2.2 |
source | src |
created_at | 2019-05-20 00:03:32.973586 |
updated_at | 2019-06-11 04:18:19.145671 |
description | Unbound local-zone generator for curated hosts files |
homepage | |
repository | https://github.com/flacks/tenshi |
max_upload_size | |
id | 135503 |
size | 41,346 |
Tenshi is a fast CLI utility that fetches a curated hosts file, generates Unbound local-zone entries from it, and saves them to /etc/unbound/local-blocking-data.conf
.
At the moment, only Steven Black's hosts file is used.
Tenshi is primarily written to work on Linux, but it will likely work on the BSDs. It is untested on Macintosh, and will probably not work on Windows.
You will want to add include: "local-blocking-data.conf"
to your Unbound config to use the result.
Install either rustup or rust
using your favorite package manager. Tenshi is known to build against Rust 1.35.
Tenshi must be run as a user that has write access to /etc/unbound/local-blocking-data.conf
.
cargo install tenshi
git clone https://github.com/flacks/tenshi.git
cd tenshi
git checkout $(git tag | tail -n 1)
cargo build --release
cargo install --path .
git clone https://aur.archlinux.org/tenshi-rs.git
cd tenshi-rs
makepkg -i
If installed with Cargo or built from source, ensure Cargo's bin directory is in your PATH.
Run tenshi
and follow prompt. For promptless execution, prepend true |
to command.
Inspired by https://github.com/gbxyz/unbound-block-hosts
A kind Rust Discord server user in #beginners