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

  • piefood
    link
    fedilink
    English
    621 day ago

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

    sleep 300 && iptables-restore old_fw_rules.bak

      • piefood
        link
        fedilink
        English
        8
        edit-2
        1 day 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!