An unofficial, read-only Hacker News reader. Join the beta →

AI made self-hosting fun again (opens external site)

1068 points by jlelse 1 day ago | janlukas.blog | 500 comments on HN

View full thread · View on Hacker News

Comment thread (9)

  1. > Now it means patching within 24hrs of a CVE9+ dropping

    I know security by obscurity is not a good defense, but if the internet were on IPv6, it would be a lot harder for bots to find hosts by scanning the whole IP space, whereas when I open a port on IPv4 I can always see activity on it almost immediately. I've been watching traffic to IPv6-only hosts despite connecting to them from outside the local network and it's been completely silent from strangers. This would buy extra time for any critical CVE that needs patching.

    Replies (2)
    1. Maybe, but if using https with a public CA then your domain info is already well know. DIY CA not an issue, but has worse caveats imo.
      Replies (2)
      1. Yeah, that's a point worth mentioning, but none of the hosts I connect to have public DNS records pointing to them or use a public CA.
        Replies (2)
        1. Yeah then you’re fine
        2. What do you use for CA? I have an internal network on LetsEncrypt because it's annoying as hell to add special allowances to a couple dozen browsers/etc. Is there a solution you use that improves this?
          Replies (1)
          1. I'm not who you asked, and I'm interested to see if they have a wildly different take. But here's mine:

            For someone who doesn't use public DNS records (and therefore has a more localized way of resolving/bookmarking the IP address), wouldn't they also do just fine using a certificate signed by something manually added to their local trust store? It's only once you have the general public resolving your domain that you also need the general public to easily validate your cert (through a chain that includes a root cert everyone's trust store already contains).

            Do both in public, or do both in private. While overkill and cumbersome, things like Group Policy, MDM, etc. can handle the "I have many devices" issue.

            Or if you're in control of the network E2E (LAN, or VPN with a CA cert) then there is no MITM and therefore no need for TLS.

            Or if something like SSH rather than HTTPS, you've got TOFU instead of PKI.

            Replies (1)
            1. > wouldn't they also do just fine using a certificate signed by something manually added to their local trust store?

              That means adding it to all the devices that need to connect to those sites. Which is fine if you're only connecting from a computer, but if it's a computer, several phones, a TV... then it's less fun. Yes, there are solutions, but having a LetsEncrypt certificate is simpler:

              1. Get a wildcard subdomain to refer to hosts in your LAN (e.g., *.lan.mydomain.com) 2. Have a DNS resolver in your LAN (very common in homelab settings as people will already be running pihole or something like that) 3. Override the DNS settings to resolve the LAN subdomains to local LAN IPs.

      2. Often you can get by with wildcard certificate.
    2. Maybe the ASI's first show of force will be to hack the internet and finally push everything to IPv6