mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Handle port forward rule check for vpc and non vpc Isolated net… (#3963)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
This commit is contained in:
parent
efe00aa7e0
commit
32b509a83e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user