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

Programmer Humor

25567 readers
182 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
1261
Peak security (lemmy.world)
submitted 4 days ago* (last edited 4 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
[–] piefood@feddit.online 71 points 4 days ago (2 children)

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

sleep 300 && iptables-restore old_fw_rules.bak

[–] eager_eagle@lemmy.world 34 points 4 days ago (1 children)
[–] Itdidnttrickledown@lemmy.world 7 points 3 days ago (1 children)
[–] eager_eagle@lemmy.world 10 points 3 days ago (1 children)

user permissions is a debian thing now?

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 3 days ago (1 children)

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

[–] piefood@feddit.online 13 points 3 days ago* (last edited 3 days ago) (1 children)

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 3 days ago (1 children)

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

[–] piefood@feddit.online 6 points 3 days ago

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