mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
VR: Do not add iptables rules for the revoked ip addresses (#6189)
This commit is contained in:
parent
47454eca7d
commit
c61ea9f96d
@ -498,7 +498,7 @@ class CsIP:
|
|||||||
if not inf.startswith("eth"):
|
if not inf.startswith("eth"):
|
||||||
continue
|
continue
|
||||||
for address in addresses:
|
for address in addresses:
|
||||||
if "nw_type" in address and address["nw_type"] == "guest":
|
if "nw_type" in address and address["nw_type"] == "guest" and address["add"]:
|
||||||
self.fw.append(["filter", "front", "-A FORWARD -s %s -d %s -j ACL_INBOUND_%s" %
|
self.fw.append(["filter", "front", "-A FORWARD -s %s -d %s -j ACL_INBOUND_%s" %
|
||||||
(address["network"], self.address["network"], self.dev)])
|
(address["network"], self.address["network"], self.dev)])
|
||||||
self.fw.append(["filter", "front", "-A FORWARD -s %s -d %s -j ACL_INBOUND_%s" %
|
self.fw.append(["filter", "front", "-A FORWARD -s %s -d %s -j ACL_INBOUND_%s" %
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user