From 06024ee642f9b0bd5658a91009ca9739dba52b6d Mon Sep 17 00:00:00 2001 From: erkin Date: Tue, 2 Feb 2021 14:49:24 +0300 Subject: nat: T2873: Add address filtering for DNAT translations --- src/op_mode/show_nat_translations.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/op_mode/show_nat_translations.py') 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 -- cgit v1.2.3