Page MenuHomeVyOS Platform

Load balancing fails when more than two interfaces are in the same rule
Closed, ResolvedPublicBUG

Description

WAN Load Balancing fails when more than 2 interfaces are configured in a single rule. This fails silently, and you need to verify with nft or ip rule commands that it didn't do anything.

Equal Weight: The key doesn't increment beyond 1, causing multiple entries of '1'
set load-balancing wan rule 10 interface eth0.20
set load-balancing wan rule 10 interface eth0.101
set load-balancing wan rule 10 interface eth0.102
ERROR: Failed to apply WLB nftables config
Output: /run/nftables_wlb.conf:4:17-35: Error: No such file or directory; did you mean table ‘vyos_wanloadbalance’ in family ip?
delete table ip vyos_wanloadbalance
                ^^^^^^^^^^^^^^^^^^^
/run/nftables_wlb.conf:15:139-139: Error: Could not process rule: File exists
        iifname "eth1" ct state new counter numgen random mod 3 vmap { 0 : jump wlb_mangle_isp_eth0.20, 1 : jump wlb_mangle_isp_eth0.101, 1 : jump wlb_mangle_isp_eth0.102 }
                                                                                                                                          ^
/run/nftables_wlb.conf:24:142-142: Error: Could not process rule: File exists
        oifname != "eth1" ct state new counter numgen random mod 3 vmap { 0 : jump wlb_mangle_isp_eth0.20, 1 : jump wlb_mangle_isp_eth0.101, 1 : jump wlb_mangle_isp_eth0.102 }

Details

Version
1.5-rolling-202509242153
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

L0crian renamed this task from wlb: Load balancing fails when more than 2 interfaces are equal weight in a single rule: to wlb: Load balancing fails when more than 2 interfaces are in a single rule:.Oct 31 2025, 12:47 AM
Viacheslav changed the task status from Open to In progress.Oct 31 2025, 11:58 AM
Viacheslav triaged this task as Normal priority.
dmbaturin renamed this task from wlb: Load balancing fails when more than 2 interfaces are in a single rule: to Load balancing fails when more than two interfaces are in the same rule.Thu, Dec 4, 8:14 PM
dmbaturin closed this task as Resolved.
dmbaturin removed a project: VyOS Rolling.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.