Skip to Content

Open Source Server Stack — Guide 1: secure server

The foundation — what others skip to move fast

You have just rented a VPS. It is bare, exposed, with root access by default and zero protection. It is an open door to the Internet.

Most tutorials tell you “install Docker” and move on. The result: a server that runs fine until the day someone gets in. And that day comes.

This guide does the opposite. Before you install anything, you secure. Layer by layer.

By Myrko Federico — Swiss systems engineer, 25 years of experience.


9 phases, from bare VPS to production server

  1. Initial hardening — key-only SSH, root disabled, Fail2Ban against brute-force attacks
  2. WireGuard VPN — encrypted remote access. After that, you close every port. Your server disappears from the Internet
  3. Docker — a clean file structure, isolated networks per stack
  4. AdGuard Home — filtered DNS, no more ads or trackers
  5. Caddy — reverse proxy with automatic Let's Encrypt HTTPS
  6. Mattermost — self-hosted messaging
  7. OpenClaw — the AI orchestrator, behind Caddy, reachable only through the VPN
  8. Role separation — two separate Linux users. If the bot is compromised, the attacker gets nothing
  9. kDrive — FUSE mount for Swiss cloud storage

After this guide

You have a server you can leave online without worrying. It is the foundation the next 7 guides build the Jarvis on.

What you get

  • The complete guide (PDF + Markdown)
  • 4 reference appendices: OpenClaw Installation, Enhanced zsh Terminal, Linux Commands, Remote Access with SSH and WireGuard

This guide is part of the Open Source Server Stack series. Guides Pack: CHF 149 (52% savings). Complete Pack with 60+ production configs: CHF 249. See all options.

Format: PDF + Markdown — Estimated time: 3-5 hours

Infrastructure AI
CHF 39.00 CHF 39.00

Terms and Conditions
30-day money-back guarantee
Shipping: 2-3 Business Days