From 32b509a83e61ca049f0df92fd134ddbee7dccf12 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Fri, 13 Mar 2020 13:50:42 +0530 Subject: [PATCH] =?UTF-8?q?Handle=20port=20forward=20rule=20check=20for=20?= =?UTF-8?q?vpc=20and=20non=20vpc=20Isolated=20net=E2=80=A6=20(#3963)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pearl Dsilva --- systemvm/debian/root/health_checks/iptables_check.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/systemvm/debian/root/health_checks/iptables_check.py b/systemvm/debian/root/health_checks/iptables_check.py index 2f3dc502672..d80f05b9907 100644 --- a/systemvm/debian/root/health_checks/iptables_check.py +++ b/systemvm/debian/root/health_checks/iptables_check.py @@ -36,8 +36,7 @@ def main(): srcPortText = "--dport " + formatPort(portForward["sourcePortStart"], portForward["sourcePortEnd"], ":") dstText = destIp + ":" + formatPort(portForward["destPortStart"], portForward["destPortEnd"], "-") for algo in [["PREROUTING", "--to-destination"], - ["OUTPUT", "--to-destination"], - ["POSTROUTING", "--to-source"]]: + ["OUTPUT", "--to-destination"]]: entriesExpected.append([algo[0], srcIpText, srcPortText, algo[1] + " " + dstText]) fetchIpTableEntriesCmd = "iptables-save | grep " + destIp