We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcc3446 commit 178591aCopy full SHA for 178591a
systemvm/debian/opt/cloud/bin/configure.py
@@ -1479,7 +1479,10 @@ def forward_vpc(self, rule):
1479
if not rule["internal_ports"] == "any":
1480
fw_prerout_rule += ":" + self.portsToString(rule["internal_ports"], "-")
1481
1482
- fw_output_rule = "-A OUTPUT -d %s/32" % rule["public_ip"]
+ fw_output_rule = "-A OUTPUT"
1483
+ if "source_cidr_list" in rule and rule["source_cidr_list"]:
1484
+ fw_output_rule += " -s %s" % rule["source_cidr_list"]
1485
+ fw_output_rule += " -d %s/32" % rule["public_ip"]
1486
if not rule["protocol"] == "any":
1487
fw_output_rule += " -m %s -p %s" % (rule["protocol"], rule["protocol"])
1488
if not rule["public_ports"] == "any":
0 commit comments