File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
systemvm/debian/opt/cloud/bin/cs Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments