Hacker News new | ask | show | jobs
by usui 2 days ago
> 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.

2 comments

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.
Often you can get by with wildcard certificate.
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.
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?
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.

> 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.

You can also skip the bit about local DNS, and just use some cloud provider's wildcard DNS together with hard-to-guess hostnames.

So gingerbreadx.lan.mydomain.com sits behind an HTTPS reverse proxy which serves the .lan.mydomain.com wildcard cert, and on the public DNS *.lan.mydomain.com points to the proxy. This is security through obscurity, but you have to think about how likely it is that someone would run a brute force DNS enumeration attack against your private services.

Yeah then you’re fine
Maybe the ASI's first show of force will be to hack the internet and finally push everything to IPv6