Plex on Proxmox: Your Movies on Your TV from an Old Server | Homelab From Scratch #3
Plex in a Proxmox container, locked down, with its own firewall, a name and a padlock, and the first movie on the living room Apple TV. Free at home, and no piracy.
The first service in a homelab should be one you notice in the living room, not just in a terminal. That’s why, after installing Proxmox and securing it, the first thing I set up on my old server was Plex: I grab the Apple TV remote, pick a movie, and it plays from a 2013 HP ProLiant sitting in my house. It feels like a streaming service, but I don’t pay any platform.
Installing Plex is easy. What most tutorials don’t tell you is where they fall short: many install it straight on the host, open its port on the router and reach it through an IP with no padlock. And there’s a mistake that’s easy to make if you’re coming from part 2: assuming the firewall we turned on there already protects your containers. It doesn’t.
This is part 3 of Homelab From Scratch, the series where I build a home lab one service at a time. It starts from the Proxmox server I locked down in part 2.
In this video
- Why Plex goes in an unprivileged container instead of directly on Proxmox.
- How to lock the container down in a few minutes, with the same steps as part 2.
- Why the Datacenter firewall doesn’t protect your containers, and how to turn on the container’s own.
- How to install Plex from its official repository and give it a name and a padlock with nginx.
- Where to get a movie without pirating anything, how to watch it on the Apple TV, and what’s free in Plex.
An apartment for Plex
My rule from part 2 still stands: if it’s a Linux service, it goes in a container (CT). It shares the host’s kernel, starts in seconds and uses very little. Plex is a Linux service, so I create a CT from the Debian 13 template I downloaded in the last video.
I leave it unprivileged, which is the default: that way, root inside the container isn’t root on the server. In the same wizard I give it a name, a long password and my YubiKey’s public key, so I can SSH in from the start.
For the disk I give it 500 GB, because the system and the movies both live there. On local-lvm the disk is thin: it only takes up what you write. If you need more space, you can add another drive to the server and give it to the container just for movies; the steps are on GitHub. Two cores and 2 GB of RAM are enough to start.
On the network tab I set a static IP and leave the Firewall checkbox ticked. Remember it: I’ll tell you why it matters further down.
Lock it down before opening any doors
The container is a fresh Debian install, so I lock it down the same way I locked down Proxmox in part 2, fast version:
- I update everything and create my user with
sudo. - I copy my YubiKey’s key to that user and log in with it.
- On SSH: no root and no passwords, only my user and a new port.
- fail2ban watching SSH.
To reach it by name instead of by IP, I point plex.itslucho.com to the container’s IP in my Mac’s hosts file, just like I did with Proxmox.
And one perk of a container: if you lock yourself out of SSH, the Proxmox console (or pct enter from the node’s shell) still lets you in.
The Datacenter firewall doesn’t protect your containers
This is the twist in the video. In part 2 we turned on the Datacenter firewall and gave it rules. But those rules, and their exceptions for managing Proxmox, are for the server. Every virtual machine and every container has its own firewall, and it comes turned off.

Think of it like an apartment complex: the main gatehouse guards the entrance, and that’s the Datacenter firewall. But your apartment’s door is up to you: you can leave it open or lock it.
I lock it, and I only let four ports through:
- SSH, on its new port.
- 80, only to send everything to 443.
- 443, to reach Plex by name, over HTTPS.
- 32400, Plex’s own port. That’s how the Apple TV connects: Plex apps on your network connect straight to that port, even with nginx in front.
Since this is my home network, the rules accept any source, and I don’t open any ports to the internet on the router. Then I turn on the container’s firewall with the input policy set to DROP: everything else gets dropped.
And here’s where that checkbox comes back: without the Firewall checkbox on the container’s network device, these rules do nothing. If you create the device in the web UI, it comes ticked; if you create it from the command line, you have to set it yourself. Before you close the session you have open, test that you can get in on the new port.
Plex, from its official repository
I don’t grab a standalone installer: I add Plex’s official repository with its signing key. That way Plex updates with apt, along with the rest of the system. And that matters: in 2025 Plex asked everyone to update their server because of a vulnerability.
For the first setup I open http://IP:32400/web from my Mac, sign in with my account, name the server and untick access from outside my home. This Plex is for the house. If it won’t let you claim the server that way, the SSH tunnel that fixes it is on GitHub.
A tip: your Plex account is the key to your server. Turn on two-step verification. In 2025, after a security incident, Plex asked its users to change their passwords and turn on exactly that.
A name and a padlock with nginx
It works, but the browser’s address bar shows an IP, an odd port and no padlock. I want to use plex.itslucho.com and the same wildcard certificate I put on Proxmox in part 2.
For that, I put nginx in front of Plex. It’s like a building’s receptionist: it greets everyone at the main door, port 443, with the padlock, and walks them inside to Plex.

Its config says two things: whatever comes in on 80 goes to 443, and whatever comes in on 443 is opened with the certificate and handed to Plex on 127.0.0.1:32400. I copy the certificate and its private key to the container, and set the key’s permissions so only root can read it. I check the config with nginx -t, reload, and now I get in by name, with the padlock.
The full file, explained line by line, is on GitHub. If you don’t have a wildcard certificate, you’ll also find how to get one with Let’s Encrypt.
The first movie, no piracy
To test it I use Tears of Steel, a short sci-fi film the Blender Foundation released under a Creative Commons license (CC BY 3.0) so anyone can download and share it. I download it straight to the server from Blender’s site and unzip it.
The trick is in the name: title and year, and each movie in its own folder. With Tears of Steel (2012)/Tears of Steel (2012).mov, Plex knows which movie it is and grabs its poster. Then I create the movie library in Plex and tell it where to look.
Plex also comes with free movies with ads, but those belong to the studios: you can watch them, but you can’t show them in a video. That’s why they don’t show up here.
To the couch
On the Apple TV I search for Plex in the App Store and install it. When I open it, it shows me a code; on my phone I go to Plex’s link page (plex.tv/link), type it in, and the Apple TV is now on my account. I pick my server, Movies, Tears of Steel… and play.
The movie isn’t coming from the internet: it goes from the container to the Apple TV over my home network, through the 32400 we opened in the firewall. The only thing it doesn’t include is popcorn.
Is it free?
At home, yes: the Plex server, the app and watching on your own network cost nothing. To watch your content away from home on the TV apps, since March 2026 Plex asks you to pay. That’s why this Plex stays at home, with nothing open on the router.
Your turn
Create your container, lock it down, turn on its firewall and try it with Tears of Steel or your own folder of videos. It works with any Proxmox and any TV or phone that has the Plex app.
One more thing: plex.itslucho.com only works on my Mac, because of the hosts file. In the next video, I’ll make the whole house understand those names.
Commands
Create the container from the node’s shell. It’s the same as the web wizard; swap in your own template, IP and key:
pct create 100 local:vztmpl/debian-13-standard_<version>_amd64.tar.zst \
--hostname plex --unprivileged 1 --features nesting=1 \
--cores 2 --memory 2048 --swap 512 --rootfs local-lvm:500 \
--net0 name=eth0,bridge=vmbr0,ip=192.168.1.50/24,gw=192.168.1.1,firewall=1 \
--ssh-public-keys /root/my_key.pub --start 1
If you lock yourself out of SSH, get into the container from the node’s shell:
pct enter 100
Inside the container, update, create your user and give it sudo:
apt update && apt full-upgrade
adduser itslucho
apt install sudo
usermod -aG sudo itslucho
From your computer, copy your key to the new user:
ssh-copy-id itslucho@plex.itslucho.com
Check the SSH config for errors, restart the service and test the new port in another terminal, without closing the one you have open:
sudo sshd -t
sudo systemctl restart ssh
ssh -p 26845 itslucho@plex.itslucho.com
Install fail2ban, create your jail.local (the [sshd] section is on GitHub) and check that it’s watching:
sudo apt install fail2ban
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
sudo systemctl restart fail2ban
sudo fail2ban-client status sshd
Add Plex’s signing key and official repository, and install it:
sudo apt install -y curl gnupg2
curl -L https://downloads.plex.tv/plex-keys/PlexSign.v2.key | sudo gpg --yes --dearmor -o /etc/apt/keyrings/plexmediaserver.v2.gpg
echo "deb [signed-by=/etc/apt/keyrings/plexmediaserver.v2.gpg] https://repo.plex.tv/deb/ public main" | sudo tee /etc/apt/sources.list.d/plex.list
sudo apt update
sudo apt install -y plexmediaserver
Install nginx and copy the certificate, with the key readable only by root:
sudo apt install -y nginx
sudo install -d -m 700 /etc/nginx/ssl
sudo install -m 644 ~/itslucho-fullchain.pem /etc/nginx/ssl/
sudo install -m 600 ~/itslucho.key /etc/nginx/ssl/
Enable the Plex site, check the config and reload nginx:
sudo ln -s /etc/nginx/sites-available/plex /etc/nginx/sites-enabled/plex
sudo rm /etc/nginx/sites-enabled/default
sudo nginx -t
sudo systemctl reload nginx
Download Tears of Steel, unzip it and give it the name Plex understands:
sudo mkdir -p "/media/movies/Tears of Steel (2012)"
cd /tmp && wget https://download.blender.org/demo/movies/ToS/tears_of_steel_1080p.mov.zip
sudo apt install -y unzip
unzip tears_of_steel_1080p.mov.zip
sudo mv tears_of_steel_1080p.mov "/media/movies/Tears of Steel (2012)/Tears of Steel (2012).mov"
The full nginx config, the container firewall rules and the SSH config are on GitHub, explained one by one. The IP and SSH port in these examples aren’t mine: use your own.
Resources & references
- Proxmox VE Firewall — Proxmox admin guide
- Proxmox Container Toolkit — Proxmox admin guide
- Plex: Enable repository updating on Linux
- Plex: Installation
- Plex: Two-Factor Authentication
- Plex: Connect an app to your Plex account
- Plex Forum: Changes coming to remote streaming on Smart TVs
- Help Net Security: Plex tells users to change passwords and upgrade their servers (2025)
- Tears of Steel: license and credits
- Tears of Steel: downloads
Chapters
- 00:00 Movies from my old server
- 00:28 A container for Plex
- 01:19 Locking it down, fast
- 01:55 The container’s own firewall
- 02:51 Installing Plex
- 03:30 A name and a padlock: nginx
- 04:19 The first movie
- 04:53 From the couch: Apple TV
- 05:23 Is it free?
Series
Homelab From Scratch, part 3.
- ← Previous: Secure Your Proxmox Server: Firewall, SSH and Fail2ban, where I locked Proxmox down before installing anything on it.
- Next →: getting the whole house to understand those names. Coming soon.
Code
- 💻 Commands and files: github.com/itslucho-com/plex-media-server
- 🎬 Movie: Tears of Steel — (CC) Blender Foundation | mango.blender.org — CC BY 3.0. Music: (C) Joram Letwory — CC BY-ND 3.0.