I have Proxmox running on a machine with OPNsense as a VM, acting as the main firewall/gateway. The Proxmox host has four i226 NICs:
The LAN port is connected to Zyxel GS1920 switch. The devices connected to the switch can only achieve 300-600 Mbps WAN speed. The weird part is that iPerf3 from the same LAN clients to OPNsense (and to the other VMs) achieves full 1Gbps speed, so the hardware and wiring is capable of the full speed of the WAN.
I don't have any traffic shaping enabled in OPNsense and only the built-in firewall rules.
VLANs are not enabled in the interfaces in proxmox /etc/network/interfaces:
Things I have tried/debugged following things with no improvements:
- one is passed through directly to the OPNsense VM. Used as WAN
- one is bridged in proxmox and passed to the OPNsense. Used as LAN
The LAN port is connected to Zyxel GS1920 switch. The devices connected to the switch can only achieve 300-600 Mbps WAN speed. The weird part is that iPerf3 from the same LAN clients to OPNsense (and to the other VMs) achieves full 1Gbps speed, so the hardware and wiring is capable of the full speed of the WAN.
I don't have any traffic shaping enabled in OPNsense and only the built-in firewall rules.
VLANs are not enabled in the interfaces in proxmox /etc/network/interfaces:
Code:
auto lo
iface lo inet loopback
#iface enp5s0 inet manual
iface enp6s0 inet manual
auto enp7s0
iface enp7s0 inet manual
auto enp8s0
iface enp8s0 inet manual
iface enp9s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.1.10/24
gateway 192.168.1.1
bridge-ports enp7s0
bridge-stp off
bridge-fd 0
dns-nameservers 192.168.1.13 1.1.1.1
Things I have tried/debugged following things with no improvements:
- passthrough the LAN NIC to the OPNsense VM.
- LACP two ports from the switch to the proxmox bridge.
- reverting OPNsense to factory defaults.
- changing to pfSense with default settings.
- disabling and enabling all the HW offload features in OPNsense
- disabling ASPM for PCIE in BIOS and in grub.
- different LAN switch (Netgear R8000)
- 2 cores to the VM + multiqueue of 2