mullane.info

Smaller things (l2ctl)

Undated · l2ctl

A fresh UniFi controller can be claimed by anyone who reaches its setup wizard first. So the firewall on the VM restricts the controller’s web port to the admin machines, and that went in before I was told it was up, tested from both an allowed and a blocked machine.

Re-running the VM’s setup script once re-assigned ownership of the container’s data folder from the container’s user back to the host’s service user. Folders that the container owns are now created only if they don’t exist yet, and the fix for the one time it happened was podman unshare chown.

The MongoDB version that the controller uses needs a CPU with AVX. The mini PC it first ran on (an Intel N150) has it, AVX2 even, but it’s worth checking before putting MongoDB on older hardware.

And one the agent owned up to: it installed the repository’s firewall configuration over the live file on the VM without comparing the two first. The active rules were identical and only the text differed, so nothing happened. The rule since then is to diff a live file before replacing it, which I’d assumed was already the rule.