Today, like the past few days, we have had some downtime. Apparently some script kids are enjoying themselves by targeting our server (and others). Sorry for the inconvenience.

Most of these ‘attacks’ are targeted at the database, but some are more ddos-like and can be mitigated by using a CDN. Some other Lemmy servers are using Cloudflare, so we know that works. Therefore we have chosen Cloudflare as CDN / DDOS protection platform for now. We will look into other options, but we needed something to be implemented asap.

For the other attacks, we are using them to investigate and implement measures like rate limiting etc.

    • EatMyDick@lemmy.world
      link
      fedilink
      English
      arrow-up
      90
      arrow-down
      5
      ·
      1 year ago

      Nothing. DDoS mitigation is inherently an ISP or someone like cloudflare. You will not have success against anybody who knows what they are doing without their help.

      • PropaGandalf@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        32
        ·
        1 year ago

        This is bullshit. Just take this as an example. I found it with one quick search and there are plenty more. Perhaps we should broaden our horizons a little rather than entrusting everything to some corpos.

        • TheBeege@lemmy.world
          link
          fedilink
          English
          arrow-up
          63
          arrow-down
          1
          ·
          1 year ago

          My dude, I think you’re not super familiar with these technologies.

          The most basic form of a content delivery network is a set of globally distributed servers that replicate content from a source of truth and a network to direct traffic to the closest server with a valid replica. So the cost here is servers.

          With Lemmy, this problem is solved by eliminating the need for individuals to own many servers and a lack of need for trust between servers. The effort and cost is distributed among individual humans, making it manageable.

          Now, if you’re familiar with blockchain, you probably perked up when you heard “lack of need for trust.” That’s what the blockchain was built for! Perfect fit, right? Ehh, not so much.

          There’s two problems: acting as a proxy for content requires trust, and some single service needs to direct clients to the right local server. If I can arbitrarily join some network of serving content, I can always tell other servers in the network that I’m serving what they ask… and then serve ads. There’s no (reasonable and fast) way for the network to verify that I’m serving the correct content to every client. There’s no way to avoid the need for trust. Additionally, DNS, which directs you from mysite.com to 120.1.2.1, isn’t intelligent. It can’t direct clients to a geographically (or route-efficient, fucking ISPs) local IP. The best it can do is pick a random one from the pool. So when you go to lemmy.world, DNS can’t pick the correct server for you. So some set of servers needs to do the logic to select which local server to actually get content from. Those servers need to be central for the whole content delivery network.

          This company you linked is just another company using “blockchain” to get investment money. If you read through their page to get a cursory understanding of how things work, an easy question comes up: what is the purpose of media tokens? Sure, maybe you can buy CDN time with it, but when you pay that token to someone providing compute… what do they do with that token? It’s worthless, just like crypto currency. Fucking scams. All that said, blockchain is a super, super interesting technology. There’s just very, very few suitable applications of it.

          I’ve worked in IT for about 12 years now. Everything from infrastructure monitoring to data analysis to data engineering to DevOps to backend engineering to product management. I’ve worked with systems serving tens of users and tens of millions of users. Happy to answer any questions. I love this shit.

          If someone could figure out a trustless, decentralized way to implement a CDN, I’d eat that up in a second, but with my current understanding of the internet and available technologies, I don’t see a way it can work. At least, not with making every web page take >3s to load, which would absolutely kill websites.

          • bennysp@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Two things:

            Isn’t there always trust issues though? Also, could SSL passthrough help in that?

            Instead of CDN for protection, couldn’t a local WAF help solve this too?

          • PropaGandalf@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            7
            ·
            1 year ago

            I could a agree with the first part and it does not contradict with the idea of a distributed network for content saving. Think about it this way. Instead of one big local server farm you have multiple small local servers which together form a global network. Now we come to the blockchain. As you pointed out you get these tokens for the CDN time the storage or more generally the server operation costs. Of course the blockchain these tokens are hosted on (Solana) do have to be trustworthy (which in this case they may not be. I don’t like solana that much either). But does that mean that this could not be achieved? It seems logical to me that with a distributed storage and computing network something like this could be achieved very efficiently and cheaply. Heck I’m using a decentralized VPN right now that works with the same principles I mentioned. Or take the Helium network for example? Don’t you see the potential there? Like with all technology these things have to mature but with my understanding they are pretty much doable.

            • Maiznieks@lemmy.world
              link
              fedilink
              English
              arrow-up
              7
              ·
              1 year ago

              Sure, its doable, but if we return to OP issue, is it available and usable now? If there’s a service provider I’d trust to do this, it’s CF, they have a good, solid product and they have not given a reason to doubt their business ethics yet.

            • robigan@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              1 year ago

              They exist sure, but as others have said, there’s still a lot of links in the chain to smooth out. And for a mission critical application like this you’ll always want to chose the most stable offering.

              • PropaGandalf@lemmy.world
                link
                fedilink
                arrow-up
                2
                arrow-down
                7
                ·
                1 year ago

                That’s the first reasonable argument. That’s also why I said that we should stick with cloudflare for now but I’d love to see something more decentralized and open in the future.

    • PropaGandalf@lemmy.world
      link
      fedilink
      English
      arrow-up
      21
      arrow-down
      84
      ·
      1 year ago

      Well for now we’ll have to stick around with cloudflare. I’d just would like to see something managed by a decentralized network. I don’t know if it exists, it’s more of a sentiment or a general idea.

      • woelkchen@lemmy.world
        link
        fedilink
        English
        arrow-up
        18
        ·
        1 year ago

        I think the biggest problem with such services is that they require lots of money to run which means that any well-meaning effort will eventually end up becoming a commercial service.

        • PropaGandalf@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          15
          ·
          1 year ago

          …and that’s where the blockchain comes in. This means that the individual contributions of the node operators can be directly recorded and compensated adequately.

            • PropaGandalf@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              10
              ·
              1 year ago

              Tell me a good argument why not? How would you reward those people that contribute to said netowork?

              • woelkchen@lemmy.world
                link
                fedilink
                English
                arrow-up
                6
                ·
                1 year ago

                Tell me a good argument why not?

                The downsides of blockchain / cryptocurrency are well documented at this point.

                • PropaGandalf@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  arrow-down
                  8
                  ·
                  edit-2
                  1 year ago

                  Yeah sure like with centralized solutions and big corpos too. What kind of argument is that?

                  • woelkchen@lemmy.world
                    link
                    fedilink
                    English
                    arrow-up
                    4
                    ·
                    1 year ago

                    Yeah sure like with centralized solutions and big corpos too.

                    The alternative to big corporations is not blockchain.

                    What kind of argument is that?

                    A better than “…and that’s where the blockchain comes in.”

                    I’m not discussing with a crypto bro about the already well documented downsides. Use a web search engine of your choice to look them up yourself.

      • Beetschnapps@lemmy.world
        link
        fedilink
        arrow-up
        18
        arrow-down
        1
        ·
        1 year ago

        It’s an interesting question but the knee jerk reaction towards decentralization isn’t always a silver bullet. Bitcoin always screamed that concept while ignoring the role of clearinghouses. Decentralization can actually compound the issue. Not to dispel the solution but good to keep these things in mind.

        • PropaGandalf@lemmy.world
          link
          fedilink
          arrow-up
          4
          arrow-down
          6
          ·
          1 year ago

          It isn’t a silver bullet but in this case it is particularly suitable. I mean, the architecture of CDN is decentralised, but all these servers are controlled by ONE company. So why not leave the whole task to an independent network?

      • johntash@eviltoast.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        You’re being down voted, but a p2p cdn is something that sort of already exists. IPFS is probably the most mature. As far as I know, it’d only work for static content though. It’s also an entirely different protocol so you’d have to use some sort of local gateway or plugin to make use of it.

        I have several vms and dedicated servers that I sort of use as a DIY cdn. No where near as spread out or capable as something like cloudflare, but its also not incredibly expensive to do on a small low performance scale. DDOS mitigation is another story though, generally that is best handled by large networks that can soak up the throughput.