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

  • piefood@feddit.online
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days ago

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

    sleep 300 && iptables-restore old_fw_rules.bak

      • piefood@feddit.online
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        20 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!