Page MenuHomeVyOS Platform

show nat source translation - Errors out
Closed, ResolvedPublicBUG


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:

[email protected]:/var/log$ show nat source translations`
 Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/", line 200, in <module>
Pre-NAT              Post-NAT             Prot  Timeout
  File "/usr/libexec/vyos/op_mode/", 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/", 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.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline


[email protected]:~$ show nat source translations 
Pre-NAT              Post-NAT             Prot  Timeout          icmp  24          icmp  23          icmp  25   udp   19       
[email protected]:~$
erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 1:12 PM
erkin removed a subscriber: Active contributors.