Skip to content

Commit 951d3fc

Browse files
committed
Fixup
1 parent 9186de7 commit 951d3fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

systemvm/debian/opt/cloud/bin/cs/CsAddress.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,8 @@ def fw_vpcrouter(self):
561561
static_route = static_routes.get_bag()[item]
562562
if static_route['ip_address'] == self.address['public_ip'] and not static_route['revoke']:
563563
self.fw.append(["mangle", "",
564-
"-A PREROUTING -m state --state NEW -i %s -s %s ! -d %s -j ACL_OUTBOUND_%s" %
565-
(self.dev, self.address['network'], static_route['network'], self.dev)])
564+
"-A PREROUTING -m state --state NEW -i %s -s %s ! -d %s/32 -j ACL_OUTBOUND_%s" %
565+
(self.dev, static_route['network'], static_route['gateway'], self.dev)])
566566
self.fw.append(["filter", "", "-A FORWARD -d %s -o %s -j ACL_INBOUND_%s" %
567567
(static_route['network'], self.dev, self.dev)])
568568

0 commit comments

Comments
 (0)