Skip to the content ForoHackers
Log inJoin

Self-hosting: start here

Self-hosting
#3205 · · Quote · 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

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply