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.0rc3.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.0rc3-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rabdomancia-26.2.0rc3.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for rabdomancia-26.2.0rc3.tar.gz
Algorithm Hash digest
SHA256 95955a8b50c2f32e773f9941c89568f666dfa9b0ff84dfe31bf412b1b6595acd
MD5 bc5a13bba68855137f46adfd4f4c6564
BLAKE2b-256 9601e43eb279754ae21f0d379a4d2ff475e4c8e25af0d4f0db70eb5e5ff8a1a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rabdomancia-26.2.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 4681e2d12baa973b3c039dd33a0e27ba86a44c4eb3bcbe878ce1d5a7d28726e8
MD5 4cb7398d3ccdf389e7fd4f7ab1b97de6
BLAKE2b-256 0060012b0554a9742710339200721afd3984598f06069a3247728d05210f0e5e

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