October 31st, 2024
By the end of this lab, you will have built your own personal cloud consisting of a virtualization server, a security appliance to help ensure your network is locked down, a network switch virtualized into four separate virtual networks and an endless number of possibitlies for how to use your home lab. It's not much of a cloud if you don't have a presence on the web, so this lab will also include guidance on how to build a NextJS web app and deploy it on your own NGINX web server. Start thinking of a name for your cloud and review the rundown of required components listed below. Let's gear up and go!
Above you'll find our Home Lab network diagram. Typical home internet setups include the first two components closest to the internet: a modem and a router. Oftentimes, those devices are combined into one single modem/router appliance and provided by your internet provider, but everybody's situtation is different. Either way, the lion's share of work we'll be working on will be our Netgate appliance and everything connected downstream from it.
Building a home lab is a lot of fun for you, but if you share an internet connection with others then you'll want to put your lab behind your shared Wi-Fi. Why? You will break your lab many times over as you build it out. That's why I chose to place my lab behind my router. With this design, I should never disrupt the home Wi-Fi because my router sits in front of my lab and the router is all my family needs to get online. If I break something in my lab, the home Wi-Fi keeps humming along. That said, you can also connect your Netgate appliance directly to your modem or ethernet internet handoff and place your wireless router behind your firewall. That would be a more secure design after all but, for now, let's focus on following the lab and being a good steward of the home Wi-Fi.
The lab environment we're going to build in this Home Lab series is something anybody can build in a few weekends. All it takes is a fairly-new computer, an internet connection, about $2-3K for lab gear and some patience. While $2-3K might sound pretty steep, building a home lab is, arguably, the most affordable way to learn tech because bootcamps, certifications, and degrees cost at least as much if not significantly more and with a home lab you're getting hands-on experience. Another benefit of building a home lab is that you own the environment and can use it in any way you wish. You could build your own online shop and run your own small business. You can use your lab to build your own production studio and run a legitimate YouTube channel. There are a ton of awesome things you can do once you have the right mix of tech in your home lab. Build yourself a lab. It'll be good for you!
The following hardware requirements must be met or exceeded to complete the lab:
The following software requirements must be met or exceeded to complete the lab:
The following service provided requirements must be met or exceeded to complete the lab:
Obviously, you need an internet connection if you're building your own cloud and want it to connect to something other than itself. For this lab, the type of internet connection you have shouldn't matter much, but what does matter is the type of IP address that you're issued, be it Static or Dynamic. A Static IP address will always be the same. A Dynamic IP address will eventually if not frequently change. So, if you have a Dynamic IP address issued by your Internet Service Provider, then you'll want to use Dynamic Domain Name System (DDNS) to keep keep your IP address updated with your web hosting provider. We will be using Cloudflare in this lab. If you choose another web hosting provider, just make sure that they have an API that allows you to use DDNS to update your web host with your IP address.