Admit a WireGuard listen port in the castrum table #53

Closed
opened 2026-11-18 11:47:30 +01:00 by motoko · 0 comments
Collaborator

Problem

A host that terminates a WireGuard tunnel listens on a UDP port for the
peer's handshake. firewall-apply renders inet castrum with an input
policy of drop, and admits only SSH and the ports of the service roles
switched on. No role opens a UDP port a host chooses, so the first
fortify.yml run on such a host drops the handshake and the tunnel goes
down. Where SSH itself runs over the tunnel, the host is then reachable
only from its console.

Check

A host can declare that it listens for WireGuard: the rendered table
then accepts new UDP packets on its listen port, and a host that
declares nothing gets a table without that rule.

## Problem A host that terminates a WireGuard tunnel listens on a UDP port for the peer's handshake. `firewall-apply` renders `inet castrum` with an input policy of drop, and admits only SSH and the ports of the service roles switched on. No role opens a UDP port a host chooses, so the first `fortify.yml` run on such a host drops the handshake and the tunnel goes down. Where SSH itself runs over the tunnel, the host is then reachable only from its console. ## Check A host can declare that it listens for WireGuard: the rendered table then accepts new UDP packets on its listen port, and a host that declares nothing gets a table without that rule.
Sign in to join this conversation.
No description provided.