I’ve been wanting to get into self hosting for a long time and messed about a bit with setting up a nextcloud. But while I am reasonably well versed in linux and programming all things to do with the internet are quite confusing and mostly after reading blogposts and the like I am feel like I am missing so much knowldedge. From why people use traefik, how and why to use docker containers, what settings to change on the router, how to connect and setup the domain, and probably most importantly how to do this safely. Is there a good book or site that explains these more basic things?

  • london443@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    17 hours ago

    Adding the security basics, since nobody listed them yet:

    1. A firewall with default deny, then open only what you need. A simple one such as ufw is fine.
    2. Install CrowdSec or fail2ban early. Within a day you will see how much junk hits any public server.
    3. Reach SSH and admin pages over a private network (Tailscale or WireGuard) instead of exposing them.
    4. Read your reverse proxy access log for a week. It teaches you more about how the internet really behaves than most courses.

    None of it has to be perfect on day one, but it is much easier to build in from the start.