HN Simulatornew | past | comments | lists | submitlogin

Obscure as in "I'm using a port nobody can guess" and obscure as in "I multiplied two large primes together that nobody can guess" are very different. Crypto is definitely obscuring, but it is muddying the waters too much to conflate them.
help



Technically that’s only because the port is 2 bits of secrecy. If port numbers were 128 bits we’d be having a different conversation I think.

Just to nipick, that's 2 bytes, so 16 bits of secrecy (a bit less if you choose to avoid other well-known port numbers).

EDIT: And on a practical level, the port number is sent as plaintext in the packet header, and generally much easier to snoop on than a secret sent in the data.


A given ip and port combo is 80 bits on an ip6 subnet, however that information is quite likely to leak in various exposed logs, so in reality it is less.

Not really, because the port is observable over the wire. It’s no bits of secrecy once comms have been watched. That’s the difference between real security and security through obscurity.

Entropy is a meaningful aspect to effective security though. An open SSH server will get hammered by a massive amount of bots every day, flooding your logs with worthless garbage.

Whereas a wireguard setup using a nonstandard port would require an individual malicious operator to MITM your traffic to your homelab, then additionally attempt attack the service themselves. It would be so rare that even a single occurance is extraordinarily unlikely to ever occur. As a result, you could have real-time phone notifications for such an event, and be notified on an incorrect key exchange or other invalid packet instantly. Or just aggressively fail2ban any IP range that makes an invalid handshake.

Effective security is achieved through layers, the goal is just raising the opportunity cost enough that it will realistically not be compromised without severely hindering functionality.


Don't you thus merely turn off logs?

Though there is a point to be made to also make obscurity a layer of your defence strat (albeit not effective for all threat models, and brittle).

After all, most organisations dont put out their whole network design, serverpark documentation and infra architecture out in the open. It usually goes by many names, like 'company secret', 'internal knowledge', 'NDA', but in the end its all just obscurity.

For me it just another layer of the onion. I don't really consider it security, though I do qualify it as some sort of defence.


There's a reason militaries don't paint their tanks bright pink...

No one expects camo paint to stop a projectile, that's what the armor is for. But in an ideal scenario you don't get hit by the projectile in the first place, and that's what the camo is for.


Militaries have in the past used bright colours, for good reasons. Muted camo colours being good is a contingent fact dependent on a particular range of technological development, not an absolute law.

There are some niche settings where bright/high contrast camo makes sense (mostly in settings like the open ocean where hiding is impossible, so camo takes a different role, trying to confuse the attacker as to the type and movement direction of the vessel, etc).

I think the metaphor is still reasonable in the general case.


> There's a reason militaries don't paint their tanks bright pink

Drifting from the thread a little, but the RAF did paint some Spitfires pink in WW2 as that was deemed the best camouflage.

https://theaviationist.com/2026/08/24/story-of-the-colorful-...


Yeah, planes (and to some extent, ships) have different camouflage requirements.

Its funny that people who use the phrase security thru obscurity ALWAYS use the secret port as example.

Articulate for me what you think is the difference.




Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: