Skip to main content
CRUCIBLE
Legacy Reference Archive: This 44-chapter book reference has been distilled into Academy A01 (8 Executable Modules) with Tier-Adaptive Productive Failure, Kore/Puck voice, and live Firecracker labs.
Open Academy A01 →
COURSE 0 · SERVER BUILDING & LIFECYCLE MASTERY

Zero-to-Production Linux, Containers, Networking & Recovery

PROGRESS: 0 / 72 (0%)0/44L · 0Q · 0VM
CH 12 · PART III · AI, MCP, INFERENCE & PLATFORMS (CH 09–13) · 1,305 WORDS (7 MIN)

12 Physical Linux network, directory, and storage servers

Begin with workload and reliability requirements, then size CPU, RAM, storage capacity, IOPS, network bandwidth, power, cooling, and growth.

FULL WAR-ROOM →
INTERACTIVE TRUST BOUNDARY · CLICK ANY CONTROL TO INSPECT

Zero-Trust Host Boundary: Bastion -> Least-Privilege User -> Tenant ACL -> Encrypted Backup

Trace how identity isolation, private management planes, and restore-tested backups contain blast radius.

scopesguardssealsVPN / BastionSSH Key · MFALeast PrivilegeNon-Root · Tier-0Verified TenantJWT Claim · RLSEncrypted ArchiveOff-Host · Tested
SELECTED LAYER · VPN / BASTION
Keeps admin SSH and IPMI/BMC management interfaces off the public internet behind private VPN/bastion hops.
Common failure: Exposing port 22 password logins or BMC interfaces on 0.0.0.0 invites automated credential stuffing.
$ ss -tulpn | grep -E ":22|:443"

Outcome: understand how the common lifecycle applies to server categories beyond APIs and AI. Prerequisites: Linux/networking/security foundations. Environment: isolated lab hardware or virtual machines. Status: specialist procedures and assessments; vendor-specific installations need the official documentation matching the selected release.

Physical server commissioning

Begin with workload and reliability requirements, then size CPU, RAM, storage capacity, IOPS, network bandwidth, power, cooling, and growth. Check compatibility across motherboard, memory type, processor, storage controller, NIC, and operating system. Hardware with more cores is not necessarily faster for a single-thread bottleneck.

Create an inventory with serial numbers, firmware versions, disk identities, network ports, and warranty/support details. Keep remote management on a restricted network and replace default credentials. Verify installation media checksums and provenance. Record BIOS/UEFI settings such as virtualization support, boot mode, power recovery, and secure boot policy.

Commission in stages: inspect components; update firmware using vendor procedures; test memory and storage health; install the hypervisor or OS; configure management access; patch; establish monitoring; then introduce workloads. Use a UPS where abrupt power loss matters and test graceful shutdown in a controlled window.

RAID or mirrored disks can preserve availability through some disk failures. They do not protect against deletion, ransomware, controller mistakes, or site loss. Keep independent backups and rehearse replacing a failed disk using its verified physical identity. Never infer the target drive from an ambiguous device letter alone.

Acceptance: record an inventory, demonstrate a recoverable remote console, measure baseline performance, test a controlled reboot, verify alerts, and restore a workload from backup onto separate storage.

Virtualization

A hypervisor runs guest VMs with separate kernels and virtual hardware. Containers share a host kernel and have a different isolation model. Snapshots capture a point in time and can assist a lab rollback, but application consistency and retention still matter. A snapshot on the same failed storage is not an independent disaster backup.

Create a template with a supported OS, patched packages, and no reused host identity or private keys. Allocate resources intentionally rather than overcommitting every guest. Separate management, workload, and backup traffic where appropriate. Document how virtual disks map to physical storage so a cleanup does not remove another machine's data.

Exercise: create two VMs on an isolated network, deploy the API on one and database on the other, permit only required traffic, and verify both connectivity and denial. Rebuild one guest from its recorded configuration. Do not attach lab DHCP services to your household or office network.

Enterprise Linux identity and directory services

Enterprise Linux administration relies on systemd services, structured journalctl logs, Bash automation, POSIX/ACL permissions, nftables/ufw firewall policy, and centralized identity controls. Distinguish clearly between a local host account (/etc/passwd) and a centralized Tier-0 directory identity (FreeIPA, OpenLDAP, Kerberos, or OIDC). A centralized identity store is Tier-0 security infrastructure, not merely another application database.

For a lab, create an isolated VM network, a dedicated Linux identity server VM, and a separate disposable client VM. Assign stable private addressing, verify chrony time synchronization (Kerberos and JWTs fail immediately under clock drift), and choose a lab-only DNS domain. Keep break-glass recovery credentials encrypted off-host and document authoritative DNS records.

Enroll the disposable client into the lab identity realm, create an ordinary user in a dedicated role group, and attach one narrow sudoers or HBAC/RBAC policy. Verify ordinary user login and a deliberately denied privileged action. Add a second directory replica only after you verify DNS resolution, replication lag, and clean LDIF/replica restore. Never join a tutorial identity node to a real production organization.

Acceptance: demonstrate DNS resolution, centralized user login, least-privilege policy enforcement, audit log evidence in journalctl, and a documented off-host directory recovery procedure. A VM snapshot alone is not a complete directory recovery strategy.

File storage NAS and SFTP

Define ownership, groups, permitted operations, quotas, retention, and backup before creating a share. SMB is common for Enterprise Linux-integrated sharing; NFS is common in Unix environments; SFTP uses SSH for file transfer. Select the protocol based on client and identity needs rather than exposing all three by default.

Create a dedicated dataset or directory, assign a test group, configure a share with minimal permissions, and test as two different users. Test create/read/write/delete separately. Verify effective filesystem and share permissions together. Avoid “everyone full control” as a troubleshooting shortcut.

For SFTP, restrict users to intended directories and transfer capabilities where required. For NAS, monitor disk health, capacity, scrubs, and replication status. Encrypt backups and test a restore of both content and permissions. A file restored with the wrong ACL may be a security failure even if its bytes match.

Acceptance: one user can access authorized files, another is denied, quota behavior is understood, and a deleted test file is restored with its metadata and permissions.

DNS DHCP and VPN

An authoritative DNS server answers for a zone; a recursive resolver finds answers on behalf of clients. Running an open recursive resolver creates abuse risk. Restrict recursion to intended networks and keep authoritative data and administrative access controlled. Test forward and reverse lookups where your applications depend on them.

DHCP assigns network configuration through leases. A rogue DHCP server can disrupt other devices. Practice only on an isolated virtual switch. Define address pools, exclusions, gateway/DNS options, reservations, and lease duration. Verify that a client receives the intended configuration and renews it.

A VPN provides a controlled network path but does not automatically grant application authorization. Decide which subnets/routes clients may reach, how identities are issued and revoked, and whether traffic uses split or full tunneling. Test revocation, DNS behavior, and access to unauthorized internal resources. Keep administrative interfaces off the general internet where feasible.

Acceptance: an isolated client gets the correct address and resolver, resolves the lab service, reaches it through the intended VPN route, and loses access when its credential is revoked.

Email servers

Email operation includes inbound SMTP, authenticated submission, mail storage, spam/abuse controls, queues, delivery reputation, and DNS policy. SPF, DKIM, and DMARC address parts of sender authentication and policy; they do not guarantee inbox placement. Reverse DNS, outbound port policy, reputation, and incident handling also matter.

For learning, begin with an isolated mail-capture service that cannot relay to arbitrary internet recipients. Send synthetic messages between test applications, inspect headers, and exercise queue retry behavior. Before operating internet mail, use the selected server's current hardening guide and verify that unauthenticated third-party relay is denied. Establish abuse monitoring and recovery procedures.

Acceptance: authenticated submission works, unauthorized relay fails, queues are visible, and a message can be traced without exposing real mailbox contents. Choose managed mail when your actual goal is application delivery and you do not need to operate mail infrastructure.

Search brokers real-time media and games

A search server needs an ingestion contract, index lifecycle, access control, relevance evaluation, and reindexing strategy. A message broker needs durable storage settings, acknowledgment semantics, consumer recovery, retention, and authorization. Neither should be exposed anonymously just because its web dashboard is convenient.

Real-time systems need connection limits, reconnect behavior, heartbeats, session placement, and backpressure. Media systems add bandwidth, transcoding, storage, and content-access requirements. Game servers add tick rate, state synchronization, fairness, and abuse controls. Test the protocol-specific workload; a generic HTTP benchmark will not prove their capacity.

Exercise: choose one category and produce a service contract, private deployment, client test, failure drill, backup/restore plan where state exists, and retirement procedure. Use the same evidence standard as the API capstone while following the selected product's supported configuration.

Specialist completion record

For every track record the exact OS/product version, network diagram, identities, persistent data, exposed ports, backup target, monitoring, upgrade procedure, and cleanup. The common lifecycle is reusable; the detailed protocol and vendor operation must be learned for the chosen specialty. Do not claim expert operation of a server type you have only read about.

ACTIVE-RECALL MASTERY CHECKPOINT · CH 12

Lock in what you just learned (3 quick questions)

PASS 2/3 FOR +30 XP
Q1.What makes bare-metal physical server commissioning distinct from spinning up a cloud VM?
Q2.Why isolate out-of-band management interfaces (BMC/IPMI) onto a dedicated private management VLAN?
Q3.Why is RAID (mirroring/parity) NOT a substitute for off-host encrypted backups?
Answered 0 / 3