Build the OpenWrt network foundation before Proxmox Backup Server.
Create the Internal Networks
STEP 000 — Optional: import previous P2V context
DO: If you completed Windows 11 → Proxmox, import p2v-windows-11-state.json. Otherwise skip this step.
Optional previous-guide context
Imports saved values and diagnostic evidence only. It does not complete this guide.
Optional — skip if unavailable.
STOP CHECK: Previous context is loaded, or this optional step was skipped.
STEP 000a
Troubleshoot STEP 000
Context
No files attached. Diagnostics can include readable text/log files; other files are listed by name.
STEP 001 — Discover WAN and choose the internal subnets
DO: Open the PVE web interface https://{{PROXMOX_IP}}:8006
In PVE → Node → Shell, run:
PVE_CURRENT_CIDR=$(ip -4 -o addr show dev vmbr0 | awk 'NR==1{print $4}')
ISP_SUBNET_CIDR=$(ip -4 route show dev vmbr0 scope link | awk '$1 ~ /^[0-9]+\./ && $1 ~ /\// {print $1; exit}')
PVE_PHYSICAL_NIC=$(for path in /sys/class/net/vmbr0/brif/*; do [ -e "$path" ] || continue; nic=${path##*/}; [ -e "/sys/class/net/$nic/device" ] && { echo "$nic"; break; }; done)
printf 'PVE_CURRENT_CIDR=%s\nISP_SUBNET_CIDR=%s\nPVE_PHYSICAL_NIC=%s\n' "$PVE_CURRENT_CIDR" "$ISP_SUBNET_CIDR" "$PVE_PHYSICAL_NIC"
Copy the three output lines. Click the field below and press Ctrl+V. It analyzes automatically.
Click the field and press Ctrl+V. Analysis runs automatically.
Detected configuration
Choose the two internal networks. OpenWrt automatically uses the first usable IP in each subnet. Bridge names are automatic: the subnet third octet becomes the bridge number (10.0.5.0/24 → vmbr5).
Build values
Final layout:
vmbr0 WAN physical {{PVE_PHYSICAL_NIC}} ISP {{ISP_SUBNET_CIDR}}
{{TRUSTED_BRIDGE}} Trusted no physical port {{TRUSTED_CIDR}}
{{DMZ_BRIDGE}} DMZ no physical port {{DMZ_CIDR}}
OpenWrt WAN vmbr0 DHCP from ISP router
OpenWrt Trusted {{TRUSTED_BRIDGE}} {{OPENWRT_TRUSTED_CIDR}}
OpenWrt DMZ {{DMZ_BRIDGE}} {{OPENWRT_DMZ_CIDR}}
STOP CHECK: Enter valid Trusted, PVE and DMZ values. Only vmbr0 touches the physical NIC.
STEP 001a
Troubleshoot STEP 001
Context
No files attached. Diagnostics can include readable text/log files; other files are listed by name.
VMID: {{OPENWRT_VMID}}
CPU: 1
RAM: 256 MiB or more
Disk: 1 GiB
LAN bridge: {{TRUSTED_BRIDGE}}
LAN IP: {{OPENWRT_TRUSTED_IP}}
Netmask: /{{TRUSTED_PREFIX}}
LAN VLAN: blank
WAN bridge: vmbr0
WAN VLAN: blank
WAN: DHCP
Start VM: No
net0 / eth0 = Trusted
net1 / eth1 = WAN
STOP CHECK: Trusted uses {{TRUSTED_BRIDGE}}; WAN uses vmbr0; neither NIC has a VLAN tag.
STEP 004a
Troubleshoot STEP 004
Context
No files attached. Diagnostics can include readable text/log files; other files are listed by name.
STEP 005 — Add the DMZ NIC and startup order
DO: With OpenWrt stopped, use VM → Hardware → Add → Network Device:
IPv6 Settings → disable RA, DHCPv6, and NDP proxy.
Firewall Settings → create or assign the dmz zone.
Save & Apply.
STOP CHECK: DMZ uses {{OPENWRT_DMZ_IP}} inside {{DMZ_CIDR}} with no DHCPv4, RA, or DHCPv6 service.
STEP 008a
Troubleshoot STEP 008
Context
No files attached. Diagnostics can include readable text/log files; other files are listed by name.
STEP 009 — Apply the firewall policy
DO: Open LuCI → Network → Firewall → General Settings.
lan — Trusted
Input: ACCEPT
Output: ACCEPT
Forward: REJECT
Masquerade: off
Covered: lan
Forward to: wan only
dmz
Input: REJECT
Output: ACCEPT
Forward: REJECT
Masquerade: off
Covered: dmz
Forward to: wan only
wan
Keep normal WAN defaults:
Input: REJECT
Output: ACCEPT
Forward: REJECT
Masquerade: on
Forward to: none
Do not add inter-zone forwarding, DMZ input exceptions, or WAN port forwards during the baseline setup. DMZ clients use static addresses and external DNS.
STOP CHECK: Only Trusted → WAN and DMZ → WAN forwarding exists.
STEP 009a
Troubleshoot STEP 009
Context
No files attached. Diagnostics can include readable text/log files; other files are listed by name.
Cut Over and Verify
STEP 010 — Move PVE management fully to Trusted
DO: Before changing PVE, confirm from the Windows Trusted NIC:
LOCKOUT CHECK: Continue only if you can still reach the Windows admin VM after its old ISP-LAN NIC is removed or disabled. Use local/KVM/out-of-band access if needed.
Then:
Remove or disable the Windows VM's old vmbr0 NIC. Leave only {{TRUSTED_BRIDGE}}.
Move any other non-WAN VM/LXC NICs off vmbr0. Only OpenWrt WAN should remain there.
In PVE → Node → System → Network, edit vmbr0 → remove its PVE IPv4/CIDR and gateway. Keep {{PVE_PHYSICAL_NIC}} as its only bridge port.
Edit {{TRUSTED_BRIDGE}} → keep {{PVE_TRUSTED_CIDR}} and set Gateway {{OPENWRT_TRUSTED_IP}}.
Keep {{DMZ_BRIDGE}} with no PVE address or gateway.
Apply Configuration.
Final host layout:
vmbr0 WAN physical port {{PVE_PHYSICAL_NIC}} PVE IP: none
{{TRUSTED_BRIDGE}} Trusted physical port none PVE IP: {{PVE_TRUSTED_CIDR}}
{{DMZ_BRIDGE}} DMZ physical port none PVE IP: none
Default gateway: {{OPENWRT_TRUSTED_IP}}
After this cutover, direct PVE access from the ISP LAN is intentionally gone.
STOP CHECK: PVE is reachable only through Trusted or out-of-band access.
STEP 010a
Troubleshoot STEP 010
Context
No files attached. Diagnostics can include readable text/log files; other files are listed by name.
STEP 011 — Remove PVE IPv6 exposure from WAN and DMZ
DO: This guide is IPv4-only. In PVE → Node → Shell:
Prove DMZ traffic does not leak onto the physical NIC
On PVE, run while the LXC is pinging 1.1.1.1:
tcpdump -eni {{PVE_PHYSICAL_NIC}} 'ether proto 0x8100 or net {{TRUSTED_CIDR}} or net {{DMZ_CIDR}}'
Stop with Ctrl+C.
Expected: no matches. Only OpenWrt's NATed WAN traffic leaves the physical NIC.
STOP CHECK: DMZ has Internet access, cannot reach LuCI or PVE management, and does not leak onto the physical NIC.
STEP 012a
Troubleshoot STEP 012
Context
No files attached. Diagnostics can include readable text/log files; other files are listed by name.
STEP 013 — Save the recovery state
DO: In LuCI open System → Backup / Flash Firmware → Backup → Generate archive. Save the .tar.gz, then attach it below.
In PVE → Node → Shell create a small recovery bundle:
mkdir -p /root/openwrt-foundation-recovery
cp /etc/network/interfaces /root/openwrt-foundation-recovery/interfaces
cp /etc/sysctl.d/99-pve-openwrt-isolation.conf /root/openwrt-foundation-recovery/
qm config {{OPENWRT_VMID}} | tee /root/openwrt-foundation-recovery/openwrt-vm.conf
qm config {{WINDOWS_VM_VMID}} | tee /root/openwrt-foundation-recovery/windows-admin-vm.conf
ip -4 -br addr | tee /root/openwrt-foundation-recovery/ip-addresses.txt
ip route | tee /root/openwrt-foundation-recovery/ip-routes.txt
bridge link | tee /root/openwrt-foundation-recovery/bridge-links.txt
tar -czf /root/pve-network-recovery.tar.gz -C /root openwrt-foundation-recovery
From Windows PowerShell, copy the bundle (replace root if you use another PVE SSH admin):
Until WireGuard management through the DMZ is available, PVE is not reachable from the ISP-router-side LAN.
Use this only if OpenWrt WAN has a private ISP-LAN address and the ISP router is not forwarding TCP 8006 from the Internet. Never expose PVE TCP 8006 directly to the public Internet.
In LuCI at https://{{OPENWRT_TRUSTED_IP}}, create a temporary port forward:
Name: Temporary PVE management
Protocol: TCP
Source Zone: wan
Source IP address: your admin device's current IP on {{ISP_SUBNET_CIDR}}
External port: 8006
Destination Zone: lan
Internal IP address: {{PVE_TRUSTED_IP}}
Internal port: 8006
In the rule's Advanced Settings, set Source IP address to that one admin device; do not leave it unrestricted.
Test from that ISP-router-side admin device, not from Trusted:
https://{{OPENWRT_WAN_IP}}:8006
When WireGuard management is working, delete this temporary port forward.
STOP CHECK: From the source-restricted ISP-LAN admin device, PVE is reachable at https://{{OPENWRT_WAN_IP}}:8006, and the ISP router has no Internet-facing TCP 8006 forward.
STEP 014a
Troubleshoot STEP 014
Context
No files attached. Diagnostics can include readable text/log files; other files are listed by name.