Proxmox on Dedicated Server Hetzner with OPNSense

Dexter23

Member
Dec 23, 2021
195
15
23
34
Hello Guys
I reach the maximum amount of 6th of additional single ip adress i can have for 1 server on proxmox, but i need more public ip so i bought addtional subnet/29.

On proxmox i have many many VM's, and in particular one is running OPNSense.
Proxmox Network is configure like this:
enp8s0(physical nic)
vmbr0(LAN)
vmbr1(WAN)bridge with enp8s0
vmbr2(LAN2)
vmbr3(LAN3)

In the robot panel on protzmox i have my addtional single ip addresses with the same mac address of the main ip
i don't request a separate MAC Address for each single ip address.

In OPNSense i add this ip in Interfaces>VirtualIP on the WAN Interface and everything works has expected.

But for the subnet i order i can't get it to work
i attach the screenshot of my Hetzner Robot Panel IP:
I configure one of the ip from the subnet like single ip adress on OPNSense in Virtual IP's but not work.
 

Attachments

  • hetzner robot panel.png
    hetzner robot panel.png
    93.5 KB · Views: 61
I fix jut adding one ip from the subnet on the host system(proxmox) with this command:
ip address add 203.0.113.41/29 dev vmbr0
Now the question is how to make this change permanently?

This is the actual configuration of this file /etc/network/interfaces

auto vmbr1
iface vmbr1 inet static
address 65.108.90.81/26
gateway 65.108.90.1 > Proxmox Main IP
bridge-ports enp8s0
bridge-stp off
bridge-fd 0
#WAN

For add seconday ip without gateway at this interface (vmbr1) i need only to add this
:

iface vmbr1 inet static
address 65.108.90.81/26
gateway 65.108.90.1 > Proxmox Main IP
address 135.184.162.1/29
bridge-ports enp8s0
bridge-stp off
bridge-fd 0
#WAN

Or i need to add all the structure like this?

iface vmbr1 inet static
address 65.108.90.81/26
gateway 65.108.90.1 > Proxmox Main IP
bridge-ports enp8s0
bridge-stp off
bridge-fd 0

iface vmbr1 inet static
address 135.184.162.1/29
bridge-ports enp8s0
bridge-stp off
bridge-fd 0
#WAN
 
Last edited:
Hi now it works
I only add the first avaiable ip from subnet range to the bridge vmbr1 that is connected to the physical ethernet port and now everything it works.
but i dont know how to add the edit permanently in /etc/network/interfaces how i wrote above.
 

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!