OCI-Networking-LB-Network-Security-Groups-Enabled
Severity : Medium
Description: This control ensures that load balancer in public subnet have network security groups (NSG) configured to allow restricted network access. the NSG acts as virtual firewall with the security rules configured to allow restricted traffic. The NSG also allows the backend server NSG as source on the backend to allow traffic from backend servers. .
Remediation Steps:
Perform following to update security group for load balancer:
Login to the OCI console at Cloud Sign In.
In the navigation, click Networking
Click Virtual Cloud Networks.
Click the name of the VCN
Under Resources, click Network Security Groups.
To Create a new Security group, Click Create Network Security Group.
Enter Basic info as Name and Component, Tags. Click Next.
In Security Rules, configure rules.
Keep the stateful rule type.
Select Ingress, in Direction.
Click Source Type, choose CIDR to allow traffic from other CIDR or sources.Enter the CIDR value.
Click IP Protocol, Select Protocol for the application.
In Source Port Range, configure source ports or ALL.
In Destination Port Range , enter port range for application.
Enter Description for the rule.
Click + Another Rule to create additional Rules for Egress or other source, protocol and port.
When all rule configured, click Create.
To update already existing NSG,
Select the Network Security group.
Under Resources, click Security Rules.
Click Add Rules.
In Add Security Rules, configure rules.
Keep the stateful rule type.
Select Ingress, in Direction.
Click Source Type, choose CIDR to allow traffic from other CIDR or sources.Enter the CIDR value.
Click IP Protocol, Select Protocol for the application.
In Source Port Range, configure source ports or ALL.
In Destination Port Range , enter port range for application.
Enter Description for the rule.
Click + Another Rule to create additional Rules for Egress or other source, protocol and port.
When all rule configured, click Add.
To add/update Network Security group to load balancer
n the navigation, click Networking
Click Load Balancers.
Select the Compartment from the list.
Click the network load balancer whose network security groups must be updated.
Click Edit next to Network Security Groups.
Select an NSG which is created/updated above the list.
Click Submit.
Important:
Reference:
Blue Hexagon Proprietary