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

  • piefood@feddit.online
    link
    fedilink
    English
    arrow-up
    59
    ·
    22 hours ago

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

    sleep 300 && iptables-restore old_fw_rules.bak

  • randint@lemmy.frozeninferno.xyz
    link
    fedilink
    English
    arrow-up
    57
    ·
    24 hours ago

    Almost the same thing happened to me. I accidentally fucked up the internet connection in my home while in Japan, and I had to video call my mom to have her fix it. It was a pain for both of us, but thankfully it went rather smoothly. Thank you mom!

  • mavu@discuss.tchncs.de
    link
    fedilink
    arrow-up
    98
    ·
    1 day ago

    even worse. I regularly have to get up out of my chair and go down 2 stairs.

    Also this took a while to find, but : https://sourceforge.net/p/shorewall/svn/HEAD/tree/branches/4.2/Samples/one-interface/shorewall.conf

    ADMINISABSENTMINDED=Yes

    Is an actual setting in the config for the (now apparently unmaintained) Shorewall Firewall software/tool for linux.

    If I remember correctly, it always checks on firewall rule changes if there is an active connection on port 22, and adds a special rule at the end to maintain that connection.

    They don’t build them like they used to anymore.

    • Jankatarch@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      19 hours ago

      They don’t build them like they used to anymore.

      Well if we did, the way it works would be by telling a chatbot to enable ssh on port 22 at the end.

  • dbtng@eviltoast.org
    link
    fedilink
    English
    arrow-up
    14
    ·
    21 hours ago

    This is the NetAdmin’s problem. And he’s got 3 ways to get into the datacenter, so he goddamn well better have an answer that doesn’t involve airfare. Worst case, he’s gotta use remote hands, but that would be embarrassing, and I’d not let him forget it. Nobody forgives me when I screw up a server cluster, so he gets no latitude when he takes a datacenter offline.

    • qaz@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      60
      arrow-down
      1
      ·
      edit-2
      1 day ago

      I’d rather plug in a screen with VGA than deal with HPE iLO 4

      • dbtng@eviltoast.org
        link
        fedilink
        English
        arrow-up
        4
        ·
        21 hours ago

        I keep a Windows 2008 w Java 6 VM on ice for administering old Java console shit like that.
        The VM is unsafe as hell. Completely virgin unpatched. The only protection is that I don’t give it a gateway or dns, and I shut it down when its not in use.
        And it works. Old Java shit can still be used.

      • NeilBrü@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        20 hours ago

        Networking noob here, what, pray tell, is HPE iLO4… or do I want to even know?

        Edit: Never mind. Found it. HP… shudders

        • buttnugget@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          17 hours ago

          “In December 2021 Iranian researchers at Amnpardaz security firm have discovered rootkits in HPE’s iLO (Integrated Lights-Out) management modules.”

          Because of course lol

      • mkhopper@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 day ago

        To be honest, HPE iLO 6 isn’t too bad, if you’re using the GUI. It’s the API that remains really broken in many places.

      • Appoxo@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        21 hours ago

        Sounds like an issue draling with .NET or JRC console.
        Are you on the nosz up to date firmware?

        • qaz@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          20 hours ago

          I remember there being the option of using HTML or a Java applet, I chose the former

          • Appoxo@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            3
            ·
            19 hours ago

            If you have the HTML5 option you should be on a pretty recent firmware.

            Interesting that you’d prefer going (literally) analog connection rather than over the IPMI.

              • Appoxo@lemmy.dbzer0.com
                link
                fedilink
                arrow-up
                2
                ·
                10 hours ago

                You know, I wanted to say “Bet!” and proove your wrong as I couldnt believe they never went past 2023 for the firmware.
                Turns out that was the latest.

                But I do know they have more recent firmware uploads for the UEFI than 2023. ^(A year younger but no less nore recent/s)

  • medem@lemmy.wtf
    link
    fedilink
    arrow-up
    22
    ·
    edit-2
    1 day 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
      1
      ·
      21 hours 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.

  • Björn Tantau@swg-empire.de
    link
    fedilink
    arrow-up
    35
    arrow-down
    1
    ·
    1 day ago

    Classic.

    Love Hetzner. If something like that were to happen to me they can hook up a remote console accessible through their web interface.

  • A_norny_mousse@feddit.org
    link
    fedilink
    arrow-up
    30
    arrow-down
    3
    ·
    edit-2
    1 day ago

    Don’t practically all commercial hosting providers provide remote console access?

    This seems a combo of an extremely newb mistake in an extremely unusual scenario - worthy of Gru I guess.

      • A_norny_mousse@feddit.org
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        1 day ago

        Yes, I also used to run an “on premise” server - in my kitchen, not 500km away. I sometimes might need to admin it remotely, but never critical setup work.
        And the meme makes it sound like they have to drive there specifically to fix it, like nobody is actually living nearby.

        • Trainguyrom@reddthat.com
          link
          fedilink
          English
          arrow-up
          8
          arrow-down
          1
          ·
          edit-2
          24 hours ago

          I mean it’s a pretty realistic scenario. I happened to be the unlikely remote hands for the company I work for just a few weeks ago.

          Company: an industrial cleaning company with about 1500 AD users and about 8000 employees, historically had 2 corporate offices, currently has three as it’s transitioning one corporate office across the country

          Server and mistake in question: old admin who’s no longer with the company setup the ESXI 6.0 cluster in the server room at the office without documenting the root password to access it. This cluster happens to host the companies critical services including AD so being unable to access the host has been blocking the office migration. Old admin had also not fixed the ESXI backups which have been broken for over 3 years so no backups to restore from. Also the out of band access to the servers was never correctly setup

          I happening to be close to this office and having IT experience was poked to go in and with physical access to modify the shadow file and set the root password to be blank. Had I not been available they would have had to fly someone in from the office 2000 miles away or hire a very expensive local contractor to come in after hours to do the same thing

        • Anivia@feddit.org
          link
          fedilink
          arrow-up
          7
          arrow-down
          1
          ·
          1 day ago

          Well, I have my server running in my parents basement, because they have fiber, and I don’t.

          It’s not quite a 500km drive, but still a long enough distance for this scenario to be a major inconvenience.

          But since I have wireguard running on their router though this specific scenario is not something that could happen to me

          • buttnugget@lemmy.world
            link
            fedilink
            arrow-up
            2
            arrow-down
            1
            ·
            17 hours ago

            Wireguard is a VPN protocol, so you are able to tunnel into their router to…do what exactly?

              • buttnugget@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                2 hours ago

                Please forgive the ignorance here. What are you trying to do? I thought you were trying to reboot an offline server. I’m probably just confused!

        • Trainguyrom@reddthat.com
          link
          fedilink
          English
          arrow-up
          4
          ·
          24 hours ago

          Could be they were configuring the actual network firewall and got a couple of rules out of order so they blocked all of their out of band access

        • dbtng@eviltoast.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          21 hours ago

          I hate it when my boss says that. Or he will call it “D-RAC”. Annoys the hell out of me.
          It’s iDRAC.
          Yes, there are components that are called RAC, but the Dell out of band management system is called iDRAC.
          … but that’s not as dumb as when he calls the SuperMicro system “iLO”. That’s IPMI. We don’t even own any HPE. I’ve no idea why he’s stuck on iLO.

          • Atherel@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            2
            ·
            18 hours ago

            It’s iDRAC.

            I’d say that RAC is the overarching term for different Dell Solutions, see Dell Remote Access Configuration Guide

            DRACT supports the following types of RACs that support RACADM commands:

            • Integrated Dell Remote Access Controller 8 (iDRAC8)

            • Integrated Dell Remote Access Controller 7 (iDRAC7)

            • […]

            • Chassis Management Controller (CMC) for Dell PowerEdge M1000e and PowerEdge VRTX

            • […]

            And it’s just shorter and easier to say ¯\_(ツ)_/¯

            but that’s not as dumb as when he calls the SuperMicro system “iLO”. That’s IPMI. We don’t even own any HPE. I’ve no idea why he’s stuck on iLO.

            Perhaps his first encounter with remote management was with iLO and he just thinks that this is how it’s called. It’s “integrated Lights Out”, and “Lights-Out Management” as well as “Remote Access Controller” both are generic terms (and I suspect that this is why Dell adds an “iD” in front of its product names).

            But we are way to close to the “GNU/Linux Copypasta” than I would like.

            • dbtng@eviltoast.org
              link
              fedilink
              English
              arrow-up
              1
              ·
              14 hours ago

              Mmm. Ya ya. No argument. But its iDRAC. I’ve had to sit through enough propaganda. I’m pretty sure about this.