Operator addendum: internal services must be reachable by bare IP+port, because
a phone cannot edit /etc/hosts. A hostname-scoped route does not match
Host: 10.10.0.2:8081 (Envoy 404), and a hostname-less PathPrefix / cannot share
a listener with it — so hubble-ui gets its own listener on 8082
with a route that sets no hostnames. and
both hit the UI.
Firewall: siriussec nft table now matches dport { 8081, 8082 } and starts with
so re-running the unit replaces (not appends) the rules; the rpi
ufw script is generalised to a PORTS list and inserts each port above the LAN
catch-all. Both hosts applied and verified before the listener was programmed.
docs: internal gateway section, host-firewall README.
17 lines
519 B
Desktop File
17 lines
519 B
Desktop File
# /etc/systemd/system/internal-gw-firewall.service (siriussec)
|
|
#
|
|
# Same shape as k8s-api-firewall.service. Installed by hand (host unit, not
|
|
# Flux-managed); the file lives in git at
|
|
# infrastructure/networking/internal/host-firewall/.
|
|
[Unit]
|
|
Description=Restrict the internal Gateway listeners (8081, 8082) to WireGuard
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/sbin/nft -f /etc/nftables.d/internal-gw.nft
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|