1300
Peak security (lemmy.world)
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

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

top 50 comments
sorted by: hot top new old
[-] [email protected] 151 points 1 month ago

Happened to me once. Had a little Pi at my parent's house and that was a nice excuse to visit them.

[-] [email protected] 8 points 1 month ago

Except when you get there and don’t want to talk or do all the meeting and greeting until you know the server still works.

load more comments (1 replies)
[-] [email protected] 115 points 1 month ago

even worse. I regularly have to get up out of my chair and go down 2 stairs.

Also this took a while to find, but : https://sourceforge.net/p/shorewall/svn/HEAD/tree/branches/4.2/Samples/one-interface/shorewall.conf

ADMINISABSENTMINDED=Yes

Is an actual setting in the config for the (now apparently unmaintained) Shorewall Firewall software/tool for linux.

If I remember correctly, it always checks on firewall rule changes if there is an active connection on port 22, and adds a special rule at the end to maintain that connection.

They don't build them like they used to anymore.

[-] [email protected] 10 points 1 month ago* (last edited 1 month ago)

They don't build them like they used to anymore.

Well if we did, the way it works would be by telling a chatbot to enable ssh on port 22 at the end.

[-] [email protected] 85 points 1 month ago

Doing this is a right of passage.

[-] [email protected] 122 points 1 month ago

Believe it or not, "rite" is the, uh, right, word here.

[-] [email protected] 131 points 1 month ago

Messing up the spelling is a wrong of passage.

[-] [email protected] 11 points 1 month ago

You have a right to pass once you've done this rite of passage.

[-] [email protected] 6 points 1 month ago

Believe it or not, straight to jail

[-] [email protected] 73 points 1 month ago

Before you make a change, do this in a screen-session:

sleep 300 && iptables-restore old_fw_rules.bak

[-] [email protected] 35 points 1 month ago
[-] [email protected] 8 points 1 month ago
[-] [email protected] 10 points 1 month ago

user permissions is a debian thing now?

[-] [email protected] 8 points 1 month ago

A long time ago, Debian 8 or so it was a bug with Debian. Something about the command running without root despite the sudo command.

[-] [email protected] 7 points 1 month ago

Yeah except it would be iptables-restore < old_fw_rules.bak

[-] [email protected] 15 points 1 month ago* (last edited 1 month ago)

Fun fact: When you do iptables-save, you have to redirect the output if you want to save it to a file. But when you use iptables-restore, you don't need to pipe it back in, you can just use the filename!

[-] [email protected] 7 points 1 month ago

It wasn't always that way. At one time you had to so I still do.

load more comments (1 replies)
[-] [email protected] 71 points 1 month ago

Real servers have lights out management and management networks.

[-] [email protected] 61 points 1 month ago* (last edited 1 month ago)

I'd rather plug in a screen with VGA than deal with HPE iLO 4

load more comments (9 replies)
[-] [email protected] 66 points 1 month ago

Almost the same thing happened to me. I accidentally fucked up the internet connection in my home while in Japan, and I had to video call my mom to have her fix it. It was a pain for both of us, but thankfully it went rather smoothly. Thank you mom!

[-] [email protected] 7 points 1 month ago

Do you mind explaining the details? I’m trying to learn as much as possible!

load more comments (2 replies)
[-] [email protected] 46 points 1 month ago

What's really fun is hearing "oh shit" from the UPS maintenance tech followed by darkness and silence.

[-] [email protected] 35 points 1 month ago

Classic.

Love Hetzner. If something like that were to happen to me they can hook up a remote console accessible through their web interface.

[-] [email protected] 27 points 1 month ago

Many hosting providers have a remote console feature.

[-] [email protected] 31 points 1 month ago
[-] [email protected] 15 points 1 month ago

Fuck, that is really good wordplay.

[-] [email protected] 27 points 1 month ago* (last edited 1 month ago)

Don't practically all commercial hosting providers provide remote console access?

This seems a combo of an extremely newb mistake in an extremely unusual scenario - worthy of Gru I guess.

[-] [email protected] 46 points 1 month ago

Physical, on premises servers are still a thing.

load more comments (13 replies)
[-] [email protected] 9 points 1 month ago* (last edited 1 month ago)

Yeah, all the ones I've used had remote access

[-] [email protected] 27 points 1 month ago

Most secure box is the one that does nothing.

[-] [email protected] 26 points 1 month ago* (last edited 1 month ago)

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.

load more comments (2 replies)
[-] [email protected] 17 points 1 month ago

That the slrpnk.net admins in the picture?

[-] [email protected] 13 points 1 month ago

They had a hardware failure but close enough

load more comments (3 replies)
[-] [email protected] 17 points 1 month ago

I'll always be grateful for the firewalls like OpenWRT that will automatically revert any changes if you don't log back in after a few minutes (at least on the web interface). I'm not proud of how many times that's saved me.

[-] [email protected] 14 points 1 month ago

This is the NetAdmin's problem. And he's got 3 ways to get into the datacenter, so he goddamn well better have an answer that doesn't involve airfare. Worst case, he's gotta use remote hands, but that would be embarrassing, and I'd not let him forget it. Nobody forgives me when I screw up a server cluster, so he gets no latitude when he takes a datacenter offline.

[-] [email protected] 11 points 1 month ago

Does it actually happen to people? All servers I worked with both had a back door (or two), and someone at the data centre (during work hours at least) you could contact in an emergency.

[-] [email protected] 8 points 1 month ago

I guess some smaller companies might have simpler setups they self-host

[-] [email protected] 7 points 1 month ago

Most data centers have some kind of service where you can request a KVM to be connected to the server. It's not instant as an actual human has to do so but a lot sooner than another human driving long distance. I guess in this case, it's a mid size company that is big enough to have multiple locations yet small enough to still manage to use on-premise infra instead of data centers.

load more comments (2 replies)
[-] [email protected] 10 points 1 month ago

I try to remember to always open two SSH connections when altering iptables or the ssh config - just in case

[-] [email protected] 9 points 1 month ago

this sounds like something chip from sales would do

load more comments (2 replies)
[-] [email protected] 8 points 1 month ago

This is precisely the problem that deploy-rs solves!

load more comments (7 replies)
load more comments
view more: next ›
this post was submitted on 05 Aug 2025
1300 points (99.2% liked)

Programmer Humor

26407 readers
922 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