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

  • mavu@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    20 days 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.

  • randint@lemmy.frozeninferno.xyz
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days 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!

      • balsoft@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        20 days ago

        It’s easy to write, easy to build, produces lightweight and fast executables, and the type system is great. Why not rust?

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

            A standard Docker container with a NodeJS/PHP/Python app is usually around 200-300 MB (yes really), the OpenJDK JVM is around a hundred MB, but a fully statically compiled rust binary that doesn’t even depend on libc is just a couple MB and can be deployed as a tiny distroless Docker container.

            It’s a lot heavier than your 8kb C++ executable but it’s nothing compared to what is required to deploy anything else.

          • grue@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            20 days ago

            Oh, so it’s inconvenient for GPL-circumventers, too? That just sounds better and better.

            • UpperBroccoli@lemmy.blahaj.zone
              link
              fedilink
              arrow-up
              0
              ·
              20 days ago

              To me, it is mostly a real blocker for using it in some embedded Linux devices due to size constraints, otherwise I personally would be using it extensively.

              • grue@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                edit-2
                20 days ago

                I’m having a hard time imagining this Goldilocks embedded device that is simultaneously big enough to run Linux (so not an actual microcontroller), yet too small for a few megabytes worth of statically-linked libraries. Got an example?

  • 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!

  • A_norny_mousse@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    21 days 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.