Skip to content

feat(monitoring): add live trace page - #854

Draft
gsanchietti wants to merge 16 commits into
release-8.9.0from
firewall_debug
Draft

gsanchietti wants to merge 16 commits into
release-8.9.0from
firewall_debug

Conversation

@gsanchietti

@gsanchietti gsanchietti commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

When a client cannot reach something, administrators have to guess which part of the firewall is blocking it. The new Monitoring > Live trace page traces one client IP address for a limited time and shows which layer blocked each new connection: a firewall rule or zone policy, Threat Shield IP block lists, DPI (deep packet inspection) rules, the DNS filter or MAC binding.

The page starts a session with an IP address, a duration and an optional port and protocol filter, then refreshes every 2 seconds. The form stays visible during the session, with a spinner and the time remaining, and the results are shown in a separate card. While the session runs it lists the blocked connections, the routing warnings, the DNS queries and the live connections. After the session ends the results stay visible, together with the allowed connections of the session.

  • Blocked connections show the layer, the rule and the interfaces. A firewall rule name opens a side panel with the rule details
  • Connections can be filtered by text, application, protocol, source, destination and status
  • The page warns when some traffic was not traced and tells why a session ended
  • Texts, colors and components follow the Nebula Design System. The page is translated in English and Italian

Screenshots

A session for a client in a zone that drops traffic to the firewall: the banner, the blocked connections with their layer and rule, and a private address sent to the WAN.

Live trace session with blocked connections

DNS queries with their result, and the live connections with application, interfaces and accepting rule.

Live trace DNS queries and connections

After the session ends: the results stay visible, with the allowed connections of the session.

Live trace results after the session ends

How to test

  • Install an image built from feat(ns-api): add live trace troubleshooting API nethsecurity#2007, which provides the ns.livetrace API and builds this branch
  • Open Monitoring > Live trace, enter the IP address of a client and start a session
  • From the client, open a connection blocked by a firewall rule and query a domain blocked by the DNS filter: the page lists the block with its layer and rule name, and the DNS query as blocked
  • Click the name of a firewall rule, or press Enter on it: a side panel shows the rule details
  • Type a text that matches no connection in the filter: the page shows "No connections found" and a "Reset filters" button that brings the connections back
  • Enter port 0 or 70000: the page shows "Enter a valid port" and does not start a session
  • Stop the session: the results stay visible and the allowed connections are listed with the rule that accepted them
  • Start a session and run nft delete table inet ns_livetrace on the firewall: the page shows "Live trace session stopped unexpectedly", with the reason under "Show details"

See also


Generated by Claude Code:claude-haiku-5-5 with nethserver-pr

The outbound direction of blocklists, shown in the Direction column
and in the custom blocklist drawer, read "Outcoming", which is not
an English word.

Assisted-by: Claude Code:Opus 5.5
Add custom blocklists and allowlists (custom feeds) downloaded from
URLs. Blocklist feeds list custom lists first with a star icon, and a
new Allowlist feeds tab shows the Nethesis global allowlist, enabled
with a subscription and not editable. The status badge moves to the
Banned IPs tab, which becomes the first tab.

Assisted-by: Claude Code:Opus 5.5
Threat Shield IP looked idle: Banned IPs listed only fail2ban bans,
which are rare on most units.

A new first tab, Blocklist bans, lists the addresses banned by
blocklists in the last hour, one row per address, most hits first.
The fail2ban tab becomes Brute force bans and its statuses say
banned instead of blocked.

Assisted-by: Claude Code:Opus 5.5
The Threat Shield DNS tab said "Blocklist sources" while Threat Shield
IP says "Blocklist feeds" for the same kind of lists.

Assisted-by: Claude Code:Opus 5.5
Administrators cannot tell which firewall layer blocks a client.
The Monitoring > Live trace page traces one client IP for a limited
time and shows the blocked connections with layer and rule, the DNS
queries and the live connections with rates.

Uses the new ns.livetrace API.

Assisted-by: Claude Code:claude-fable-5-2
Allowed connections now always list one row per connection with its
source port, so the "Show details" switch and the count column are
gone. DNS queries move below the connections table.

Assisted-by: Claude Code:Sonnet 5.5
Make the Go to Firewall rules link reachable from the keyboard, and
reword the page description and empty states by the Nebula writing
guidelines.

Validate the IP address and port with valibot and the shared
validators, clear a stale start error when stopping, type the ubus
calls, and use hierarchical query keys and full i18n keys.

Assisted-by: Claude Code:Opus 5.5
The rule tooltip listened for focus on its wrapper, so focusing the
rule name never opened it and the Go to Firewall rules link was out
of reach. A button that opens it on hover or click works with Enter.

Assisted-by: Claude Code:claude-opus-5-5
Align the live trace page with the Nebula design system: show
firewall rule details in a side drawer instead of a tooltip, use
listboxes for short option lists, translate connection states, make
the blocked banner a warning that counts connections, and fix empty
states, button labels, titles and validation messages.

Assisted-by: Claude Code:Sonnet 5.5
Show the live trace form and the results in two cards, as asked by
the designer. The form stays visible while a session runs, with the
traced values, a spinner and the time remaining, and the Start and
Stop buttons match the height of the fields. The rule details drawer
no longer links to Firewall rules.

Assisted-by: Claude Code:Opus 5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants