I understand that people enter the world of self hosting for various reasons. I am trying to dip my toes in this ocean to try and get away from privacy-offending centralised services such as Google, Cloudflare, AWS, etc.

As I spend more time here, I realise that it is practically impossible; especially for a newcomer, to setup any any usable self hosted web service without relying on these corporate behemoths.

I wanted to have my own little static website and alongside that run Immich, but I find that without Cloudflare, Google, and AWS, I run the risk of getting DDOSed or hacked. Also, since the physical server will be hosted at my home (to avoid AWS), there is a serious risk of infecting all devices at home as well (currently reading about VLANS to avoid this).

Am I correct in thinking that avoiding these corporations is impossible (and make peace with this situation), or are there ways to circumvent these giants and still have a good experience self hosting and using web services, even as a newcomer (all without draining my pockets too much)?

Edit: I was working on a lot of misconceptions and still have a lot of learn. Thank you all for your answers.

  • poVoq
    link
    fedilink
    English
    591 year ago

    This is nonsense. A small static website is not going to be hacked or DDOSd. You can run it off a cheap ARM single board computer on your desk, no problem at all.

    • @BearOfaTime@lemm.ee
      link
      fedilink
      English
      -101 year ago

      What?

      I’ve popped up a web server and within a day had so many hits on the router (thousands per minute) that performance tanked.

      Yea, no, any exposed service will get hammered. Frankly I’m surprised that machine I setup didn’t get hacked.

      • poVoq
        link
        fedilink
        English
        211 year ago

        Don’t leave SSH on port 22 open as there are a lot of crawlers for that, otherwise I really can’t say I share your experience, and I have been self-hosting for years.

        • youmaynotknow
          link
          fedilink
          English
          21 year ago

          Am I missing something? Why would anyone leave SSH open outside the internal network?

          All of my services have SSH disabled unless I need to do something, and then I only do it locally, and disable as soon as I’m done.

          Note that I don’t have a VPS anywhere.

            • youmaynotknow
              link
              fedilink
              English
              2
              edit-2
              1 year ago

              My firewall, server, NAS and all my services have web GUIs. If I need SSH access all I have to do is enable it via web GUI, do what I need to, disable again.

              If push comes to shove, I do have a portable monitor and a keyboard in storage if needed, but have not had the need to use them yet.

          • poVoq
            link
            fedilink
            English
            51 year ago

            Some people want to be able to reach their server via SSH when they are not at home, but yes I agree in general that is not necessary when running a real home server.

            • youmaynotknow
              link
              fedilink
              English
              21 year ago

              Yeah, I guess I’ve never needed to do that. That may change as I’m thinking of moving all my services from UnRaid to ProxMox to leave UnRaid for storage only.

              I guess that’ll bring me back here soon enough.

      • @Count042@lemmy.ml
        link
        fedilink
        English
        71 year ago

        I’ve been self-hosting a bunch of stuff for over a decade now, and have not had that issue.

        Except for a matrix server with open registration for a community that others not in the community started to use.

        • @Auli@lemmy.ca
          link
          fedilink
          English
          11 year ago

          Yes my biggest mistake was leaving a vps dns server wide open. It took months for it to get abused though.

  • @traches@sh.itjust.works
    link
    fedilink
    English
    221 year ago

    Use any old computer you have lying around as a server. Use Tailscale to connect to it, and don’t open any ports in your home firewall. Congrats, you’re self-hosting and your risk is minimal.

    • @OpossumOnKeyboard@lemmy.world
      link
      fedilink
      English
      21 year ago

      Exactly what I do and works like a dream. Had a VPS and nginx to proxy domain to it but got rid of it because I really had no use for it, the Tailscale method worked so well.

  • @Darkassassin07@lemmy.ca
    link
    fedilink
    English
    201 year ago

    Drink less paranoia smoothie…

    I’ve been self-hosting for almost a decade now; never bothered with any of the giants. Just a domain pointed at me, and an open port or two. Never had an issue.

    Don’t expose anything you don’t share with others; monitor the things you do expose with tools like fail2ban. VPN into the LAN for access to everything else.

  • @JigglySackles@lemmy.world
    link
    fedilink
    English
    151 year ago

    DDOS against a little self hosted instance isn’t really a concern I’d have. I’d be more concerned with the scraping of private information, ransomware, password compromises, things of that nature. If you keep your edge devices on the latest security patches and you are cognizant on what you are exposing and how, you’ll be fine.

  • @Auli@lemmy.ca
    link
    fedilink
    English
    151 year ago

    The DDOSED hype on this site is so over played. Oh my god my little self hosted services are going to get attacked. Is it technically possible yes but it hasn’t been my experience.

    • @tills13@lemmy.world
      link
      fedilink
      English
      21 year ago

      99% of people think they are more important than they are.

      If you THINK you might be the victim of an attack like this, you’re not going to be a victim of an attack like this. If you KNOW you’ll be the victim of an attack like this on the other hand…

      • Psychadelligoat
        link
        fedilink
        English
        01 year ago

        Many of us also lived through the era where any 13 year old could steal Mommy’s credit card and rent a botnet for that ezpz

        My MC server a decade ago was tiny and it still happened every few months when we banned some butthurt kid

    • @markstos@lemmy.world
      link
      fedilink
      English
      21 year ago

      DDoSing cost the attacker some time and resources so there has to something in it for them.

      Random servers on the internet are subject to lots of drive-by vuln scans and brute force login attempts, but not DDoS, which are most costly to execute.

  • @Evotech@lemmy.world
    link
    fedilink
    English
    141 year ago

    A VPS with fail2ban is all you need really. Oh and don’t make ssh accounts where the username is the password. That’s what I did once, but the hackers were nice, they closed the hole and then just used it to run a irc client because the network and host was so stable.

    Found out by accident, too bad they left their irc username and pw in cleartext. Was a fun week or so messing around with their channels

    • @Auli@lemmy.ca
      link
      fedilink
      English
      11 year ago

      Exactly piss off a script kiddie and get ddosed weather your self hosting or not.

  • @Apollo2323@lemmy.dbzer0.com
    link
    fedilink
    English
    91 year ago

    Hey no to be harsh or anything but did you actually made your research? Plenty of people self host websites on their house without AWS , Google or Cloudfare and it works fine.

  • @HumanPerson@sh.itjust.works
    link
    fedilink
    English
    91 year ago

    You can. I am lucky enough to not have been hacked after about a year of this, and I use a server in the living room. There are plenty of guides online for securing a server. Use common sense, and also look up threat modeling. You can also start hosting things locally and only host to the interwebs once you learn a little more. Basically, the idea that you need cloudflare and aws to not get hacked is because of misleading marketing.

    • @Auli@lemmy.ca
      link
      fedilink
      English
      21 year ago

      Man if your lucky enough after a year I must be super duper lucky with well over a decade.

  • @Confused_Emus@lemmy.world
    link
    fedilink
    English
    71 year ago

    I host a handful of Internet facing sites/applications from my NAS and have had no issues. Just make sure you know how to configure your firewall correctly and you’ll be fine.

  • qaz
    link
    fedilink
    English
    6
    edit-2
    1 year ago

    You can simply set up a VPN for your home network (e.g. Tailscale, Netbird, Headscale, etc.) and you won’t have to worry about attacks. Public services require a little more work, you will need to rely on a service from a company, either a tunnel (e.g. Tailscale funnel) or a VPS.

      • qaz
        link
        fedilink
        English
        11 year ago

        No, I’m currently using Tailscale but have been considering switching to Netbird to not be reliant on Tailscale.

    • @Catsrules@lemmy.ml
      link
      fedilink
      English
      2
      edit-2
      1 year ago

      Public services require a little more work, you will need to rely on a service from a company, either a tunnel (e.g. Tailscale funnel) or a VPS.

      I have been hosting random public services for years publicly and it hasn’t been an issue.

      Edit, I might have miss understood the definition of public. I have hosted stuff publicly, however everything was protected by a login screen. So it wasn’t something a random person could make use of.

  • @kylian0087@lemmy.dbzer0.com
    link
    fedilink
    English
    5
    edit-2
    1 year ago

    If you are afraid of being ddosed which is very unlikely. Cloudflare has free ddos protection. You can put some but not all things behind their proxy.

    Also instead of making things publicly available look in to using a VPN. Wireguard with “wireguard easy” makes this very simple.

    VLANs do not make you network magically more secure. But when setup correctly can increase security a load if something has already penetrated the network. But also just to streamline a network and allow or deny some parts of the network.

  • @octopus_ink@lemmy.ml
    link
    fedilink
    English
    5
    edit-2
    1 year ago

    I have servers on Digital Ocean and Linode and also one in my basement, and have had no problem. I do have all services behind NPM (not to suggest it’s a panacea) and use HTTPS/SSH for everything. (not to suggest HTTPS/SSH are either) My use case could be different than yours - my immediate family are my only consumers - but have been running the same services in those locations for a few years now without issue.

  • @just_another_person@lemmy.world
    link
    fedilink
    English
    41 year ago

    Firewall, Auth on all services, diligent monitoring, network segmentation (vlans are fine), and don’t leave any open communications ports, and you’ll be fine.

    Further steps would be intrusion detecting/banning like crowdsec for whatever apps leave world accessible. Maybe think about running a BSD host and using jails.

  • @BrianTheeBiscuiteer@lemmy.world
    link
    fedilink
    English
    41 year ago

    Other than the low chance of you being targeted I would say only expose your services through something like Wireguard. Other than the port being open attackers won’t know what it’s for. Wireguard doesn’t respond if you don’t immediately authenticate.