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

  • piefood
    link
    fedilink
    English
    028 days ago

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

    sleep 300 && iptables-restore old_fw_rules.bak

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