Two Nic, one for VM (bridge public wan), one for hypervisor (Connect and access by local lan)

kamcm

New Member
Feb 4, 2022
3
0
1
37
My setup will using Two Nic, this is a home server and they will use dhcp to get the ip.

one for VM (public wan) enp0s25
one for proxmox hypervisor (Connect by local lan only) ens1

enp0s25 = onboard intel lan [VM will using it]
ens1= pcie lan [ I plan to use my local lan computer to access it]


My current setup is as follow

Code:
auto lo
iface lo inet loopback

iface enp0s25 inet manual

iface ens1 inet manual

auto vmbr0
iface vmbr0 inet dhcp
        bridge-ports ens1
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet dhcp
        bridge-ports enp0s25
        bridge-stp off
        bridge-fd 0

By using above settings, I can access my proxmox hypervisor with both public and private ip and therefore I have setup additional firewall rule to allow only the local lan ip can access the proxmox hypervisor.

I wonder if I am on the right track to setting this up. Is there any security risk by using above setup?

Is there any better way to isolate proxmox hypervisor from enp0s25 without using firewall?

Or I should never bridge ens1 with vmbr0 and directly assign this visualize network port to the VM.

Please let me know, Thanks!
 
Last edited:
I woudn't assign vmbr1 an IP (so iface vmbr1 inet manual). If PVE got no IP on that bridge then it can't be reached from WAN (but guests assigned to that bridge can still get an IP in your WAN subnet if you for example need that for a pfsense/OPNsense VM).
 
Last edited:
An update
----------------------
I finally dedicate assigned those network ports to the VM directly without using any bridge.
Everything works great except I can't view the VM's network traffic graph at the web dashboard. :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!