T6375: Fix/Update NAT logging (backport #3493) #3495
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Summary
Fixed broken logging for "show log nat"
Added the following commands:
show log nat source
show log nat source rule <ruleNum>
show log nat destination nat
show log nat destination nat rule <ruleNum>
show log nat static
show log nat static rule <ruleNum>
Types of changes
Related Task(s)
https://vyos.dev/T6257
Related PR(s)
Component(s) name
nat, log
Proposed changes
This change will fix the broken
show log nat
, as well as add additionalshow log nat
commands with filtering on source/destination/staticHow to test
Configure NAT and run show commands:
Smoketest result
Checklist:
This is an automatic backport of pull request #3493 done by [Mergify](https://mergify.com).