Skip to content

Commit

Permalink
Ensure NAT-GW IP is in CIDR format for sec-list. (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlamillan committed Jul 24, 2021
1 parent e3cc585 commit 68cddb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oke/oke_manager_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1464,9 +1464,10 @@ func (mgr *ClusterManagerClient) CreateVCNAndNetworkResources(state *State) (str
Source: common.String(vcnCIDRBlock),
})
// Allow internal traffic from NAT gateway to the bastion by default
natCIDR := *ngResp.NatIp + "/32"
bastionSecList.IngressSecurityRules = append(bastionSecList.IngressSecurityRules, core.IngressSecurityRule{
Protocol: common.String("all"),
Source: ngResp.NatIp,
Source: &natCIDR,
})

// Allow outgoing traffic to VCN from the bastion by default
Expand Down

0 comments on commit 68cddb2

Please sign in to comment.