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 @@ -559,11 +559,11 @@ def fw_vpcrouter(self):
559559 if item == "id" :
560560 continue
561561 static_route = static_routes .get_bag ()[item ]
562- if static_route ['ip_address' ] == self .address ['public_ip' ] and not static_route ['revoke' ]:
562+ if 'ip_address' in static_route and static_route ['ip_address' ] == self .address ['public_ip' ] and not static_route ['revoke' ]:
563563 self .fw .append (["mangle" , "" ,
564564 "-A PREROUTING -m state --state NEW -i %s -s %s ! -d %s/32 -j ACL_OUTBOUND_%s" %
565565 (self .dev , static_route ['network' ], static_route ['ip_address' ], self .dev )])
566- self .fw .append (["filter" , "" , "-A FORWARD -d %s -o %s -j ACL_INBOUND_%s" %
566+ self .fw .append (["filter" , "front " , "-A FORWARD -d %s -o %s -j ACL_INBOUND_%s" %
567567 (static_route ['network' ], self .dev , self .dev )])
568568
569569 if self .address ["source_nat" ]:
You can’t perform that action at this time.
0 commit comments