homelab
← The journey

05 · October 2026

Pangolin Traffic Viewer

Who is knocking, and from where.

Problem

Once services were public through Pangolin, I wanted an easy way to see who was reaching them, check each site was properly locked down, and know where a geo-location restriction was worth adding.

Fix

It pulls Pangolin's traffic logs, geolocates them and draws them as arcs on a 3D globe. Alert rules fire on location, time, address and volume.

What it is

Who is knocking, and from where

Pangolin Traffic Viewer reads the request, access and connection logs from Pangolin Cloud or a self-hosted Integration API and keeps them in a local SQLite database. The globe shows arcs from each origin to the site it reached, countries shaded by traffic and a live timeline. You can search, filter and group the traffic, and rules tell you when something unusual reaches the lab. It's for anyone who publishes services through Pangolin and wants to see what that exposure looks like.

A live globe

Arcs from origin to site, countries shaded by traffic, origin dots, an optional density heatmap and live pulses, in light and dark themes.

Search, filter and group

Narrow by time range, verdict, log type, site, resource or origin, or search by host, path, user or agent. The globe, timeline and table all follow, and a side table groups by country or other fields.

Everything Pangolin logs

Request logs with allow or deny and the reason, plus access logs (sign-in attempts) and private-resource connection logs where the Pangolin plan provides them.

Alert rules

Combine location (only from, never from, or the first visit from a new country), a weekly time window in any time zone, verdict, resources, sites, address ranges and text matches, with a count over N minutes.

Rule preview

The rule editor shows how many events from the last 24 hours each rule would have matched before you save it.

Where alerts go

Alerts always show in the app, and webhooks can post them as JSON, Slack or Discord messages.

City-level origins

Pangolin gives a country per request. Add the DB-IP City Lite or GeoLite2 database and origins are placed by city, with lookups done locally.

Resilient polling

Each connection polls every 60 seconds by default, re-reads a two-minute overlap and removes duplicates, so short outages don't lose events. Endpoints a plan doesn't offer are switched off for that connection.

Screens

A closer look

Demo data throughout. Click any screen to see it full size.

The globe filtered to traffic from one country
Alert rules for watched countries, repeated denials and after-hours access, with the alerts they fired
The traffic globe in the light theme
The traffic globe on a phone

How it fits

What it talks to

  • Pangolin Integration APIrequest, access and connection logs, plus the sites and resources they map to
  • DB-IP or MaxMind city databaseoptional, downloaded once and queried locally to place origins by city
  • Webhooks, Slack, Discordoptional delivery for fired alerts

See it on the network diagram →

Security

How it keeps things safe

  • The Pangolin API key is stored encrypted with AES-256-GCM, using a key derived from APP_SECRET.
  • Read-only access is enough: the API key needs read access to logs, sites and resources, nothing more.
  • Geolocation runs against a local database, so visitor addresses are never sent to a lookup service.
  • Events stay in a local SQLite file for a set number of days (30 by default) and are then deleted.
  • The container runs as a non-root user and has a health check.

Run it

One container

Port
8787
Image
ghcr.io/vitafortis/pangolin-traffic-viewer

One container and one /data volume. APP_SECRET is required. Set APP_PASSWORD whenever anyone else can reach the port.

Gaps

What it doesn't do yet

  • Sign-in is one shared password, so it should sit behind Pangolin's SSO.
  • Access and connection logs need Pangolin Cloud or Enterprise; other plans give request logs only.
  • Sites have no location in Pangolin, so each one is placed on the globe by hand.
  • It's built with npm and React rather than the suite's SvelteKit stack.
  • Email and PagerDuty alerts, and streaming to a SIEM, are on the roadmap but not built yet.