Skip to content

Commit 32b509a

Browse files
Pearl1594Pearl Dsilva
andauthored
Handle port forward rule check for vpc and non vpc Isolated net… (#3963)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
1 parent efe00aa commit 32b509a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

systemvm/debian/root/health_checks/iptables_check.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def main():
3636
srcPortText = "--dport " + formatPort(portForward["sourcePortStart"], portForward["sourcePortEnd"], ":")
3737
dstText = destIp + ":" + formatPort(portForward["destPortStart"], portForward["destPortEnd"], "-")
3838
for algo in [["PREROUTING", "--to-destination"],
39-
["OUTPUT", "--to-destination"],
40-
["POSTROUTING", "--to-source"]]:
39+
["OUTPUT", "--to-destination"]]:
4140
entriesExpected.append([algo[0], srcIpText, srcPortText, algo[1] + " " + dstText])
4241

4342
fetchIpTableEntriesCmd = "iptables-save | grep " + destIp

0 commit comments

Comments
 (0)