Description
On net-COMMON_PRIVATE, the NAS shares a network with other systems. To isolate NAS traffic, use a dedicated Private LAN that authorized NFS clients can reach.
Potential impact
Broad NAS rules or file permissions can let unintended clients reach shared files.
Remediation
Set the NAS instance’s network_id to the destination LAN. Restrict the NAS security group and file-share permissions to the required clients, then verify that an existing NFS mount can read the files it needs.
Examples
The excerpts change only the network for nas001. Supply the LAN and check the address used by clients.
Before
hcl
resource "nifcloud_nas_instance" "example" {
identifier = "nas001"
allocated_storage = 100
protocol = "nfs"
type = 0
network_id = "net-COMMON_PRIVATE"
}
After
hcl
resource "nifcloud_nas_instance" "example" {
identifier = "nas001"
allocated_storage = 100
protocol = "nfs"
type = 0
network_id = nifcloud_private_lan.main.id
}