external OpnSense provide vlan but not works on proxmox

PietroMB

New Member
Apr 3, 2023
4
0
1
Hello everyone,

I have some servers on OVH connected via vRack.

actual confuguraton:
there is a vm inside hyper-v with opnsense, this one act as router and firewall.
Opnsense gives addresses (no dhcp enabled) to all the entity in the net (hypervisors and vms), at the moment opnsense works only on vlan20.

Code:
root@Irlanda:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface enp24s0f0np0 inet manual

iface enxd26725944b1c inet manual

iface enp24s0f1np1 inet manual

iface enp175s0f0np0 inet manual

iface enp175s0f1np1 inet manual

auto vmbr0
iface vmbr0 inet static
        address notThisOne/32
        gateway 100.64.0.1
        bridge-ports enp24s0f0np0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
        bridge-ports enp175s0f1np1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

auto vlan20
iface vlan20 inet static
        address 10.0.1.11/24
        vlan-raw-device enp175s0f1np1

where and how it works:
on the vm lan settings in hyper-v I just define vlan20 and the os inside the vm can reach the lan with no particular settings more.

problem:
in proxmox I've tryed several way to let it works but I failed.
I've set up a bridge with vlan aware (vmbr1) and connect vms with vlan tag on network (under Hardware label).
I've tryed to generate a linux vlan with adress (for proxmox) but I was not able to ping proxmox via opnsense.
I've attached a vmbr to the linux vlan for vm but no effect.

images: very simple net scheme and all tests I've tryed in VM (net settings part)

Someone have some ideas?
 

Attachments

  • help_proxmox.drawio.png
    help_proxmox.drawio.png
    27 KB · Views: 28
  • Schermata del 2023-04-03 17-31-24.png
    Schermata del 2023-04-03 17-31-24.png
    35.6 KB · Views: 25
vmbr1 and net0 + net3 should work, but do you have configure correctly your switch?
 
vmbr1 and net0 + net3 should work, but do you have configure correctly your switch?
Thanks for the response, I don't understand what do you mean by net0+net3.
The switch is configured by following proxmox documentation but I'm not shure it's ok, if you have some suggestion is wellcome
 

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!