mirror of
https://github.com/apache/cloudstack
synced 2026-08-02 13:35:41 +00:00
Merge branch '4.16'
This commit is contained in:
commit
306baea228
@ -162,6 +162,7 @@ class CsAcl(CsDataBag):
|
||||
" -A FIREWALL_%s" % self.ip +
|
||||
" -s %s " % cidr +
|
||||
" -p %s " % rule['protocol'] +
|
||||
" -m %s " % rule['protocol'] +
|
||||
" %s -j %s" % (rnge, self.rule['action'])])
|
||||
|
||||
sflag = False
|
||||
|
||||
@ -498,7 +498,7 @@ class CsIP:
|
||||
if not inf.startswith("eth"):
|
||||
continue
|
||||
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" %
|
||||
(address["network"], self.address["network"], self.dev)])
|
||||
self.fw.append(["filter", "front", "-A FORWARD -s %s -d %s -j ACL_INBOUND_%s" %
|
||||
|
||||
Loading…
Reference in New Issue
Block a user