summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-02 20:42:02 +0100
committerGitHub <noreply@github.com>2021-02-02 20:42:02 +0100
commit940db8f354853f23788c652f2a5d9097c7a442df (patch)
treecd6224191fa57c8ebb5b41cf2a486988d1b5e830
parentf888192eec0f6efadf82bfc4f2bd788a64e78375 (diff)
parent06024ee642f9b0bd5658a91009ca9739dba52b6d (diff)
downloadvyos-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-xsrc/op_mode/show_nat_translations.py2
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