I have a setup that should be quite common:
- Legacy net with unmanaged switch behind a Fritzbox router
- a new managed switch with 3 Ports used for the beginning:
1: Uplink to Fritzbox, VLAN 1 (should be untagged),
2: Port to enp1s0 of my Proxmox host (WAN) also VLAN 1,
3. Trunk- Port to enp2s0 of the Proxmox host (LAN) with VLANs 10, 20, 30, 99
- Proxmox with two bridges defined, one for WAN, one for LAN - LAN is vlan-aware
- OPNsense as VM with two network cards pointing to the two bridges
- Config of OPNsense which should be correct for WAN and the VLAN-Interfaces
- setup DHCP for VLAN99 in OPNsense
- Test-VM with NIC on the VLAN-aware bridge and Tag 99
The Test-VM gets an IP from OPNsense and can ping every interface of the OPNsense VM but and here comes the problem: it has no internet. Ping to 8.8.8.8 (Google-DNS) or 192.168.178.1 (Fritzbox) do not come through. I tried with automatic NAT and with hybrid NAT and an explicit rule to allow anything. Even with deactivated firewall no internet.
Any ideas what might be going wrong here? Or is there a tutorial I can follow? I found lots of stuff how to install OPNsense on Proxmox and also lots on VLANs but nothing with the combination or only simple configs without real VLAN devices in OPNsense.
Here is my /etc/network/interfaces:
and here the definition of the OPNsense NICs:
I also tried it without the trunks parameter
Any ideas what I could try?
- Legacy net with unmanaged switch behind a Fritzbox router
- a new managed switch with 3 Ports used for the beginning:
1: Uplink to Fritzbox, VLAN 1 (should be untagged),
2: Port to enp1s0 of my Proxmox host (WAN) also VLAN 1,
3. Trunk- Port to enp2s0 of the Proxmox host (LAN) with VLANs 10, 20, 30, 99
- Proxmox with two bridges defined, one for WAN, one for LAN - LAN is vlan-aware
- OPNsense as VM with two network cards pointing to the two bridges
- Config of OPNsense which should be correct for WAN and the VLAN-Interfaces
- setup DHCP for VLAN99 in OPNsense
- Test-VM with NIC on the VLAN-aware bridge and Tag 99
The Test-VM gets an IP from OPNsense and can ping every interface of the OPNsense VM but and here comes the problem: it has no internet. Ping to 8.8.8.8 (Google-DNS) or 192.168.178.1 (Fritzbox) do not come through. I tried with automatic NAT and with hybrid NAT and an explicit rule to allow anything. Even with deactivated firewall no internet.
Any ideas what might be going wrong here? Or is there a tutorial I can follow? I found lots of stuff how to install OPNsense on Proxmox and also lots on VLANs but nothing with the combination or only simple configs without real VLAN devices in OPNsense.
Here is my /etc/network/interfaces:
Code:
auto lo
iface lo inet loopback
iface enp1s0 inet manual
# WAN and Proxmox management:
auto vmbr0
iface vmbr0 inet static
address 192.168.178.205/24
gateway 192.168.178.1
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
iface enp2s0 inet manual
# LAN with VLANs
auto vmbr1
iface vmbr1 inet manual
bridge-ports enp2s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 10 20 30 99
and here the definition of the OPNsense NICs:
Code:
qm set 100 -net0 "virtio=BC:24:11:DB:85:73,bridge=vmbr1,queues=8,trunks=10;20;30;99"
qm set 100 -net1 "virtio=BC:24:11:30:E9:E9,bridge=vmbr0,queues=8"
Any ideas what I could try?