Skip to main content

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
  • Configure a DHCP server:
    • we use the subnet 10.42.42.1/24 on br0
  • Configure masquerading on WAN port:
    • we call the WAN port eth0
  • 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

Dowse de Dyne.org

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 (BigTech i MidTech)
  • 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?

rabdomància

f. [LC] Radioestèsia 2 .

radioestèsia

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.

dowsed; dowsing

intransitive verb : to use a divining rod

transitive verb : to find (something, such as water) by dowsing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rabdomancia-26.2.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rabdomancia-26.2.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file rabdomancia-26.2.0.tar.gz.

File metadata

  • Download URL: rabdomancia-26.2.0.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

Hashes for rabdomancia-26.2.0.tar.gz
Algorithm Hash digest
SHA256 a501daa5e44b91703c01ed1ff2de0eee83458bf8510bca2d22594eaa8435a849
MD5 fe653557519d3d868e1c30b5eb9475d4
BLAKE2b-256 6d1ea711a24fe0a5c46711117b5555b7040967b9d3bd0c1afc9fc031f77cbec0

See more details on using hashes here.

File details

Details for the file rabdomancia-26.2.0-py3-none-any.whl.

File metadata

  • Download URL: rabdomancia-26.2.0-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

Hashes for rabdomancia-26.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b30986d7aaba25bd3353d971e137924c66939cff03d0817ca323c4089d65046a
MD5 9b92b7dda0ce99ae1851ea2ddd065910
BLAKE2b-256 1c44f1048ec9ebf514d4fc690edafe7bb5f3c3db52010aa6cf37607c52ee3733

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page