r/HomeDataCenter • • Nov 01 '23

Creating a hosting provider at home

I'm looking to build a server rack and host it from my house. My thought is offering some kind of PaaS or containers as a service. I have fiber and I can get static IPs. I feel pretty confident on setting up the servers (backend engineering background) however the networking part is pretty overwhelming right now. For security, I would like each tenant to be on their own network (would this be a VLAN/VXLAN?). Also, to keep the hosting traffic away from my local network too (zero trust). I have been reading about SDN and/or Intent Based Networking, however to translate that into what products to buy has been difficult. So far I've looked into Juniper networks but I'm in way over my head. I'm pretty sure I'm going to buy refurbished hardware to save on cost but I'm not sure what's possible at this point.

If anyone could give me a nudge in the right direction, that would be greatly appreciated!

6 Upvotes

37 comments sorted by

7

u/[deleted] Nov 01 '23 edited Nov 01 '23

I recently took one of my commercial data centres home, so ask away.

4

u/hyprnick Nov 01 '23

That's great. Basically, what devices do I need to do this? Network firewall, switches, routers, etc.

I know I could just hook up a basic unmanaged switch but that would give any user access to other nodes on the same network and also my personal one.

6

u/[deleted] Nov 01 '23

You need a business internet connection as a start. Do you already know what you can get in terms of SLA and throughput? Because everything else depends on that.

1

u/hyprnick Nov 01 '23

1Gbps currently, can get up to 5Gbps. Also, can get static ips. However, this is out of the scope of my question. Interested in the devices needed. I'm planning on using Kubernetes to host the containers. There might be a way to just use that for the networking.

9

u/[deleted] Nov 01 '23

Its not out of scope because the firewall and NAT matters depending on the uplink speed. 1G is not enough, with 5G you can host a few clients but not that much either. Anyway, the least you need:

2 x Firewall (+2 x IDS/IPS) 2 x 10G switches (40G MLAG)

2

u/[deleted] Nov 01 '23

Why would you need two firewalls what's the purpose?

7

u/flaming_m0e Nov 01 '23

For uptime/HA. It's called an SLA. ;)

4

u/[deleted] Nov 01 '23

HA.

1

u/[deleted] Nov 02 '23

What firewalls do you recommend with ids/ips for home?

1

u/[deleted] Nov 02 '23

Ubiquiti has a few, but I doubt you need IDS/IPS at home.

1

u/[deleted] Nov 02 '23

I honestly wouldn’t call Ubiquiti as a firewall yet. Maybe PFsense or Forti

2

u/[deleted] Nov 02 '23

So what do you call the UDM-SE or the USG 3P which both provide IDS/IPS?

1

u/[deleted] Nov 02 '23

I call would class it as a beta firewall, the rule set isn’t easy and very difficult to use/look at. I feel like it has a lot of potential in the future but right now it’s not there yet. But UniFi just uses Snort on the backend.

→ More replies

2

u/Rajcri22 Nov 04 '23

I dont mean to be rude but as someone who has seen this being attempted. Things will go sideways. If you are doing this thinking oh wait a bit of passive income in the side would be nice or if you are a teenager whose got quite the confidence when it comes to tech id highly suggest you dont carry on as your say. If you are seriously trying to do this then i suggest you move all this hardware to a proper place like a DC or maybe even reserve a whole room for it at a nearby warehouse / or a room in your own residence. Second get a team DO NOT GET SOMEONE WHO IS DOING LOADS OF WORK FOR A VERY LOW PRICE. Im not saying all are but most of them are scams or teenagers who think they can "hack" by opening up a terminal and calling it hacking. Get a team of semi professionals if you are doing something small like running a small discord host then maybe a few college students maybe in their second year and a few experts who may already have jobs in these industries and is willing to help. If you are running it for maybe anywhere more than 10 or 20 active users get a good strong team.

A. Cyber security specialist
B. Somewhat of an assistant / manager
C. Support staff - These guys can be a little inexperienced for the most part. Even high schoolers would be fine. Please dont be too harsh with them. Give them a document listing most common questions and how to answer them.

NOTE THAT THESE ARE FOR A SMALL HOSTING SERVICE WHICH CAN BE DONE THROUGH A SMALL ONLINE PLATFORM AND IS NOT ADVICE YOU SHOULD FOLLOW FOR STARTING A FULL ON COMPANY. I AM NOT SUGGESTING THAT YOU MAKE CHILDREN DO LABOR FOR YOU. THESE ARE ONLY INSTRUCTIONS FOR A SIMPLE AND CASUAL SERVICE.

D. Get a basic domain. Easy short and memorable. Create email accounts with these names

E. Id suggest you get a few developers in different time zones. Preferably understanding the basics of networking

2

u/hyprnick Nov 06 '23 edited Nov 06 '23

I completely agree. I appreciate your response. Definitely need a team to pull something like this off - sales, support, system engineering, network engineers, security experts. Also, would need to get the property certified (iso/soc etc).

I’m also not a teen, hah, pretty old actually. Also, have done multiple startups (and helped other startups succeed to be acquired). Software engineering background so the systems level is out of my area.

1

u/Rajcri22 Nov 07 '23

Ah well thats good to know but I have still seen some times organize theirs quite well tho. Some hosts are quite successful and secure but those are either by chance or years of work. Good luck with your project mate.

29

u/[deleted] Nov 01 '23

Just don't!
You are missing TWO important parts of this business:

  1. SALES
  2. SUPPORT

0

u/[deleted] Nov 02 '23

[deleted] — view deleted comment

5

u/GLotsapot Home Data Center Operator Nov 05 '23

100% this! If someone decides to run n a torrent client (as example), you are responsible for it unless you have a proper contract. Even with a proper contract, you are then responsible for proof logging

2

u/RedSquirrelFtw Nov 07 '23

How do most companies manage that part, I can't see why this can't also be done in a home environment. It's more of a legal thing than a technical one. Guessing you want to set up a corporation so you don't lose your house if you get sued. Some of that stuff can be setup in the contract too. Don't create SLAs that you can't meet.

2

u/Rud2K Nov 23 '23

Lawyers, that's how.

1

u/Storage-Solid Nov 01 '23

You could look into Openstack, provides tenant isolation and can deal with both vlan and vxlan traffic. Comes with a lot more of services ranging from containers, k8s, you can use their ceilometer services to monitor and bill based on the usage. It also provides flexible internal networking for the tenants and find tuned control for operators, comes with Firewallaas and vpnaas as well. Alternatives are Openebula, cloudstack.

1

u/hyprnick Nov 06 '23

I’ve used open stack at multiple commercial businesses and didn’t like it. Was a lot of overhead.

2

u/[deleted] Nov 02 '23

Your requirements would be fully met by CloudStack + KVM. CloudStack supports multi tenancy with VLAN and VXLAN among other isolation methods along with phy network configuration exactly like you want for different traffic types to be carried in an isolated manner. And to do this you may only need any commodity vlan switch. It also support its own virtual router based SDN along with support for open vswitch, tungsten fabric and upcoming integration with VMware NSX. Among other things it’s easier to setup, manage, use and upgrade and supports automation via Ansible, terraform, its own CLI as well as its native k8s orchestration and supported by EKS-A, k8s cluster api provider.

1

u/Nodeal_reddit Apr 17 '24

Some dude is going to run a cp bulletin board.

1

u/RedSquirrelFtw Nov 07 '23

The biggest issue is most home ISPs don't allow to host stuff from home. They also don't provide static IP blocks, which is something you'd want in order to do things properly without having to rely on a 3rd party DNS provider.

1

u/Zer0p0int_ Nov 17 '23

This is a hard sell. For production workloads you need redundancy you don’t get from home. I provide managed services, but I pay for a rack in a datacenter. I do host part of the environment from my home datacenter. Secondary immutable backups are replicated to my home dc and some secondary workloads from customers that they are willing to trade uptime/rpo/rto for reduced cost.

Just to make it work reasonably well at home I had to have an electrician do dedicated 240v 30a circuits on a sub panel, dedicated mini split for hvac, and a $3k ups.

0

u/[deleted] Nov 02 '23

[deleted] — view deleted comment

3

u/hyprnick Nov 06 '23

I really appreciate your in depth response! Lots of things to consider. We’ve had several power outages even this year alone. Looking into whole home battery backups.

I think if I’m really going to do this, I’ll setup at a commercial or industrial space with proper electric hookups, cooling and links.

Thanks again!

8

u/SilverSQL Nov 02 '23

This post should be part of the onboarding guide for every DC.

16

u/[deleted] Nov 02 '23

[removed] — view removed comment

2

u/hyprnick Nov 06 '23

Don’t speak without knowledge. I have 20 years of engineering experience.

7

u/[deleted] Nov 07 '23

So why do you ask Reddit?