Discover with your senses what your devices are up to! A pretty and fun way to visualise DNS requests in your network
Project description
Rabdomància
Descobreix amb els sentits el que fan els teus dispositius!
Una manera bonica i divertida de visualitzar peticions DNS a la teva xarxa
Discover with your senses what your devices are up to!
A pretty and fun way to visualise DNS requests in your network
About the sound concept
Bells indicate regular web and string plucks indicate big tech. Pitch changes according to the frequency of the visits; the more frequent visit, the deeper the note.
You may see announcements for new users as they join, punctuated by a string swell.
If this sounds awfully familiar, it is because we use the exact same algorithm and sounds as Hatnote's Listen to Wikipedia.
Setting things up
This documentation can be improved, relies on a lot of invisible knowledge, and can certainly be more friendly to people who are learning networking.
If that is you, and you are willing to help improve the documentation, please reach out, you may learn a lot (you don't have to be alone!), have a blast, and while at it, the next person who tries to use this will have a much easier time.
You'll need a device which has one upstream WAN interface (where the internet will come from), and at least another local interface.
Ideally one of the local interfaces is wireless in nature, or if it is wired, you set up an access point that does not perform DHCP or masquerading.
The device will act as the Access Point, gateway and DNS resolver, and will have a private subnet that is masqueraded to the WAN port.
All of this is done with standard OS tooling (Debian is used as an example), it's not too difficult if you are familiar with the terms and tools, but might be a bit daunting otherwise:
- We may need to
bridge LAN and Wireless interfaces:
- we use interface
br0
- we use interface
- Configure a DHCP server:
- we use the subnet
10.42.42.1/24onbr0
- we use the subnet
- Configure masquerading on WAN port:
- we call the WAN port
eth0
- we call the WAN port
- Configure the DNS resolver:
- we may use unbound
- any dnstap-enabled resolver will do
If your routing device has graphics and sound cards, you can plug in a screen
and speakers, and run rabdomancia on it.
Otherwise, you'll have to run rabdomancia on a different machine which does
support graphics and sound, and transport in real-time the data from the DNS
resolver.
Running rabdomancia
Getting data from the DNS resolver
The easiest way to do this is to use a network socket(!) on unbound this is done with:
server:
interface: lo
interface: br0
interface-action: br0 allow
interface-action: lo allow
dnstap:
dnstap-enable: yes
# Where 10.42.42.2 is your graphics+sound device
# If the machines are the same, use 10.42.42.1
dnstap-ip: 10.42.42.2@5342
dnstap-tls: no
dnstap-sample-rate: 1
dnstap-log-client-query-messages: yes
Start rabdomancia
See rabdomancia --help for all possible inputs.
By default rabdomancia will listen on port 5342 for DNSTAP connections.
Make sure you limit where this connections come from by using your firewall.
Orígen del projecte
Idea original
Sembla que el projecte original era molt més, però a nosaltres només ens interessava la part de la visualització.
La idea de reutilitzar l'arbre de fitxers que necessita gource és super bona, i la hem volgut portar una mica més enllà.
Anàlisi de viabilitat per nosaltres
D'entrada intentem fer servir Dowse, amb els repositoris i codi originals.
Després d'invertir-hi cert temps sense que funcioni, ens posem en contacte amb la comunitat de Dowse.
Finalment abans no ens contestin aconseguim fer anar Dowse i comencem a iterar, trobant-nos-hi limitacions, punts de millora, i afegint-hi les nostres pròpies idees:
- Documentar tot el procés
- Afegir so
- Actualitzar llistes de dominis d'entitats, sense que hagi de ser un esforç específic d'aquest projecte
- Treballar les llistes, de forma que afegim "pseudo" jerarquies (
BigTechiMidTech) - Usar DNSTAP en comptes d'un resolver amb pedaços
Tot plegat ho documentem en un anàlisi/report que enviem a la comunitat per si ho volen reutilitzar; i mencionant que hi podríem contribuir.
Lis desenvolupadiris ens diuen:
rather than fixing the software for all generic cases, the best route is to try the specific installation and hack a bit on it to smooth the edges
embrace the way of the patch
Així que entenem que si volem mantenir els pedaços, ho fem nosaltres mateixis. Cap problema!
En trobar-nos amb algunes limitacions, i havent reimplementat algunes coses, decidim deixar estar totalment el codi original de Dowse.
El nom: rabdomància
La versió curta és que és una manera d'anomenar "dowse" (anglès) en català.
Per què rabdomància?
f. [LC] Radioestèsia 2 .
1 f. [LC] Pretesa sensibilitat de certes persones a les radiacions emeses o absorbides pels cossos que tenen a prop.
2 f. [LC] Pràctica no científica de detecció de corrents d’aigua, de minerals, d’objectes amagats, etc., basada en la radioestèsia.
intransitive verb : to use a divining rod
transitive verb : to find (something, such as water) by dowsing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rabdomancia-26.2.0rc4.tar.gz.
File metadata
- Download URL: rabdomancia-26.2.0rc4.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1c90410fc7181b780b29bd2d97d8fa8ba696975bd390120c7decd8201bb47ab
|
|
| MD5 |
8fdba7f862e21d3bde8564d9ea8e9642
|
|
| BLAKE2b-256 |
3514d62d2ceb7476d542514690ab718ce862bab6dee0893896d59a22325fb643
|
File details
Details for the file rabdomancia-26.2.0rc4-py3-none-any.whl.
File metadata
- Download URL: rabdomancia-26.2.0rc4-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d817887878e91c3c2fc08a95be56169edb11db0acf087c746b638194aec2e41
|
|
| MD5 |
8dc9bd52f13389e7768e4264eb74b6d7
|
|
| BLAKE2b-256 |
5ef828e7a4bb1d4aa8414c3f2b77e8701ccbb94c3a745cf7799620ad9e032811
|