Micro Server

Raspberry Pi 5 como servidor doméstico completo

10 nov 2024 6 min lectura 136 visitas Actualizado: 05 jul 2026
Raspberry Pi 5 como servidor doméstico completo

Hardware

Usamos la Raspberry Pi 5 con 8GB RAM, SSD por USB 3 y disipador pasivo. Consumo total: ~15W. Silencio absoluto.

Sistema base

# Raspberry Pi OS Lite (64-bit, sin desktop)
# Primera configuración
raspi-config
# → Enable SSH
# → Disable Bluetooth/WiFi si no se necesitan
# → Set hostname: tnx-micro

# Actualizar
apt update && apt full-upgrade -y && reboot

Pi-hole: ad-blocking a nivel de red

curl -sSL https://install.pi-hole.net | bash
# Configurar DNS: 9.9.9.9, 149.112.112.112
# Deshabilitar IPv6 si no se usa
# Añadir listas: StevenBlack, oisd, etc.

Home Assistant

# Docker compose
version: "3"
services:
  homeassistant:
    container_name: homeassistant
    image: homeassistant/home-assistant:stable
    volumes:
      - /opt/ha/config:/config
    restart: unless-stopped
    network_mode: host

WireGuard VPN

apt install wireguard -y
wg genkey | tee /etc/wireguard/server.key | wg pubkey > /etc/wireguard/server.pub

[Interface]
Address = 10.0.0.1/24
ListenPort = 51820
PrivateKey = 
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

NFS para compartir archivos

apt install nfs-kernel-server
mkdir -p /srv/compartido
chown nobody:nogroup /srv/compartido

# /etc/exports
/srv/compartido 10.0.0.0/24(rw,sync,no_subtree_check,no_root_squash)

Conclusión

En una sola placa de 65€ tienes: DNS sin publicidad, domótica, VPN y almacenamiento compartido. Todo manual, todo controlado.