1256
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^

top 50 comments
sorted by: hot top controversial new old
[-] rmuk@feddit.uk 10 points 18 hours 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.

[-] piefood@feddit.online 69 points 2 days ago

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

sleep 300 && iptables-restore old_fw_rules.bak

[-] eager_eagle@lemmy.world 33 points 2 days ago
[-] Itdidnttrickledown@lemmy.world 7 points 2 days ago
[-] eager_eagle@lemmy.world 10 points 2 days ago

user permissions is a debian thing now?

[-] Itdidnttrickledown@lemmy.world 8 points 2 days 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.

[-] Itdidnttrickledown@lemmy.world 6 points 2 days ago

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

[-] piefood@feddit.online 13 points 2 days ago* (last edited 2 days 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!

[-] Itdidnttrickledown@lemmy.world 7 points 2 days ago

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

[-] piefood@feddit.online 6 points 2 days ago

Totally! I still catch myself doing that sometimes. Old habits die hard

[-] mavu@discuss.tchncs.de 109 points 2 days 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.

[-] Jankatarch@lemmy.world 9 points 2 days ago* (last edited 2 days 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.

[-] napkin2020@sh.itjust.works 147 points 2 days ago

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

[-] anomnom@sh.itjust.works 8 points 2 days 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)
[-] randint@lemmy.frozeninferno.xyz 65 points 2 days 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!

[-] buttnugget@lemmy.world 6 points 2 days ago

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

[-] randint@lemmy.frozeninferno.xyz 2 points 14 hours ago

So I connected through ssh back home to fiddle with the router settings, and in the PPPoE settings (where you set a pair of username and password that your router sends to the ISP such that the ISP knows you and knows what IP to assign to you) I made a typo, and apparently that instantly killed the internet connection at home and also for me. I had to call my mom to instruct her to fix the typo in the username. TBH I don't know that much about PPPoE either, I only do it so that the ISP assigns us the same IP address every time.

[-] Honytawk@feddit.nl 3 points 19 hours ago* (last edited 19 hours ago)

Most corporate network devices like Cisco will reset their config to the one written in memory when they lose power.

So in that case, just unplug and replug them to restore to previous config.

Just make sure you write your new config to memory or it will reset when there is ever a power failure.

[-] thatradomguy@lemmy.world 26 points 2 days ago

Most secure box is the one that does nothing.

[-] Evotech@lemmy.world 29 points 2 days ago
[-] supernight52@lemmy.world 15 points 2 days ago

Fuck, that is really good wordplay.

[-] null@lemmy.nullspace.lol 83 points 2 days ago

Doing this is a right of passage.

[-] palordrolap@fedia.io 121 points 2 days ago

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

[-] null@lemmy.nullspace.lol 127 points 2 days ago

Messing up the spelling is a wrong of passage.

[-] JackbyDev@programming.dev 11 points 2 days ago

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

load more comments (1 replies)
[-] inconceivable@feddit.org 71 points 2 days ago

Real servers have lights out management and management networks.

[-] qaz@lemmy.world 61 points 2 days ago* (last edited 2 days ago)

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

[-] bacon_pdp@lemmy.world 17 points 2 days ago

Serial terminal servers (sometimes called terminal console servers) are a thing for a reason.

load more comments (9 replies)

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

[-] bjoern_tantau@swg-empire.de 35 points 2 days 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.

[-] A_norny_mousse@feddit.org 27 points 2 days ago

Many hosting providers have a remote console feature.

[-] dbtng@eviltoast.org 14 points 2 days 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.

[-] medem@lemmy.wtf 26 points 2 days ago* (last edited 2 days 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 (1 replies)
[-] A_norny_mousse@feddit.org 27 points 2 days ago* (last edited 2 days 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.

[-] onslaught545@lemmy.zip 46 points 2 days ago

Physical, on premises servers are still a thing.

load more comments (13 replies)
load more comments (1 replies)
[-] clockworkrat@slrpnk.net 17 points 2 days ago

That the slrpnk.net admins in the picture?

[-] qaz@lemmy.world 13 points 2 days ago

They had a hardware failure but close enough

load more comments (3 replies)
[-] observantTrapezium@lemmy.ca 11 points 2 days 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.

load more comments (4 replies)
load more comments
view more: next ›
this post was submitted on 05 Aug 2025
1256 points (99.1% liked)

Programmer Humor

25531 readers
1564 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