Page MenuHomeVyOS Platform

NAT (op_mode): NAT op_mode command fails.
Closed, ResolvedPublicBUG

Description

This appears to happen even with a basic masquerade rule.

rule 3 {
    description "RCF1918 172.12/12"
    outbound-interface eth0
    source {
        address 192.168.0.0/16
    }
    translation {
        address masquerade
    }
}
admin@edge:~$ show nat source rules 
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/show_nat_rules.py", line 73, in <module>
    srcdest_json = dict_search('match.right', data['expr'][i])
IndexError: list index out of range

Details

Difficulty level
Unknown (require assessment)
Version
vyos-1.4-rolling-202109080217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

Viacheslav claimed this task.
Viacheslav added a subscriber: Viacheslav.

Fixed, VyOS 1.4-rolling-202110130217

vyos@r1-roll:~$ show nat source rules 
Rule       Source                                             Translation                                        Outbound Interface
----       ------                                             -----------                                        ------------------
3          192.168.0.0/24                                     masquerade                                         eth0