this post was submitted on 05 Aug 2025
24 points (100.0% liked)

Programmer Humor

27778 readers
1129 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
24
Peak security (lemmy.world)
submitted 4 months ago* (last edited 4 months 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 0 points 4 months ago (1 children)

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

sleep 300 && iptables-restore old_fw_rules.bak

[–] Itdidnttrickledown@lemmy.world 0 points 4 months ago (1 children)

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

[–] piefood@feddit.online 1 points 4 months ago* (last edited 4 months 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!