NIFCLOUD instance uses the common private network

Place servers requiring isolation on a dedicated Private LAN.

Description

An instance on net-COMMON_PRIVATE shares a private network with other users. Use a dedicated Private LAN for a server that needs isolation.

Potential impact

If its security group is too broad, other systems on the shared network can attempt to connect.

Remediation

Set the interface’s network_id to nifcloud_private_lan.main.id. Check the server IP and application connection settings before switching, then test access from the required clients.

Examples

The excerpts change only the network. Supply the referenced image, security group and Private LAN, and limit the group’s rules to the traffic the server needs.

Before

hcl
resource "nifcloud_instance" "example" {
  image_id       = data.nifcloud_image.ubuntu.id
  security_group = nifcloud_security_group.example.group_name

  network_interface {
    network_id = "net-COMMON_PRIVATE"
  }
}

After

hcl
resource "nifcloud_instance" "example" {
  image_id       = data.nifcloud_image.ubuntu.id
  security_group = nifcloud_security_group.example.group_name

  network_interface {
    network_id = nifcloud_private_lan.main.id
  }
}

References