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
12
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:
One additional observation from our testing. So far, I’ve only reproduced this on a VLAN-aware bridge that mixes unrestricted trunk ports and VLAN access ports. The trunk ports have no VLAN tag or VLAN restrictions configured in Proxmox. The access ports have a VLAN assigned in Proxmox.

In the failing test, the IPv4 reply fragments enter vmbr0 untagged from the LXC access port. On the egress side, VLAN 2466 is carried tagged toward the CHR trunk.

We have several other installations with "access-only bridges" or "unrestricted trunk-only bridges", and we haven’t observed this fragmentation problem on either. That makes the untagged access ingress → tagged trunk egress transition a candidate trigger.
 
Last edited:
Potentially, you're not using SDN?
Can you post the network configuration as well as the configuration of the guest?

Code:
cat /etc/network/interfaces
cat /etc/network/interfaces.d/sdn

# vm
qm config <VMID>

# container
pct config <VMID>

What kind of traffic do you have? (i.e. protocol, direction, ...(
 
On the hypervisor I am currently testing on, I am not using SDN:
Code:
auto lo
iface lo inet loopback

iface eno1 inet6 manual
        bridge-pvid 1301

iface eno2 inet6 manual

auto vmbr0
iface vmbr0 inet6 static
    bridge-ports eno1
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094


# ISP1

auto vmbr0.1301
iface vmbr0.1301 inet6 static
    address <Redacted>/64
    gateway <Redacted>

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


# ISP2

auto vmbr1.666
iface vmbr1.666 inet6 static
    address <Redacted>/64

source /etc/network/interfaces.d/*
# cat: /etc/network/interfaces.d/sdn: No such file or directory

The Mikrotik CHR-device:
Code:
# qm config 13010002
balloon: 0
boot: order=ide2;virtio0;net0
cores: 16
cpu: host
ide2: none,media=cdrom
machine: q35
memory: 8192
meta: creation-qemu=9.0.2,ctime=1733819432
name: <redacted>
net0: virtio=<redacted>,bridge=vmbr0
net1: virtio=<redacted>,bridge=vmbr1
numa: 0
onboot: 1
ostype: l26
parent: Before_7-20
scsihw: virtio-scsi-single
smbios1: uuid=e03edc26-2c60-4e89-b718-f1a94859fbd9
sockets: 1
virtio0: <redacted>:vm-13010002-disk-0,iothread=1,size=32G
vmgenid: 5a6c8006-d656-4fcb-a715-86564a4c9399


The relevant LxC:

Code:
# pct config 24660199
arch: amd64
cores: 4
features: nesting=1
hostname: <redacted>
memory: 2048
net0: name=eth0,bridge=vmbr0,firewall=1,gw=10.26.66.1,gw6<redacted>,hwaddr=<redacted>,ip=10.26.66.199/24,ip6=<redacted>/64,tag=2466,type=veth
onboot: 1
ostype: debian
parent: before_caddy
rootfs: <redacted>:subvol-24660199-disk-0,size=16G
swap: 2048
tags: io
unprivileged: 1
lxc.idmap: u 965800000 1965800000 200000
lxc.idmap: g 965800000 1965800000 200000
lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 65536
 
Last edited:
What is the output of both

Code:
bridge -compressvlans vlan show
bridge fdb show
 
Suggestion for how I can filter output of the last command somehow, it prints all 4094 vlans ?


Code:
# bridge -compressvlans vlan show
port              vlan-id 
eno1              2-1300
                  1301 PVID Egress Untagged
                  1302-4094
eno2              1 PVID Egress Untagged
                  2-4094
vmbr0             1 PVID Egress Untagged
                  1301
vmbr1             1 PVID Egress Untagged
                  666
tap13010002i0     1 PVID Egress Untagged
                  2-4094
tap13010002i1     1 PVID Egress Untagged
                  2-4094
tap20220080i0     2022 PVID Egress Untagged
veth20220030i0    2022 PVID Egress Untagged
veth20220120i0    2022 PVID Egress Untagged
veth20220100i0    2022 PVID Egress Untagged
veth20420090i0    2042 PVID Egress Untagged
veth20520010i0    2052 PVID Egress Untagged
veth20420080i0    2042 PVID Egress Untagged
veth20520120i0    2052 PVID Egress Untagged
veth20520130i0    1 PVID Egress Untagged
veth20520140i0    2052 PVID Egress Untagged
fwbr20520130i0    1 PVID Egress Untagged
fwpr20520130p0    2052 PVID Egress Untagged
fwln20520130i0    1 PVID Egress Untagged
tap24640002i0     2464 PVID Egress Untagged
veth20520160i0    2052 PVID Egress Untagged
veth20620100i0    2062 PVID Egress Untagged
veth20520200i0    2052 PVID Egress Untagged
veth24640003i0    2464 PVID Egress Untagged
veth24670198i0    2467 PVID Egress Untagged
veth26660100i0    2666 PVID Egress Untagged
veth26660010i0    2666 PVID Egress Untagged
veth26660020i0    2666 PVID Egress Untagged
veth26660014i0    2666 PVID Egress Untagged
veth26660200i0    2666 PVID Egress Untagged
veth24660199i0    1 PVID Egress Untagged
fwbr24660199i0    1 PVID Egress Untagged
fwpr24660199p0    2466 PVID Egress Untagged
fwln24660199i0    1 PVID Egress Untagged
veth26660202i0    2666 PVID Egress Untagged
#