Files
lassulus 655c3d9415 checks/user-firewall: wait for the router's port, not the nginx unit
`services.nginx` is `Type=simple`, so `wait_for_unit("nginx.service")`
returns as soon as systemd forks nginx -- before it parses its config and
binds :80. Under the upstream nspawn driver the containers reach
multi-user.target in ~2s, so the test wins that race and alice's curl to
the router gets a RST (curl exit 7, "Connection refused") within 20ms.

Reproduced 5/8 runs before the change, 0/8 after.

The iptables variant only survives by accident: its `systemctl restart
firewall` takes 0.63s versus 0.18s for `systemctl restart nftables`,
which is just enough slack for nginx to bind.
2026-08-10 12:04:02 +02:00
..