Crates.io | adguardian |
lib.rs | adguardian |
version | 1.6.0 |
source | src |
created_at | 2023-05-28 14:33:11.159309 |
updated_at | 2023-06-10 10:07:41.447877 |
description | Terminal-based, real-time traffic monitoring and statistics for your AdGuard Home instance |
homepage | |
repository | https://github.com/Lissy93/AdGuardian-Term |
max_upload_size | |
id | 876529 |
size | 124,935 |
Terminal-based, real-time traffic monitoring and statistics for your AdGuard Home instance
AdGuardian Terminal Eddition - Keep an eye on your traffic, with this (unofficial) buddy for your AdGuard Home instance
Features:
About AdGuard:
AdGuard Home is a free and open source self-hosted (or managed) network-wide ad + tracker blocker. It operates as a DNS server that re-routes tracking domains to a "black hole", thus preventing your devices from connecting to those servers. It makes your internet, faster, safer and gives you a bunch of useful features, like encrypted DNS (DoH, DoT, DNSCrypt), parental controls, blocking of malware / phishing, per-device configs, custom DNS rules, etc.
There are several options for running...
docker run -it lissy93/adguardian
You may also pass in your AdGuard info with env vars (using
-e
), see the Configuring section for an example, and list of availible config params.
If you experience issues with DockerHub, or would rather use a different registry, the image is also available via GHCR - just replace the image name with:ghcr.io/lissy93/adguardian
. Alternatively, if you'd like to build it yourself from source, you can do so withdocker buildx build -t adguardian .
then run it withdocker run -it adguardian
.
curl -o adguardian https://github.com/Lissy93/AdGuardian-Term/releases/latest/download/adguardian-linux && \
chmod +x adguardian && \
./adguardian
In the above example, don't forget to update the URL to download the latest stable version for your operating system
You may also just head over the the Releases tab, download the latest executable, and double-click on it to run
cargo install adguardian
adguardian
AdGuardian is published as a crate to crates.io/crates/adguardian. So providing you've got Cargo installed, you can pull the binary directly, and then execute it as above. Again, see the Configuring section below for how to pass in your AdGuard info.
git clone git@github.com:Lissy93/AdGuardian-Term.git && \
cd AdGuardian-Term && \
make
You'll need
git
,cargo
andmake
(see here for installation notes). You can also run the cargo commands defined in the Makefile directly, e.g.cargo run
bash <(curl -sL https://raw.githubusercontent.com/Lissy93/AdGuardian-Term/main/quick-start.sh)
This will run the quick-start.sh Bash script, which downloads and executes the latest binary for your system type. Be sure to read and understand the file first
The app requires the details of an AdGuard instance to connect to. This info can be provided either as environmental variables, or passed in as flag parameters. If any of these fields are missing or incomplete, you'll be prompted to enter a value once the app starts.
The following params are accepted:
ADGUARD_IP
/ --adguard-ip
- The IP address of your local AdGuard Home instanceADGUARD_PORT
/ --adguard-port
- The port that AdGuard is running onADGUARD_USERNAME
/ --adguard-username
- An AdGuard Home usernameADGUARD_PASSWORD
/ --adguard-password
- An AdGuard Home passwordThere's also some additional optional environment variables that you may set:
ADGUARD_PROTOCOL
- The protocol to use when connecting to AdGuard (defaults to http
)ADGUARD_UPDATE_INTERVAL
- The rate at which to refresh the UI in seconds (defaults to 2
)adguardian -- \
--adguard-ip "192.168.180.1" \
--adguard-port "3000" \
--adguard-username "admin" \
--adguard-password "bobs-your-uncle"
ADGUARD_IP="192.168.180.1" ADGUARD_PORT="3000" ADGUARD_USERNAME="admin" ADGUARD_PASSWORD="bobs-your-uncle" adguardian
docker run \
-e "ADGUARD_IP=192.168.180.1" \
-e "ADGUARD_PORT=3000" \
-e "ADGUARD_USERNAME=admin" \
-e "ADGUARD_PASSWORD=bobs-your-uncle" \
-it lissy93/adguardian
The terminal dashboard can also be viewed via a browser, thanks to ttyd.
AdGuardian is fully compatible with ttyd, so once you've installed it, you can just precede your run command with ttyd.
E.g. ttyd docker run -it lissy93/adguardian
or ttyd adguardian
This might be useful for embedding into another app or dashboard (like Dashy ๐ - although Dashy already has an AdGuard widget!)
Another great option is gotty, which works in a similar way. Note that if you want to allow user input, you'll need to pass the -w
option.
You can also combine this with a service like ngrok to forward the port, and access the dashboard from anywhere. But be careful to apply the correct access controls!
You'll need Rust installed. Run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- see the installation docs. You'll also need Git, if you don't already have it.
Then clone the repo, and cd into it, with: git clone git@github.com:Lissy93/AdGuardian-Term.git
&& cd AdGuardian-Term
You can view the full list of availible project commands in the Makefile
To build and run the project for development, run cargo run
The documentation can be viewed at:
cargo test
- Run unit testscargo check
- Ensure app is compilablecargo bench
- Execute benchmarkscargo clippy
- Analyse areas for improvementcargo doc
- Generate the documentationOnce your finished developing, you can build the project for production with: cargo build --release
The binaries for your system will then be available in the ./target/release/
directory of the project.
You can execute this directly, e.g. by running ./target/release/adguardian
(add .exe if on Windows)
The testing, building, and publishing of the app is done with GitHub Actions.
Alicia Sykes |
Null |
Null |
Eddy Lazzarin |
Anand Chowdhary |
David Young |
Carol Ouellet |
Zach Biles |
Ulises Gascรณn |
Brian McGonagill |
Vlad Timofeev |
Jason Ash |
Null |
Brent |
Null |
Null |
This project was made possible by the maintainers of the following dependencies
A mirror of this repository is published at: codeberg.org/alicia/adguardian
Contributions of any kind are very welcome (and would be much appreciated!) For Code of Conduct, see Contributor Convent. For project setup, see the Development section.
To get started, fork the repo, make your changes, add, commit and push the code, then come back here to open a pull request. If you're new to GitHub or open source, this guide or the git docs may help you get started, but feel free to reach out if you need any support.
You can support the project in other ways too, drop us a star, consider sponsoring us on GitHub, share within your network, and report any bugs you come across.
Lissy93/AdGuardian-Term is licensed under MIT ยฉ Alicia Sykes 2023.
For information, see TLDR Legal > MIT
The MIT License (MIT)
Copyright (c) Alicia Sykes <alicia@omg.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sub-license, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included install
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANT ABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ยฉ Alicia Sykes 2023
Licensed under MIT
Thanks for visiting :)