this post was submitted on 05 Aug 2025
1248 points (99.1% liked)

Programmer Humor

25531 readers
1444 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
1248
Peak security (lemmy.world)
submitted 2 days ago* (last edited 2 days ago) by qaz@lemmy.world to c/programmer_humor@programming.dev
 

^This^ ^is^ ^a^ ^joke,^ ^I^ ^didn't^ ^really^ ^lock^ ^myself^ ^out^

you are viewing a single comment's thread
view the rest of the comments
[–] medem@lemmy.wtf 24 points 2 days ago* (last edited 2 days ago) (1 children)

Since that happens to the best of us, I envision writing a wrapper script around {n,}pfctl that asks for confirmation upon detecting that you're logged in via ssh through a specific port AND detecting that the new rules would block that port.

[–] dbtng@eviltoast.org 2 points 2 days ago (1 children)

VMware does this with its virtual networking. If a change takes it offline, it automatically rolls it back. It can be frustrating at times, but mostly its saved my ass.

[–] Honytawk@feddit.nl 1 points 21 hours ago

Meraki does this as well. If you change anything that might disconnect the uplink or the port you are connected to, it gives you a pop-up warning before it commits.