proxmox as gateway and second ip as bridged?

openaspace

Active Member
Sep 16, 2019
486
13
38
Italy
Hello.
I have eredited a proxmox server with two public ip, one for proxmox and second for a signle VPS in bridged mode.

Now I want to maintain the second public IP used for a new "nginx proxy manager vps" and use as gateway for the vps inside the network of nginx proxy , the proxmox host ip.

Could be possibile to have bridged and routed configuration mixed at the same time?

I need to use vmbr0 as gateway for all vps inside vmbr1 with one VPS in bridged mode on vmbr0 with separate mac address and public ip directly attached (hetzner host).


Now the only way i have in bridged mode is to install PFSENSE on the second bridged IP, nat port 443 and 80 to Nginx Proxy manager, that redirect requests to the others containers and VPS using pfsense as gateway.... and the first ip only used by the proxmox host.
------------------------------------


Actual proxmox configuration /etc/network/interfaces


auto enp0s31f6
iface enp0s31f6 inet manual

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
address 138.201.xx.xxx/26
gateway 138.201.xx.xxx
bridge-ports enp0s31f6
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.30.0/24
bridge-ports none
bridge-stp off
bridge-fd 0

auto vmbr2
iface vmbr2 inet static
address 10.0.0.0/24


--------------------------------------------------------------
Bridged VPS:
auto lo
iface lo inet loopback
iface lo inet6 loopback

auto eth0
iface eth0 inet static
address 162.55.xx.xxx/28
gateway 162.55.xx.xxx
hostname $(hostname)

auto eth1
iface eth1 inet static
address 192.168.30.1/24
bridge-ports none
bridge-stp off
bridge-fd 0

--------------------------------------------------
 
Last edited:

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!