Enabled IP forwarding on your virtual machine through Azure Network Interface may lead to unauthorized access.
In Azure Console -
In Terraform -
References:
https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/network_interface#enable_ip_forwarding