Proxmox on a public Dedicated Server
Reading time: 5 minutes
Preface
Running Proxmox is awesome. Spinning up virtual machines, containers, setting up storage, you name it. Last week, I got my hands on a dedicated server hosted at OVH. While I’m pretty comfortable with Proxmox, I faced a new challenge: how do I connect to all my VMs when I only have one public IP address?
The Challenge
Since my Proxmox setup only comes with a single public IP, I needed a way to connect to my VMs while ensuring they also have internet access for updates and package installations. After doing some research, I realized I could use the same approach I discussed in my earlier blog post: iptables and NAT rules.
Setting Up Networking and Internet Access
Creating a Private Network
The first step is setting up a private network for your VMs so they can interact with each other. You could extend this concept to create separate DMZ or segmented networks, but for simplicity, I stick to one bridge. Since all traffic is on the same server, having multiple virtual networks doesn't add much value.
Network Configuration via CLI
Edit the /etc/network/interfaces
file and add the following: