Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Severity :

...

High

Description:

...

This control ensures that NFS endpoints are not publicly accessible as mount point with public addresses. The NFS are exposed as mount endpoint target in VNC subnet, identifiable with DNS name and IP address. If these endpoint exist in public facing VNC subnet, it will be expose to malicious access and attacks. It's recommends that NFS use VCN security groups or security lists (of the mount target subnet) to configure network access to the mount target from only authorized IP addresses.

Remediation Steps:

Perform following to update File Storage subnet and/or security policies :

  1. Login to the OCI console at https://www.oracle.com/cloud/sign-in.html.

  2. To move file storage from public subnet to private subnet

    1. If the private subnet not exist, Create a new subnet.

    2. In the navigation click Storage.

    3. Under File Storage, click Mount Targets.

    4. In the List Scope section, select a compartment.

    5. Click Create Mount Target.

    6. Enter the required mount target information like Mount Target Name, Availability Domain same as instance where it will be mounted, Compartment, VNC, Subnet Compartment, Subnet created earlier. NSG or Security Lists, tags

    7. Click Create. This will create the mount target in the private subnet.

    8. To Create new export with the same export path in the new mount target to the file system, Click the name of the file system, click Create Export, Choose Select Existing Mount Target , Be sure that the export path for the new export is exactly the same as the export path for the original export.

    9. Switch over the instance mount point to the new mount target . For this , Stop the workload, Unmount the file system, Mount the file system using the new mount target with same mount point as previous, Update any system configuration files that use the old export path, Start workload applications.

    10. Verify that they can access the file system as expected, once verification done , delete the original mount target.

  3. To update the security list for file Storage access from the authorized VNC or addresses

    1. In the navigation, click Networking.

    2. Click Virtual Cloud Networks.

    3. In the Scope, select the compartment that contains the VCN of the mount subnet is in.

    4. Click the name of the VCN.

    5. On the details page for the cloud network, in Resources, and then click Security Lists.

    6. Click the name of the security list used by the subnet used for mount target.

    7. In Resources, click Ingress Rules.

      • Keep the stateful rule type.

      • Click Source Type, choose CIDR, and then enter the CIDR block for the subnet

      • Click IP Protocol, Select TCP.

      • In Source Port Range, configure source ports or ALL.

      • Click Destination Port Range , enter port range 2048-2050.

      • Click + Additional Ingress Rule to create additional Ingress Rule for destination port 111/TCP, 111/UDP, 2048/UDP. Add these rule as Stateful Rule.

      • When all ingress rule configured, click Add Ingress Rules.

    8. Click Add Egress Rules.

      • Keep the stateful rule type.

      • Click Destination Type, choose CIDR, and then enter the CIDR block for the subnet

      • Click IP Protocol, Select TCP.

      • In  Source Port Range , enter port range 2048-2050.

      • Click Destination Port Range, configure ALL to allow all outgoing traffic.

      • Click + Additional Egress Rule to create additional Egress Rule for source port 111/TCP, 111/UDP, 2048/UDP. Add these rule as Stateful Rule.

      • When all ingress rule configured, click Add Egress Rules.

  4. To update security group for file storage access from the authorized VNC or addresses

    1. In the navigation, click Networking.

    2. Click Virtual Cloud Networks.

    3. Click the name of the VCN

    4. Under Resources, click Network Security Groups.

    5. From the list of available NSG , select the one existing one to update or create new security group.

    6. Click Add Rule for ingress

      • Keep the stateful rule type.

      • Click Source Type, choose CIDR, and then enter the CIDR block for the subnet

      • Click IP Protocol, Select TCP.

      • In Source Port Range, configure source ports or ALL.

      • Click Destination Port Range , enter port range 2048-2050.

      • Click + Another Rule to create additional Ingress Rule for destination port 111/TCP, 111/UDP, 2048/UDP. Add these rule as Stateful Rule.

      • When all ingress rule configured, click Add.

    7. Click Add Rule for Egress.

      • Keep the stateful rule type.

      • Click Destination Type, choose CIDR, and then enter the CIDR block for the subnet

      • Click IP Protocol, Select TCP.

      • In  Source Port Range , enter port range 2048-2050.

      • Click Destination Port Range, configure ALL to allow all outgoing traffic.

      • Click + Add Rule to create additional Egress Rule for source port 111/TCP, 111/UDP, 2048/UDP. Add these rule as Stateful Rule.

      • When all ingress rule configured, click Add.

    8. Add the mount target to the NSG

      • In the navigation, click Storage.

      • Under File Storage, click Mount Targets.

      • In the List Scope section, select a compartment.

      • Find the mount target, click  Actions menu, and then click View Mount Target Details.

      • In the Mount Target Information, click the Edit link next to Network Security Groups

      • Select a Compartment and NSG from the list. 

      • Click Save.

    9. Add instance to Network security group

      • In the navigation, click Compute.

      • Under Compute, click Instances. Click the instance to view its details.

      • Under Resources, click Attached VNICs.

      • Click the VNIC of interested.

      • Next to Network Security Groups, click Edit.

      • Select the Network security group where file storage access rules are added.

      • Click Save Changes.

Important:

  • When security list are used to apply security rules to mount endpoints, the security rules in the security lists associated with the VNIC's subnet applies to mount endpoint.

  • When Security groups are used apply security rules to mount endpoints, security rules in all NSGs where the VNIC is associated with those groups, are applies to the mount endpoint.

Reference: