diff options
author | erkin <e.altunbas@vyos.io> | 2021-02-02 14:49:24 +0300 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-02 20:42:15 +0100 |
commit | 6b383435150077519f27304eb24d47a16fa747ec (patch) | |
tree | 9b5d868aeea211630408acfe3cc8c93cbd00d1ba | |
parent | be05dcafbbe2bf9e76d681566b0b068cb5d2f953 (diff) | |
download | vyos-1x-6b383435150077519f27304eb24d47a16fa747ec.tar.gz vyos-1x-6b383435150077519f27304eb24d47a16fa747ec.zip |
nat: T2873: Add address filtering for DNAT translations
(cherry picked from commit 06024ee642f9b0bd5658a91009ca9739dba52b6d)
-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 |