Page MenuHomeVyOS Platform

Source validation on interface does not work properly
Closed, ResolvedPublicBUG

Description

If source validation on interfaces is 'loose' or 'disable' but in the firewall global option is 'strict' it works as 'strict' on these interfaces.
Network:

source_validation.jpg (555×589 px, 32 KB)

Trying ping R2 int Gi0/0 from VyOS with source of eth0.
If source validation is not configured then ping passes.

If

set firewall global-options source-validation 'loose'
set interfaces ethernet eth0 ip source-validation 'strict'
set interfaces ethernet eth1 ip source-validation 'strict'

it works as expected. Traffic does not pass.

If

set firewall global-options source-validation 'strict'
set interfaces ethernet eth0 ip source-validation 'loose'
set interfaces ethernet eth1 ip source-validation 'loose'

It does not work. Traffic does not pass.
The same issue with IPv6.

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202309040919
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Related Objects

Event Timeline

sarthurdev changed the task status from Open to In progress.Sep 5 2023, 2:06 PM
sarthurdev moved this task from Need Triage to In Progress on the VyOS 1.4 Sagitta board.

@a.apostoliuk Can you confirm this is working as expected?

Can we mark this one as resolved for 1.5? Seems it wasn't back-ported yet to Saggita @sdev

Viacheslav moved this task from In Progress to Finished on the VyOS 1.4 Sagitta board.