points by lakeviewterrace 2 days ago | 0 comments
Port knocking is idiotic and amounts to Biff Tannen's "only I know how to start this car".
[–] LoganDark 2 days ago
It's more like "only I know how to find this keyhole". You still need the key then, you're just also adding some defense against picking.
It would be idiotic to use the knock as the only authentication, which is why I don't.
To be quite honest, I just like the aesthetics of it.
[–] megous 2 days ago
You're sending your knock over the public network in the clear. It's observable by anything in the path. And then you're not the only one that can find the keyhole.
[–] sersi 2 days ago
Entirely true, it's not true security, same as changing the ssh port. So, relying on it for any security is not useful but it's a good deterrent from automated scans that are not targeted towards you. Defense in depth means not necessarily discarding flawed defenses if they are in addition to proper defense.
[–] Gigachad 2 days ago
[–] icedchai 2 days ago
[–] LoganDark 2 days ago
[–] icedchai 2 days ago
[–] LoganDark 2 days ago
[–] esseph 2 days ago
[–] LoganDark 2 days ago
[–] esseph 2 days ago
[–] LoganDark 2 days ago
[–] dns_snek 1 day ago
I jest, but you're describing authentication protocol which uses the UDP destination port field to carry each character of the "one time password" in a roundabout way. You could simply send 1 packet containing the password to the daemon.
I've never seen it used in the wild but apparently, it exists: https://github.com/mrash/fwknop
[–] ilikepi 3 hours ago
[–] LoganDark 1 day ago
Reading the fwknop README is such a breath of fresh air, thank you for that treat. I hate AI-generated documentation so much.
[–] SV_BubbleTime 2 days ago
I’m not even sure you need more than two. One seems bad because that’s just a lucky port scanner one time.