Page MenuHomeVyOS Platform

Setting the default action of a firewall zone to drop causes a commit error
Closed, ResolvedPublicBUG

Description

Firewall default action drop fails

vyos@r14# set firewall zone wan default-action drop 
[edit]
vyos@r14# commit
[ firewall ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 136, in run_script
    c = script.get_config(config)
        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos//conf_mode/firewall.py", line 144, in get_config
    if 'vrf' in local_zone_conf['member']:
                ~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'member'

[[firewall]] failed
Commit failed
[edit]
vyos@r14#

Details

Version
VyOS 1.5-rolling-202501310006
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)
Forum thread
https://forum.vyos.io/t/cannot-assign-firewall-zone/

Event Timeline

Viacheslav triaged this task as Normal priority.
sarthurdev changed the task status from Open to Needs testing.Nov 6 2025, 10:19 AM
sarthurdev assigned this task to o.kuchmystyi.
sarthurdev moved this task from Need Triage to Backport Candidates on the VyOS Rolling board.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
dmbaturin renamed this task from Firewall default action drop fails to Setting the default action of a firewall zone to drop causes a commit error.Thu, Dec 4, 8:16 PM