Description
A router interface attached to net-COMMON_PRIVATE includes the shared private network in its routing configuration. Use dedicated Private LANs and explicit routes when services require separation.
Potential impact
Incorrect routing or access policies may permit unintended communication between networks.
Remediation
Connect only the required nifcloud_private_lan resources and review routing, NAT, and firewall rules. Verify that administrative access remains available during migration.
Examples
These excerpts change a router interface’s network. Other interfaces, addresses, and routing settings are omitted.
Before
hcl
resource "nifcloud_router" "example" {
security_group = nifcloud_security_group.example.group_name
network_interface {
network_id = "net-COMMON_PRIVATE"
}
}
After
hcl
resource "nifcloud_router" "example" {
security_group = nifcloud_security_group.example.group_name
network_interface {
network_id = nifcloud_private_lan.main.id
}
}