It has been asked many times and I have tried so many different solutions. The most common answer from Proxmox-members or staff seems to be like this (in this quote, a fw thing- but still):
"You would configure the IP for proxmox in the bridge instead of the NIC, then pass the bridge through to the pfSense VM and configure the second public IP there in the pfSense VM."
For my usage - I have for instance public proxmox running on public static IP on vmbr - and one or more local IP for connecting to proxmox backup and other fun maintenance stuff (monitoring/storage etc) on local network.
This console command works perfectly for my use - it works nice inside vms in those few cases I need it inside vms also (only problem is that it gets lost on reboots) and shows up nicely in the GUI:
ip addr add 192.168.0.5/24 dev vmbr0
But how to make this IP stay permanent on the host/debian? I know how to do it on all Centos/Rocky/RHEL-editions, but on the proxmox host, I have no clue. I could of course add it into a startup-script and try to hack it that way, but would love to know if there is something super easy I miss (to get it to stick permanently).
I have tried manual editing the networks file also and use vmbr0:1 and even vmbr2.. but all of them ends up destroying the GUI on the network tab (it either shows the last ip - or it shows on the next line like something is wrong).
Adding another vmbr2 and then tell it to use vmbr-interface gives duplicate-error.
Having the 2nd IP inside a vm seems bit weird solution, as the 2nd IP is needed outside, not inside the vm?
So the IP addr manual method works consistently best and I have used it for months, but it is so boring to have to do it over and over again. There must be a better way. Google haven't given me a good solution so far, I bet it is an easy fix.
"You would configure the IP for proxmox in the bridge instead of the NIC, then pass the bridge through to the pfSense VM and configure the second public IP there in the pfSense VM."
For my usage - I have for instance public proxmox running on public static IP on vmbr - and one or more local IP for connecting to proxmox backup and other fun maintenance stuff (monitoring/storage etc) on local network.
This console command works perfectly for my use - it works nice inside vms in those few cases I need it inside vms also (only problem is that it gets lost on reboots) and shows up nicely in the GUI:
ip addr add 192.168.0.5/24 dev vmbr0
But how to make this IP stay permanent on the host/debian? I know how to do it on all Centos/Rocky/RHEL-editions, but on the proxmox host, I have no clue. I could of course add it into a startup-script and try to hack it that way, but would love to know if there is something super easy I miss (to get it to stick permanently).
I have tried manual editing the networks file also and use vmbr0:1 and even vmbr2.. but all of them ends up destroying the GUI on the network tab (it either shows the last ip - or it shows on the next line like something is wrong).
Adding another vmbr2 and then tell it to use vmbr-interface gives duplicate-error.
Having the 2nd IP inside a vm seems bit weird solution, as the 2nd IP is needed outside, not inside the vm?
So the IP addr manual method works consistently best and I have used it for months, but it is so boring to have to do it over and over again. There must be a better way. Google haven't given me a good solution so far, I bet it is an easy fix.
Last edited: