Page MenuHomeVyOS Platform

SNAT "any" interface error
Closed, ResolvedPublicBUG

Description

A have built iso from 1.4 sources at 04 Dec and did smoke tests, all works fine, but i have a problem on my devices with loading NAT config there specified "outbound-interface name "any" " with error:

Incorrect path /sys/class/net/any: no such file or directory

At Jun 2023 version this worked fine.
Example NAT section:

nat {
    source {
        rule 110 {
            description "some description"
            destination {
                address "8.8.8.8"
                port "8888"
            }
            outbound-interface {
                name "any"
            }
            protocol "tcp"
            source {
                group {
                    address-group "local-sources-nat"
                }
            }
            translation {
                address "10.10.10.10"
            }
        }
    }
}

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202312041649 (sagitta)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Config syntax change (non-migratable)
Issue type
Bug (incorrect behavior)

Event Timeline

vfomkin updated the task description. (Show Details)
vfomkin updated the task description. (Show Details)

If you want to match any interface, you can complete remove interface matcher from the rule, since it's not mandatory (as it was in the past):

delete nat source rule 110 outbound-interface

In the past any interface was supported, and it has been removed.

I'll submit patch to allow any, so upgrade from old setups doesn't break.

n.fort changed the task status from Open to Confirmed.Dec 6 2023, 11:48 AM
n.fort claimed this task.
n.fort added a project: VyOS 1.5 Circinus.