Description
A router interface on net-COMMON_PRIVATE connects to the shared private network. Use a dedicated Private LAN for an interface that must separate services.
Potential impact
An incorrect route or firewall rule can permit traffic between networks you intend to isolate.
Remediation
Set the interface’s network_id to the destination LAN. Keep the management path available while changing the interface. Review routes, NAT and firewall rules, then test required and excluded network paths.
Examples
Only one interface’s LAN changes in these excerpts. Supply the other interfaces, addresses and routes for your deployment.
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
}
}