Page MenuHomeVyOS Platform

Global state-policy invalid cannot be set to action reject
Closed, ResolvedPublicBUG

Description

In 1.5-rolling-202502030007, if the global state-policy for invalid packets is set to reject, a error is produced:

vyos@host# set firewall global-options state-policy invalid action 
Possible completions:
   accept               Action to accept
   drop                 Action to drop
   reject               Action to reject
                        

      
[edit]
vyos@host# set firewall global-options state-policy invalid action reject 
[edit]
vyos@host# commit
[ firewall ]
Failed to apply firewall: /run/nftables.conf:2234:9-39: Error: Could not
process rule: Operation not supported         ct state invalid counter
reject         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/run/nftables.conf:2235:9-39: Error: Could not process rule: Operation
not supported         ct state related counter accept
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /run/nftables.conf:2236:9-14: Error:
Could not process rule: Operation not supported         return
^^^^^^
[[firewall]] failed
Commit failed

This worked in an older version (for ex. 1.5-rolling-202406060020) and the completion shows it as a valid option.
The actions "drop" and "accept" still work fine.

Details

Version
1.5-rolling-202502030007
Is it a breaking change?
Behavior change
Issue type
Bug (incorrect behavior)

Event Timeline

andrin updated the task description. (Show Details)

Reportedly this problem did not exist in VyOS 1.5-rolling-202410260007 (according to slack with @evgmol ). I've seen the problem occur in versions as far back as Vyos-1.5-rolling-202411070006, so that may shed some light on where it occurs.

Viacheslav changed the task status from Open to Confirmed.Thu, Feb 20, 5:49 PM
sarthurdev changed the task status from Confirmed to Needs testing.EditedThu, Feb 20, 7:25 PM
sarthurdev claimed this task.
sarthurdev subscribed.
sarthurdev moved this task from Open to Finished on the VyOS 1.5 Circinus board.
sarthurdev moved this task from Need Triage to Completed on the VyOS Rolling board.