^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
[–] 72 points 1 year ago (8 children)

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

sleep 300 && iptables-restore old_fw_rules.bak

  • source
  • hideshow 8 child comments
  • [–] 35 points 1 year ago (3 children)
  • [–] 7 points 1 year ago (2 children)
  • [–] 6 points 1 year ago (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • [–] 15 points 1 year ago* (2 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!

  • source
  • parent
  • hideshow 2 child comments