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

  • medem@lemmy.wtf
    link
    fedilink
    arrow-up
    16
    ·
    1 day ago

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

    • dbtng@eviltoast.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day 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.