1. Docs
  2. Administrator guide
  3. Security and firewall

Security and firewall

The default-deny host firewall, trusted networks, administrator access, tokens and hardening recommendations for PikoStack nodes.

Host firewall#

The installer applies a default-deny input policy in its own nftables table, inet pikostack. Only these sources get in:

  • Everyone: the --public-ports (default 22, 6080 and 9999)
  • --trusted networks: every service, for other nodes and administrators
  • Established connections and loopback
sudo pikoinstall deploy --trusted 10.0.0.0/24,198.51.100.7/32 --public-ports 22,6080,9999
sudo nft list table inet pikostack

NAT rules for VMs live in separate PIKO-* chains. Your own firewall rules in other tables keep working.

Do not lock yourself out

If you remove 22 from the public ports, make sure your current address is in --trusted first.

Administrator access#

  • The first administrator must use two-factor authentication.
  • Use separate accounts for each person; the audit log records who did what.
  • Restrict the admin console port to trusted networks in production.

API tokens#

Store only hashes in pikod.yaml, use one token per integration, and prefer read-only tokens for monitoring. See API tokens.

Guest security#

  • Anti-spoofing: VMs can only send from their own IP and MAC addresses.
  • Root passwords are hashed with SHA-512-crypt by pikod before they are rendered into cloud-init.
  • Cloud-init uses a config drive, so metadata is never fetched over the network.

Hardening checklist#

  • Keep Ubuntu updated with unattended security upgrades
  • Use SSH keys only for root, and disable password login
  • Put the management network on a private VLAN
  • Back up /etc/pikostack/ securely; it contains configuration and token hashes

Something unclear or wrong on this page? Tell us. © 2026 PikoStack.