Basically every local service is accessed via a web interface, and every interface wants a username and password. Assuming none of these services are exposed to the internet, how much effort do you put into security here?
Personally, I didn’t really think about it when I started. I make a half-assed effort at security where I don’t use “admin” or anything obvious as the username, and I use a decent-but-not-industrial password - but I started reusing the u/p as the number of services I’m running grew. I have my browsers remember the u/ps.
Should one go farther than this? And if so, what’s the threat model? Is there an easier way?

  • fmstrat@lemmy.nowsci.com
    link
    fedilink
    English
    arrow-up
    6
    ·
    29 days ago

    Unify them.

    Now I have a full FOSS Active Directory for SSO logging into computers and services that supports 2FA where desired.

  • pHr34kY@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 month ago

    Public-facing: Password generator, stored in a password manager.

    Internal LAN: Everything gets the same re-used, low-effort password.

    Nobody is going to hack my CUPS server.

    • BCsven@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      But if they do, they have every password for all your stuff. hopefutlly you have Ipv6 disabled

      • cmnybo@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 month ago

        Just because each device has a globally routable IP address doesn’t mean they can be accessed from outside your LAN. You still have to add a firewall rule to open a port to the device.

        • BCsven@lemmy.ca
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          1 month ago

          I was referring to the latest CVE for ipv6 where an attacker just sends a flood of IPv6 packets which puts things like WindowsOS into a mode for remote code execution, even via webpage. Windows remedy right now is turnoff all ipv6 capability, as they don’t have a fix yet

            • BCsven@lemmy.ca
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              29 days ago

              Apparently crafted webpage could be a vector. Router has to block fragmented packages also. The issue is non savvy people get shipped a router with Ipv6 firewall turned off (as a shit default setting) and don’t know to check it. And as it is a worm type it can come in with otger binaries

      • pHr34kY@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        1 month ago

        IPv6 should not be disabled under any circumstances.

        In fact, many devices in my house have IPv4 disabled. Disabling IPv4 on my public-facing SSH reduced the attack traffic to zero.

        IPv4 is shit.

        • Turbo@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          29 days ago

          Why not disable ipv6 for local lan?

          I disable It on everything for next decade until it’s mainstream.
          .

        • BearOfaTime@lemm.ee
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          1 month ago

          IP4 is shit

          Lol, right, right. It’s only run the internet for what, 40 years now?

          Guess you missed the recent gaping hole in IP6 on Windows?

          IP6 is only really useful in large (i.e. enterprise) environments . It offers no practical benefit to small networks at the moment.

          And even enterprise will only switch as they build out new infrastructure. The cost to switch is very high, and the risk is far more concerning than any potential benefit.

          • 2xsaiko@discuss.tchncs.de
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            1 month ago

            It offers no practical benefit to small networks at the moment.

            The internet is not a “small network”, and I assume your small network is connected to it. You need local IPv6 routing to have access to IPv6-only hosts which are becoming more and more because it’s reasonable in terms of price to get an IPv6 block unlike IPv4 blocks which are being auctioned for tens of thousands of dollars at this point (!!!).

            Also restoring global addressing is a huge benefit. P2P communications in IPv4 has become an insane mess of workarounds due to lack of addresses and this becomes worse the more layers of NAT you stick behind each other to try to save your ass from the rising tide.

            I’m really sick of hearing these idiotic excuses over and over, “it’s hard” this, “it’s unsafe” that, “it’s expensive”, “understanding the eldritch secrets of IPv6 has driven 5 of my colleagues into madness” skill issue. THERE ARE NO MORE IPV4 ADDRESSES. So unless your network is so fucked that you haven’t managed to fix it in 26 years, since IPv6 has been standardized, or it really is just an internal network with no outward facing services where it doesn’t matter when someone who just has IPv6 can’t access it because they wouldn’t be able to access it anyway, and you’re not some kind of ISP, you have no reason not to have support for it at this point and you absolutely never have a reason to tell people it’s not “useful” because that is straight up wrong in the general case even if it might be true for your situation.

          • towerful@programming.dev
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 month ago

            How many people are running public facing windows servers in their homelab/self-hosted environment?

            And just because “it’s worked so far” isn’t a great reason to ignore new technology.
            IPv6 is useful for public facing services. You don’t need a single proxy that covers all your http/s services.
            It’s also significantly better for P2P applications, as you no longer need to rely on NAT traversal bodges or insecure uPTP type protocols.

            If you are unlucky enough to be on IPv4 CGNAT but have IPv6 available, then you are no longer sharing reputation with everyone else on the same public IPv4 address. Also, IPv6 means you can get public access instead of having to rely on some RPoVPN solution.

              • towerful@programming.dev
                link
                fedilink
                English
                arrow-up
                0
                ·
                1 month ago

                If the router/gateway/network (IE not local) firewall is blocking forwarding unknown IPv6, then it’s a compromised server connected to via IPv6 that has the ability to leverage the exploit (IE your windows client connecting to a compromised server that is actively exploiting this IPv6 CVE).

                It’s not like having IPv6 enabled on a windows machine automatically makes it instantly exploitable by anyone out there.
                Routers/firewalls will only forward IPv6 for established connections, so your windows machine has to connect out.

                Unless you are specifically forwarding to a windows machine, at which point you are intending that windows machine to be a server.

                Essentially the same as some exploit in some service you are exposing via NAT port forwarding.
                Maybe a few more avenues of exploit.

                Like I said. Why would a self-hoster or homelabber use windows for a public facing service?!

                • SchmidtGenetics@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  edit-2
                  1 month ago

                  … all it can take is going to a website from a windows device… maybe less, it was literally discovered a couple days ago…

                  It’s not like having IPv6 enabled on a windows machine automatically makes it instantly exploitable by anyone out there.

                  Yes it actually kinda does, that’s why this exploit is considered the highest priority and critical.

                  But sure… downplay it, because we only think servers are at risk…

                  Yeesh buddy.

          • powerofm@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            1 month ago

            I’m pretty sure that vulnerability only affected windows machines. Surely you’re not running a homelab with windows server?

          • seaQueue@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 month ago

            The only windows machine on my home network is the backup Windows laptop that I only boot when I need to run something like Odin to flash a tablet or some niche Nintendo switch management software.

              • seaQueue@lemmy.world
                link
                fedilink
                English
                arrow-up
                0
                ·
                1 month ago

                Yes, the machine that stays off 363 days of the year is such a security risk to my home network 🙄

                • SchmidtGenetics@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  1 month ago

                  Great, so let’s suppress a warning because YOU are fine…

                  Maybe other people don’t realize the issue, but of course you aren’t thinking about anyone but yourself now aren’t you?

  • WhyJiffie@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    30 days ago

    Everything gets a different, long random password. It’s not a hassle because my password manager handles everything. It’s bitwarden for whatever I may need to access elsewhere, few admin logins there, keepass everything else.

  • youmaynotknow@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    29 days ago

    All my local services follow the same rules as any other service. I have no idea what the passwords are, they are all random and long as fuck in my password manager. 2FA with a hardware key where allowed, TOTP if not.

    What possible reason would anyone have to “relax” or security on local services? That would mean having 2 streamlines which only adds friction.

    I strongly suggest you move all your credentials out of your browsers and into a password manager.

  • arcayne@lemmy.today
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    30 days ago

    Apps: SSO via Authentik where I can, unique user/pass combo via Bitwarden where I can’t (or, more realistically, don’t want to).

    General infra: Unique RSA keys, sometimes Ed25519

    Core infra: Yubikey

    This is overkill for most, but I’m a systems engineer with a homelab, so it works well for me.

    If you’re wanting to practice good security hygiene, the bare minimum would be using unique cred pairs (or at least unique passwords) per app/service, auto-filled via a proper password manager with a browser extension (like KeePassXC or Bitwarden).

    Edit: On the network side, if your goal is to just do some basic internal self-hosting, there’s nothing wrong with keeping your topo mostly flat (with the exception of a separate VLAN for IoT, if applicable). Outside of that, making good use of firewalls will help you keep things pretty tight. The networking rabbit hole is a deep one, not always worth the dive unless you’re truly wanting to learn for the sake of a cert/job/etc.

  • RegalPotoo@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    30 days ago

    Keycloak to provide OIDC, although in hindsight I should have gone with Authelia Authentik