• DaPorkchop_ [any]@lemmy.ml
    link
    fedilink
    arrow-up
    136
    ·
    6 months ago

    if you can provide me a better way to keep my homelab from getting DDoSed every five minutes then by all means, please share it

    • wildbus8979@sh.itjust.works
      link
      fedilink
      arrow-up
      63
      ·
      6 months ago

      Just put it behind a wireguard server and don’t expose any ports?

      If you absolutely must expose some stuff, get a cheap 3$/mo vps that connects via wireguard to your home and setup a reverse proxy? They almost all come with DDoS protection.

      • purplemonkeymad@programming.dev
        link
        fedilink
        arrow-up
        18
        ·
        6 months ago

        As someone else who used to host via an open port, you get random connections all the time. Almost constantly and the request paths make it obvious they are scanning for vulnerabilities. Via cloud flare the number of those requests is much lower, as they have to know at least the DNS to do so, (and can’t guess it from a presented SSL cert.)

        • sobchak@programming.dev
          link
          fedilink
          arrow-up
          12
          ·
          6 months ago

          Yeah, I see random https and other connections all the time blindly scanning for vulnerabilities. Not enough to cause any real problems though. One time I publicly exposed redis or rabbitmq (can’t remember which) and didn’t set a password, so someone set a password for me :). That’s about the worst that’s happened to me.

      • DaPorkchop_ [any]@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        6 months ago

        It’s the reason I set up cloudflare in the first place, so yeah. I was getting SYN flood-ed to the point that my router would just crash almost immediately, and after rebooting it the attack would resume after a minute or two.

          • Alaknár@sopuli.xyzBanned
            link
            fedilink
            English
            arrow-up
            7
            ·
            6 months ago

            It’s a bit like saying “having a password on your account is fearmongering, why would anyone try to access your data”.

            It’s only fearmongering until you get attacked, and it’s already too late when you do. Better to be proactive.

            • Daniel Ares@federation.networkOP
              link
              fedilink
              arrow-up
              9
              ·
              6 months ago

              @Alaknar@sopuli.xyz @memes@lemmy.world Being proactive doesn’t mean you have to hide your personal service behind a billion dollar company. That is precisely the kind of overreaction triggered by fearmongering. If you don’t know how to secure access points or harden configurations, no service will be able to do it for you as if by magic. Not to mention your responsibility towards your users, who may not want to be tracked by a third-party company without their knowledge every time they visit your site (or half of the internet by now).

              • Alaknár@sopuli.xyzBanned
                link
                fedilink
                English
                arrow-up
                1
                ·
                6 months ago

                If you don’t know how to secure access points or harden configurations, no service will be able to do it for you as if by magic

                That’s the point. Cloudflare does this as if by magic.

                Not to mention your responsibility towards your users, who may not want to be tracked by a third-party company

                Cloudflare doesn’t track your users.

                As a sidenote - am I reading you correctly? Your main issue with Cloudflare is “they’re large”? Like, if they were “two dudes in a basement” and provided the same quality product as they do now, you’d be happy to use their service?

        • pulsewidth@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          6 months ago

          Get a router that has flood protection? This is like… Extremely basic network protection.

          OpenWRT has had configurable syn-flood protection (enabled by default) since like 2010.

          • DaPorkchop_ [any]@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            6 months ago

            Even if the SYN packets were being ignored, the connection would still be unusable if there’s enough incoming traffic for most legitimate packets to get dropped. And as mentioned in other comments, the router in question is a shitty ISP router which can’t be replaced (although I do have a much fancier router with OpenWRT running behind that).

    • daniskarma@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      15
      ·
      6 months ago

      Is you homelab getting ddosed constantly?

      I had had it for years and never ever got ddosed.

      Are you sure it’s actually ddos and not just the typical bots scanning for vulnerabilities? Which are easy defended for by keeping updated.

      It’s weird as a DDOS is not something that’s just happens, it’s a targeted attack. It’s a rare occurrence that someone decided to attack a homelab.

      • DaPorkchop_ [any]@lemmy.ml
        link
        fedilink
        arrow-up
        8
        ·
        6 months ago

        I spent multiple days getting SYN flooded to the point my router would crash and reboot over and over, and it stopped the moment I set up cloudflare and asked my ISP to change my IP. This was the instance which pushed me over the edge, but there had been smaller attacks lasting a few minutes each for years leading up to this.

        • Gagootron@feddit.org
          link
          fedilink
          English
          arrow-up
          11
          ·
          6 months ago

          What kind of router to you have? A good router should not crash from any amount WAN traffic. But yes, if you host anything you will get scanned even harder than usual.

            • pulsewidth@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              6 months ago

              Where are you? I bet there’s at least a few local ISPs that would allow you to use a user-supplied router.

              • DaPorkchop_ [any]@lemmy.ml
                link
                fedilink
                arrow-up
                3
                ·
                6 months ago

                There are better ISPs around, but my parents (who are the ones paying for it) don’t want to switch providers because… reasons? At any rate it isn’t happening any time soon, but once I move out I’ll finally be able to switch to Init7 and be done with it all :)

            • Gagootron@feddit.org
              link
              fedilink
              arrow-up
              1
              ·
              6 months ago

              Maybe you can enable bridge mode on it? Then you could run something like opnsense behind it.

              • DaPorkchop_ [any]@lemmy.ml
                link
                fedilink
                arrow-up
                2
                ·
                6 months ago

                It’s only got a DMZ mode where I can configure it to forward all incoming traffic to my own router running behind it, but even in that mode it still has to NAT all the packets. IPv6 traffic seems to get forwarded along without much (if any) additional processing, but for hosting stuff publicly I would obviously need to expose IPv4 as well.

        • mlg@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 months ago

          fail2ban is good for preventing spam and DDOS on authenticated endpoints, but it’s harder to prevent attacks on public endpoints against a botnet or even a lazy proxy chain spam, which is why cloudflare adds some cookies and a buffer to handle a wave of new connections and maintain an address rank to drop any bad clients.

          Although that being said, cloudflare can be bypassed via other timing tricks and even just using a specific request chain to get fresh cf cookies to avoid getting blocked.

    • lefixxx@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      6 months ago

      i dont understand why people hate cloudflare so much. Do they see the cloudflare logo when a server is down and assume its CFs fault?

    • ne0phyte@feddit.org
      link
      fedilink
      arrow-up
      68
      ·
      6 months ago

      About 20% of global traffic is routed through Cloudflare so unfortunately Cloudflare is very much a massive case of centralization.

      A Cloudflare outage would affect a huge number of websites and services and they have some degree of control over the way you host your and use their services.

      • skepller@lemmy.world
        link
        fedilink
        arrow-up
        36
        ·
        6 months ago

        Yeah, did people forget the last big Cloudflare outage already? A good chunk of all big services went down simultaneously. Discord, Amazon, Twitter and even the PS and Xbox consoles networks lmao.

      • InFerNo@lemmy.ml
        link
        fedilink
        arrow-up
        14
        ·
        6 months ago

        How long before a website not behind something Cloudflare is considered suspicious or unwanted

          • yamamoon@lemmings.worldBanned
            link
            fedilink
            arrow-up
            2
            ·
            6 months ago

            It’s definitely speculation, but I’d say it’s warranted.

            The same thing applies when trying to sign up for a service without a big-name email address.

  • Lena@gregtech.eu
    link
    fedilink
    English
    arrow-up
    20
    ·
    6 months ago

    Though I’m not a big fan of centralization, I use cloudflare. Their DDoS protection is unmatched, they have scraping protection, and just in case they decide to screw their users over, switching to another service is trivial.

  • winter (she/it)
    link
    fedilink
    English
    arrow-up
    6
    ·
    6 months ago

    I mean I don’t really have a choice because i don’t see a better way to put my home server on a url because I live in a dorm and can’t port forward or get a static ip

  • yamamoon@lemmings.worldBanned
    link
    fedilink
    arrow-up
    3
    ·
    6 months ago

    I unfortunately use cloudflare. They apparently charge the same price they pay for domain names.

    What better options do we have? I really want to know.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    I use Cloudflare Turnstile because hosting without it is just begging for bots to join my service.

  • NovaSel@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    Alright who actually ARE cloudflare? I’m seeing them on every website but idk who they are

  • Echo Dot@feddit.uk
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    Yeah well if it weren’t for all of the LLM bots and scrapers in general and of course all the Russian and Chinese hackers (they may mostly be script kitties, but they’re still annoying), we wouldn’t need cloud flare. But they do exist so we don’t really have a choice.