Review all-address access in a NIFCLOUD NAS security group

Allow network access only from servers and management addresses that need the file share.

Description

A NAS group rule with cidr_ip = "0.0.0.0/0" allows connection attempts from any IPv4 client that can reach the NAS.

Potential impact

Broad file-share permissions can let an unintended client read or change files used by several applications.

Remediation

Limit cidr_ip to the servers and administrators that need the NAS. Provide a private route and grant only the file operations each workload needs. Test mounting and file access from an approved client, then verify an excluded client cannot connect.

Examples

The nasgroup001 rule narrows the range to 10.0.0.0/16. Check which group the NAS actually uses and substitute the required client range.

Before

hcl
resource "nifcloud_nas_security_group" "shared_storage" {
  group_name        = "nasgroup001"
  availability_zone = "east-11"

  rule {
    cidr_ip = "0.0.0.0/0"
  }
}

After

hcl
resource "nifcloud_nas_security_group" "shared_storage" {
  group_name        = "nasgroup001"
  availability_zone = "east-11"

  rule {
    cidr_ip = "10.0.0.0/16"
  }
}

References