I might be doing #incus networking wrong. Network forwards work great, but since the created container gets a dynamic IP, the forward breaks on restart.
My aim is to expose the system container on the external network with its own address. For that I am
- creating a network forward
- setting the listen address to the one configured on the physical interface
- grabbing target address from the ipv4_address attribute
Using terraform and a small module I wrote to spin these up, the relevant bits:
```
resource "incus_network_forward" "ipv4_forward" {
network = var.bridge_net
listen_address = var.net_forward_lxc_listen_addr
config = {
target_address = incus_instance.lxc.ipv4_address
}
}
```
I am using something wrong obviously, but I am a bit lost on what else there is which will let me configure the container networking in this manner.