Networking Server SysAdmin Technology Virtualization

Deploying Proxmox 7 behind a firewall VM

How I run Proxmox with a single IP and MAC address.


Well, it finally happened; now you need to restore a Virtual Machine, Container, or worse yet, the hypervisor host.


It goes without saying, but the easiest way to recover is from a snapshot which you made before you made a change that broke your Virtual Machine or Container — you did take a snapshot, right? The easiest way is to increment or rollback snapshots via the GUI under the Snapshots option for each of them, but if you need to do it by the command line, then you can.

First, obtain a list of your Virtual Machines or Containers in order to obtain their ID:

Virtual MachineContainer
qm listpct list

To make a snapshot:

Virtual Machines allow you to save the state of RAM with a snapshot (vmstate) on top of their storage and configuration, while as Containers can only snapshot their storage and configuration.

Virtual MachineContainer
qm snapshot \
100 \
Christmas \
--description "Everything works and I'm going on vacation" \
--vmstate true \
pct snapshot \
100 \
Christmas \
--description "Everything works and I'm going on vacation" \

To list the snapshots:

Virtual MachineContainer
qm listsnapshot 100pct listsnapshot 100

To restore a snapshot:

Suppose that something went awry while I was on Christmas vacation, and I wanted to pave over the changes with the last working state and boot the Virtual Machine or Container after a successful snapshot rollback (start):

Virtual MachineContainer
qm rollback \
100 \
Christmas \
--start 1 \
pct rollback \
100 \
Christmas \
--start 1 \


WARNING: when these steps are completed, this will expose your Proxmox host’s GUI and SSH to the Internet.

Please ensure that you’re using a difficult password for your Proxmox root account, which you can reset after launching it via the QEMU emulator.

Remember the initial installation process above? Reboot the server into Rescue mode so that you can load Proxmox via QEMU and login with root and your password:

List the Virtual Machines and/or Containers to get their IDs and turn off auto-booting for each.

Using the ID of 100 as an example for a Virtual Machine or Container, and to disable it from booting, use:

Virtual MachineContainer
qm set 100 --onboot 0pct set 100 --onboot 0

Turn off the Proxmox firewall for the entire cluster if you enabled it:

sed -i \
    's/^enable: .*/enable: 0/' \
    /etc/pve/firewall/cluster.fw \

Replace /etc/network/interfaces with the recovery configuration:

cp -va \
    /etc/network/config-recovery \
    /etc/network/interfaces \

Now you can shut down Proxmox from within QEMU:

shutdown -h now

In the rescue shell, reboot the physical server, which should load into Proxmox:


14 replies on “Deploying Proxmox 7 behind a firewall VM”

Great post. Thank you so much – exactly what I was looking for!
But I’m missing a step-by-step guide to include Traefik 2 to your setup.
Or can’t I simply find it?

Great post. Thanks!
I’m just in the process to replicate your setup.
Nearly everything is working but I can’t get any DNS servers working on OPT2. The traffic is routed over the WireGuard-VPN, all fine.
But it seems that any UDP traffic is blocked and I can’t figure out where to unblock it. Any hints much appreciated! Thank you.

Hi Andreas,

Off the top of my head, maybe I forgot to document the DNS Resolver section, but will have to go re-read my article and look for anything that I might have missed, but am in the middle of bee season (video of some of it: https://LTG.FYI/YouTube) and helping restore multiple ranches, so it may take me a moment.

I’ll e-mail you and try to figure it out with you. Once you and I figure this out, I’ll make appropriate edits to the article or one of us can write here in the comments about what needed to be changed.


EDIT: I e-mailed you and the e-mail bounced back as an invalid address. Please feel free to reach out again with a way for me to contact you, so that we can try and figure out what the problem is.

Thank you so much for your tutorial!!!

I can’t access the Ingress server from the VMS_Hetzner network, from external it’s working.
Like in your example: “Now I can access the simple server remotely by visiting
I can access the website from my browser, but not from a browser running with any VM on the VMS_Hetzner network.
Any idea which Firewall rule is blocking the access from VMS_Hetzner to WAN_Hetzner?

Hi Loomer, you are most welcome! 🙂

I used the interface’s address for the VMs to access the firewall interface. Please see for an example of a Virtual Machine accessing the firewall’s GUI via the VM interface address to configure it instead of the WAN address.

Best regards,

EDIT: I e-mailed you and the e-mail bounced back as an invalid address. Please feel free to reach out again with a way for me to contact you.

I am new to proxmox and your article just blew me away.

I just got the hetzner with 15hdd (no nvme) and I asked for KVM to install proxmox directly on the baremetal

But you do some sort of magic.
you boot into recovery and install proxmox in qemu?
I cannot say I follow
I am not sure I follow (and obviously I already broke my setup trying to change the network settings)

Hi Marcin,

I’ll e-mail you so that we can schedule a time for me to have office hours with you; you screen share with me in observation mode so that I can tell you what to click on and help you get up and running.

I’ll make a YouTube video out of it and then add one or more relevant videos to this article.

Talk soon,
Louis T. Getterman IV


Thank you very much for sharing this tutorial. It was extremely useful.

My home lab server was running for a few weeks without any problems. However, I have decided to upgrade Proxmox from v7 to v8 this week. I temporarily updated the /etc/network/interfaces file with the configuration in the /etc/network/config-recovery file. The upgrading process ran smoothly, and, in the end, I have updated the /etc/network/interfaces to the original configuration. Everything is working except the fact that in the Proxmox instance, I have no access to the internet. After some debugging, I noticed that, with the upgrade, the default gateway of Promox changed to The output of ip route show is:

default via dev vmbr2 proto kernel onlink dev vmbr2 proto kernel scope link src dev vmbr1 proto kernel scope link src

If I delete that and manually define the default gateway to everything works normally. Also, if I comment the line with ‘gateway’ in the /etc/network/interfaces, the problem is solved after restarting the networking service. I am not sure if I am supposed to do that, as you had that line in the /etc/networks/config-runtime file

Hi Miguel,
I had the exact same problem.
I can resolve it after a reboot by using the command:

ip route replace default via dev vmbr1 proto kernel onlink

But how can you make this change permanently? What needs to be changed in /etc/network/interfaces?

Has anyone else done the upgrade to v8?
Any guide available?
I’m a little bit scared to do it.

Hey Louis,

First, awesome guide.

However, I am running into some issues when trying to do the same on my Hetzner dedicated server. For some reason, even if I follow all steps, the OPNsense/pfSense VM can’t be reached via the public address.

Leave a Reply

Your email address will not be published. Required fields are marked *