Fragmented IPv4 replies disappear before VM tap at 1505 bytes; raising tap MTU by one byte moves the cutoff

Jostein Fossheim

New Member
Mar 20, 2025
7
1
3
Has anyone seen a VLAN-aware Proxmox bridge deliver a reassembled 1504-byte IPv4 packet to a VM tap, then drop a 1505-byte packet on the same path? I can reproduce this between a MikroTik CHR VM and a Linux LXC on the same Proxmox node. I’m trying to understand what triggers reassembly and whether there’s a supported fix that keeps the guest MTU at 1500.

Local setup and reproduction

The CHR uses a VirtIO NIC attached directly to vmbr0. The Linux container is on the same bridge, and its replies reach the CHR tap tagged with VLAN 2466. The bridge and tap both have MTU 1500. The VM NIC has no firewall=1 setting.

From the CHR, I ran the following, substituting the container’s IPv4 address. RouterOS size is the total IPv4 datagram length in these tests.

/ping address=<container-ipv4> size=1504 count=3
/ping address=<container-ipv4> size=1505 count=3
At 1504 bytes, all three replies reached the VM tap. tcpdump showed each as a single IPv4 packet with length 1504, offset 0, flags [none].

At 1505 bytes, the capture inside the container showed both request fragments arriving and both reply fragments leaving eth0. Each reply consisted of a 1500-byte IPv4 fragment at offset 0 and a 25-byte final fragment at offset 1480. No 1505-byte reply appeared on the CHR tap. Neither physical uplink recorded matching replies during the local reproduction.

Changing only the tap MTU moves the cutoff

I also reproduced this against a directly connected router and changed only the CHR’s host-side tap MTU:

Host-side tap MTUResult
15001504-byte ping passes, 1505 fails
15011505 passes 6/6, 1506 fails 3/3
1500 againThe same 1505-byte ping fails 3/3
For the external-neighbor test, I captured both reply fragments arriving on the Proxmox physical NIC. I then sent five failing pings 400 ms apart. Each final fragment correlated within 0.5 ms with an IPv4 kfree_skb event at br_dev_queue_push_xmit+0x3b/0x130, reason NOT_SPECIFIED. The successful 1504-byte controls had no corresponding drop.

I first observed this on pve-manager/9.2.21 with kernel 7.0.14-20-pve. It persisted after a Proxmox/kernel update and reboot. Temporarily disabling the node-level host firewall rules also had no effect. The host reports net.bridge.bridge-nf-call-iptables=1and net.bridge.bridge-nf-filter-vlan-tagged=0.

Which kernel hook or bridge setting would you trace next to identify where the fragments are reassembled and why they aren’t re-fragmented for the tap? If someone with a similar setup can reproduce the 1504/1505 boundary, I’d also be interested in your kernel version and firewall backend.


Might be related:

bridge: refragment packets with a vlan tag moved by the bridge

https://lists.openwall.net/netdev/2026/11/09/635
 
Last edited:
Follow-up: could VLAN tagging between bridge netfilter hooks explain the 1504-byte cutoff?

I think we’ve narrowed this down to how br_netfilter handles an untagged ingress → tagged egress transition on vmbr0.

The LXC-facing port is configured as 2466 PVID Egress Untagged. The CHR tap carries VLAN 2466 tagged. We followed individual ICMP replies by IPv4 ID across both ports:

IPv4 reply sizeEntering vmbr0 from the LXCAt the CHR tap
1504 bytesTwo untagged fragments, 1500 + 24One reassembled 1504-byte packet, tagged VLAN 2466
1505 bytesTwo untagged fragments, 1500 + 25No packet captured
My hypothesis: IPv4 conntrack reassembles the reply while it is still untagged at bridge pre-routing. The bridge then assigns PVID 2466. By post-routing, the packet carries VLAN metadata. With bridge-nf-call-iptables=1 and bridge-nf-filter-vlan-tagged=0, could br_nf_post_routing() return NF_ACCEPT without scheduling br_nf_dev_queue_xmit(), bypassing the code that would normally re-fragment the reply?

That would explain the exact cutoff. If the VLAN tag is still metadata when is_skb_forwardable() checks the reassembled packet, the four-byte VLAN allowance would let a 1504-byte IPv4 packet through a 1500-MTU tap. We tested that prediction: raising only the tap MTU to 1501 made 1505 pass and 1506 fail. Restoring the tap to 1500 made 1505 fail again. The failing burst also correlated with drops at br_dev_queue_push_xmit.

The part I’d appreciate a kernel or Proxmox developer’s view on is whether a packet can qualify for IPv4 defragmentation at pre-routing and then miss the corresponding re-fragmentation path solely because the bridge assigned its VLAN in between. We’ve verified the fragment layout and the moving MTU boundary. That hook transition is the remaining hypothesis.
 
Last edited: