diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-02 20:42:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 20:42:02 +0100 |
commit | 940db8f354853f23788c652f2a5d9097c7a442df (patch) | |
tree | cd6224191fa57c8ebb5b41cf2a486988d1b5e830 | |
parent | f888192eec0f6efadf82bfc4f2bd788a64e78375 (diff) | |
parent | 06024ee642f9b0bd5658a91009ca9739dba52b6d (diff) | |
download | vyos-1x-940db8f354853f23788c652f2a5d9097c7a442df.tar.gz vyos-1x-940db8f354853f23788c652f2a5d9097c7a442df.zip |
Merge pull request #716 from erkin/current
nat: T2873: Add address filtering for DNAT translations
-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 |