From 3fe395203bdff7228f44b3da53f4976112a6e633 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Thu, 12 Mar 2020 21:49:00 +0530 Subject: [PATCH] Handle port forward rule check for vpc and non vpc Isolated networks --- 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 2f3dc5026723..d80f05b99078 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