Page MenuHomeVyOS Platform

show nat source translation - Errors out
Open, Requires assessmentPublicBUG

Description

While performing a NAT masquerade type of configuration, the show nat source translation command is erring out.
This doesn't occur all the time. When I first started the router things reported just fine, however it now shows:

vyos@edgece:/var/log$ show nat source translations`
 Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/show_nat_translations.py", line 200, in <module>
Pre-NAT              Post-NAT             Prot  Timeout
    main()
  File "/usr/libexec/vyos/op_mode/show_nat_translations.py", line 196, in main
    process(run(command(arg.type, arg.proto, arg.ipaddr)), arg.stats, arg.proto, arg.pipe, arg.verbose, arg.type)
  File "/usr/libexec/vyos/op_mode/show_nat_translations.py", line 106, in process
    rule_type = rule.get('type', '')
AttributeError: 'str' object has no attribute 'get'

Traffic behind this router is normal UDP/TCP traffic, and a host doing Strongswan through the router and being NAT'd. However, it should be encapsulated in NAT-T's standard port.

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-202008250118
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)