r/PFSENSE • u/Economy-Deer-2965 • 3h ago
I built a self-hosted 3D map of my network from ntopng and pfSense's firewall log, with the firewall and DNS blocking drawn on it (open source)
galleryI wanted one screen that shows what every device on my network is talking to, what is being stopped and by what, in plain words, without sending anything to a cloud service. So I built one. It's free and open source (AGPL-3.0).
**What it shows**
- Every device as a star, every internet service it uses as a point beyond the gateway, and traffic as lines between them.
- Your defences as a layer of their own between the internet and your devices: DNS blocking (pfBlockerNG's DNSBL), the firewall, and your own block list. Whatever one of them stopped is a dashed line to it, so you can see which device keeps hitting the block page and what the firewall turned away.
- A Triage page with findings in plain words: a device talking to a known-bad address, unusual upload volume, port forwards open to everyone, port scans, newly joined devices.
- A world map of where blocked and allowed traffic comes from and goes to. Lookups use a local database; no address is sent anywhere.
- Optional tabs for OpenVPN sessions and, with a UniFi controller, where a Wi-Fi connection breaks hop by hop.
**Blocking, if you want it**
- From a finding or from the world map you can block a single address or a whole country. Every block is yours to approve, behind a separate password.
- The app never pushes anything to the router. A small script on the router pulls the list each minute, checks every entry again itself, and loads it into a pfBlockerNG table. It refuses addresses you mark as protected (your gateway, your DNS servers).
- There is a switch at the top of the script to refuse country-sized lists altogether.
- Leave the script out and the whole thing is watch-only.
**What it touches on your router**
- It reads ntopng with a non-privileged login and receives remote syslog (firewall, DHCP and VPN events). Watching needs nothing else.
- It never connects to the router to change anything.
**Honest limits**
- Tested on exactly one router: a Netgate 3100 on pfSense Plus 23.09.1. Treat the router script as install-at-your-own-risk until others have tried it.
- A new block stops new connections; it does not yet cut ones that are already open.
- The page has no sign-in for viewing, so keep it on your LAN.
**Try it without touching your router**
There's a built-in sample network, and the README has a Docker command that runs it. Every screenshot here is that sample data.
https://github.com/tmscaf/workload_galaxy/tree/main/modules/network


