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

  • medem
    link
    fedilink
    arrow-up
    26
    ·
    edit-2
    2 days ago

    Since that happens to the best of us, I envision writing a wrapper script around {n,}pfctl that asks for confirmation upon detecting that you’re logged in via ssh through a specific port AND detecting that the new rules would block that port.

    • dbtng@eviltoast.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      VMware does this with its virtual networking. If a change takes it offline, it automatically rolls it back. It can be frustrating at times, but mostly its saved my ass.

      • Honytawk@feddit.nl
        link
        fedilink
        arrow-up
        1
        ·
        6 hours ago

        Meraki does this as well. If you change anything that might disconnect the uplink or the port you are connected to, it gives you a pop-up warning before it commits.