diff options
author | erkin <e.altunbas@vyos.io> | 2021-02-02 14:49:24 +0300 |
---|---|---|
committer | erkin <e.altunbas@vyos.io> | 2021-02-02 14:49:24 +0300 |
commit | 06024ee642f9b0bd5658a91009ca9739dba52b6d (patch) | |
tree | 1f281548702b14f8e9ba47e969ecad1990c4595f /src | |
parent | 31c4595b1e21abbd3c038f74e0b40c4cb6e17eae (diff) | |
download | vyos-1x-06024ee642f9b0bd5658a91009ca9739dba52b6d.tar.gz vyos-1x-06024ee642f9b0bd5658a91009ca9739dba52b6d.zip |
nat: T2873: Add address filtering for DNAT translations
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/show_nat_translations.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/op_mode/show_nat_translations.py b/src/op_mode/show_nat_translations.py index 04c20e584..25091e9fc 100755 --- a/src/op_mode/show_nat_translations.py +++ b/src/op_mode/show_nat_translations.py @@ -51,6 +51,8 @@ def command(srcdest, proto, ipaddr): command += f' --orig-src {ipaddr}' if srcdest == 'destination': command += ' -g' + if ipaddr: + command += f' --orig-dst {ipaddr}' return command |