My journey into homelabbing
Linux on Apple Silicon
At the end of 2025, I bought a new laptop, and I wanted to put my old M1 MacBook Pro to use. I decided to install Linux on it since I wanted to play around with a new OS.
I discovered the Asahi Linux Project, where you can boot Fedora Asahi on Apple Silicon. Looking at the Feature Support, most features were supported on the M1. The installation process was straightforward since the bootstrap installer did most of the work.
Fedora ships with Security-Enhanced Linux (SELinux) enforcing, which has strict access control policies. My Docker containers couldn’t read their mounted folders until I added :Z to the volume mounts.
Starting the homelab
As a Software Engineer, how could I use my skills for the people in my life? I discovered Pi-hole, a lightweight DNS server that blocks ads by refusing to resolve ad and tracker domains. So I created a /opt/pi-hole/docker-compose.yaml file, and ran the containerized DNS server. However, this was where I ran into my first problem.
Pi-hole listens on port 53 at my computer’s private IP. To get my other devices to use Pi-hole as their DNS, I would have to manually change the DNS on each device. A second problem was that the private IP of the computer changes! Even if I hardcoded the IP manually, it would change again. The solution was to configure a static IP on the computer, so it never changes. As for the first problem, I would have to access the router admin panel and set my computer’s IP as the DNS server.
The ISP in Nepal does NOT give router admin panel access to users :(
I ended up just manually hardcoding the DNS on everyone’s devices. At this point, since this computer became a server, it was plugged in to an outlet 24/7 and I didn’t want to physically access it every time.
Reaching the server from anywhere
I wanted to access the terminal of my server anywhere. So I set up Tailscale VPN. I did look into self-hosting Tailscale with Headscale, but I didn’t mind Tailscale seeing metadata about my devices, since it can’t see my traffic. Each device on my Tailscale network had its own static private IP. While connected to the network, I could ssh into any device from any other device on the network. Also, I could use Pi-hole anywhere as long as I was connected to the VPN!
Breaking Cloudflare’s terms of service
My server was idle with only Pi-hole running, so I fell into the rabbit hole of self-hosting. I eventually set up the Arr Stack, a set of services (Prowlarr, Sonarr, Radarr, etc.) that work together to self-host your own media library. Everything was containerized and working perfectly on my home network and Tailscale network. Anyone on these networks could watch TV shows and movies that I was hosting, but I wanted anyone anywhere to be able to access them through the Internet.
I bought a website domain from Cloudflare and created a Cloudflare Tunnel, which routes traffic from my website to my homelab without opening any ports on my router. Now anyone with authorization can stream my media from the Internet.
However, Cloudflare’s terms of service don’t allow serving mostly video through their network, and video was nearly all of my traffic. I needed a lightweight server with a public IP that could forward that traffic to my homelab. I ended up getting the smallest VPS and a public IP from Hetzner. I routed my website domain to the public IP of this server, added it to the Tailscale network, and ran Caddy as a reverse proxy to forward requests to my homelab over Tailscale.
Running out of disk space
After moving to London, I had another old i5 Intel MacBook Pro, which I wiped and installed Ubuntu 24.04 on. Compared to my Fedora Asahi installation, this was much more complex since I had to manually partition the disk and boot the installer from a USB drive. I installed the exact same setup on this computer (in hindsight I should’ve used Ansible to automate setup).
This new server had only 256GB of disk space, and I wanted to migrate all my media to this server since it was geographically closer to more of my users than the server in Nepal. I needed an external storage mount.
My first instinct was to get a hard drive, but they usually come with a few TB of storage. After consulting with coworkers, I decided to get a 2-bay Terramaster DAS. I picked 2 bays so I could set up RAID in the future, and a DAS takes standard SATA hard drives, which come in sizes from 2TB to 32TB. I rsynced all the existing files and this became my primary media server.
The Nepal server still runs Pi-hole and the same stack, with a few leftover media files. Both servers run Uptime Kuma and health check each other over Tailscale, and I get a Facebook Messenger notification when anything goes down.