hubble: move the UI listener to 8084 — 8082 is taken on rpi

Cilium binds every Gateway listener on 0.0.0.0 on EVERY gateway node, and the Pi
still runs leftover Docker site containers: handyman-site holds 127.0.0.1:8082
and its nginx holds 127.0.0.1:8083 (a 127.0.0.1 bind still blocks a 0.0.0.0
one). Binding 8082 there made xDS reject the listener on rpi
("cannot bind '0.0.0.0:8082': Address already in use" at ~2/s) and restarted
cilium-envoy on the node that fronts the public ingress — the UI worked or not
depending on which node answered.

8084 measured free on both gateway nodes (rpi, siriussec) before the change.
Firewall moved with it: siriussec nft dport set { 8081, 8084 }, rpi ufw trio for
8084 inserted above the LAN catch-all and the 8082 rules deleted.

URL: http://10.10.0.2:8084/ (bare IP, no /etc/hosts) — same as Grafana on 8081.
This commit is contained in:
Lance Walters 2026-10-27 00:44:32 -04:00
commit a287dc8dfa
7 changed files with 62 additions and 27 deletions

View file

@ -12,7 +12,7 @@ are *both* listening on the LAN interfaces; the Gateway API object cannot say
| siriussec (10.10.0.2) | nftables table `inet internal_gw`, loaded by a oneshot unit (same pattern as `k8s-api-firewall.service`) | `siriussec-internal-gw.nft`, `internal-gw-firewall.service` |
| rpi (10.10.0.1) | ufw rules inserted above the `allow from 192.168.1.0/24` catch-all | `rpi-ufw-internal-gw.sh` |
Effective policy for `:8081` (Grafana) and `:8082` (Hubble UI) on both hosts:
Effective policy for `:8081` (Grafana) and `:8084` (Hubble UI) on both hosts:
**accept from 10.10.0.0/24 and 10.244.0.0/16, accept on lo, drop everything
else** (LAN, tailscale, public). Envoy binds every listener on `0.0.0.0`, so a
new internal listener port is a LAN exposure until it is added here.
@ -36,7 +36,7 @@ Verify:
# siriussec
nft list table inet internal_gw
# rpi
ufw status | grep -E '8081|8082'
ufw status | grep -E '8081|8084'
```
Negative test from the LAN must be a timeout (DROP), never 200:

View file

@ -6,14 +6,14 @@
# Final order per port: allow 10.10.0.0/24, allow 10.244.0.0/16, deny the rest.
#
# Ports: 8081 = Grafana (`internal` Gateway listener http-internal),
# 8082 = Hubble UI (`internal` Gateway listener hubble-ui).
# 8084 = Hubble UI (`internal` Gateway listener hubble-ui).
# Add a new internal listener port to PORTS; the loop is idempotent, so
# re-running after a port is already firewalled only adds what is missing.
#
# Run as root on rpi (192.168.1.125).
set -euo pipefail
PORTS="${PORTS:-8081 8082}"
PORTS="${PORTS:-8081 8084}"
for port in $PORTS; do
if ufw status | grep -q "${port}/tcp"; then

View file

@ -1,5 +1,5 @@
#!/usr/sbin/nft -f
# Internal (WireGuard-only) gateway listeners: TCP 8081 (Grafana) and 8082
# Internal (WireGuard-only) gateway listeners: TCP 8081 (Grafana) and 8084
# (Hubble UI).
#
# Cilium's hostNetwork Envoy binds every Gateway listener on 0.0.0.0, so the
@ -22,13 +22,13 @@ table inet internal_gw {
type filter hook input priority filter; policy accept;
# local process / kubelet probes
tcp dport { 8081, 8082 } iifname "lo" accept
tcp dport { 8081, 8084 } iifname "lo" accept
# WireGuard mesh (Legion = 10.10.0.3, nodes, remote hub spokes)
# and the pod network (in-cluster scrapers, probes)
tcp dport { 8081, 8082 } ip saddr { 10.10.0.0/24, 10.244.0.0/16 } accept
tcp dport { 8081, 8084 } ip saddr { 10.10.0.0/24, 10.244.0.0/16 } accept
# everything else: LAN, tailscale, public
tcp dport { 8081, 8082 } counter drop
tcp dport { 8081, 8084 } counter drop
}
}