Two network card

TLoF

Active Member
Jan 31, 2018
2
0
41
45
Hello,

I have a few computer in Hetzner hosting.

I have two network card int this machine, one have a public ip address, one have a private.

In the private network i have a few computers in the 192.168.20.x range.

I would like to start vm that able to work on the 192.168.20.x private network.
I created a bridge
Code:
auto enp4s0
iface enp4s0 inet static
    address xx.yy.zz.ii
    netmask  255.255.255.0
    gateway xx.yy.zz.1
auto enp5s0
iface enp5s0 inet static
    address  192.168.20.19
    netmask  255.255.255.0

auto vmbr0
iface vmbr0 inet static
    address  192.168.20.100
    netmask  255.255.255.0
    bridge_ports enp5s0
    bridge_stp off
    bridge_fd 0

And createing nic in the vm with bridged mode.
It is working fine, the vms able to ping other physical machine in the network fine.

The problem starts, when i try to connect the vm from the host, or forward ports from the public ip to vm. Any advice?
 
O.k I over thinkig the solutions (two day at a row...)

I installed openswitch, created an openswitch bridge, than added rules for the routing, now everything work like a charm
 

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!