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 b76dbcd commit 742f845Copy full SHA for 742f845
systemvm/debian/opt/cloud/bin/configure.py
@@ -1229,7 +1229,10 @@ def forward_vpc(self, rule):
1229
if not rule["internal_ports"] == "any":
1230
fw_prerout_rule += ":" + self.portsToString(rule["internal_ports"], "-")
1231
1232
- fw_output_rule = "-A OUTPUT -d %s/32" % rule["public_ip"]
+ fw_output_rule = "-A OUTPUT"
1233
+ if "source_cidr_list" in rule and rule["source_cidr_list"]:
1234
+ fw_output_rule += " -s %s" % rule["source_cidr_list"]
1235
+ fw_output_rule += " -d %s/32" % rule["public_ip"]
1236
if not rule["protocol"] == "any":
1237
fw_output_rule += " -m %s -p %s" % (rule["protocol"], rule["protocol"])
1238
if not rule["public_ports"] == "any":
0 commit comments