Skip to the content ForoHackers
Log inJoin

Self-hosting: start here

Self-hosting
#699 · Ophuscado · · Report

Self-hosting is running the services you use, such as files, mail, photos, chat or a website, on hardware you control rather than renting them as a product. You gain control, privacy and learning; in exchange you become the administrator, responsible for security, updates, backups and uptime.

Key concepts

  • Exposure: every service reachable from the internet is attack surface; expose as little as you can.
  • Networking: a stable address or dynamic DNS, port forwarding, a reverse proxy and TLS certificates.
  • Isolation: containers or virtual machines keep one broken service from taking down the rest.
  • Updates and monitoring: patch on a schedule and know when something stops working.
  • Backups: the data you host is yours alone to protect, so test restoring it.

Vocabulary

  • Reverse proxy: a front server that routes requests to the right service and terminates TLS.
  • Dynamic DNS: keeping a name pointed at an address that changes.
  • VPN: an encrypted tunnel, often the safest way to reach services meant only for you.
  • Homelab: a personal setup of machines for running and learning.

What to study, in order

  1. Run one service in a container on a spare computer, reachable only on your local network.
  2. Learn how DNS, ports and NAT decide what can reach it.
  3. Add a reverse proxy with a TLS certificate and a real domain name.
  4. Put administration behind a VPN or SSH keys, and close every port you do not need.
  5. Schedule backups and restore one to a different machine.
  6. Set up monitoring and a routine for updates, then add a second service.

Related tags

#homelab #containers #backups #network-administration

Log in or join to reply.