In the development version of incus-compose we added nat=true for all proxy ports.
config:
...
devices:
eth0:
ipv4.address: 10.135.32.17/24
ipv4.gateway: 10.135.32.1
name: eth0
network: iwiki0
type: nic
proxy-8080:
connect: tcp:10.135.32.17:8080
listen: tcp:0.0.0.0:8080
nat: "true"
type: proxy
Connect IP \"10.135.32.17\" must be one of the instance's static IPv4 addresses
It seems that it doesn’t detect it’s own static address?
Also when giving a bad static address - no netmask - I see exit 1 but no error.
Failed to run: /usr/lib/incus/incusd forklxc leafwiki_wiki /var/lib/incus/containers /run/incus/leafwiki_wiki/lxc.conf /var/log/incus/leafwiki_wiki: exit status 1"
lxc leafwiki_wiki 20260715232147.601 ERROR network - ../src/lxc/network.c:lxc_network_setup_in_child_namespaces_common:4211 - Cannot add ipv4 gateway for network device "eth0" when not assigning an address
lxc leafwiki_wiki 20260715232147.601 ERROR network - ../src/lxc/network.c:lxc_setup_network_in_child_namespaces:4334 - Invalid argument - Failed to setup netdev
lxc leafwiki_wiki 20260715232147.601 ERROR conf - ../src/lxc/conf.c:lxc_setup:3797 - Failed to setup network
lxc leafwiki_wiki 20260715232147.601 ERROR start - ../src/lxc/start.c:do_start:1466 - Failed to setup container "leafwiki_wiki"
lxc leafwiki_wiki 20260715232147.601 ERROR sync - ../src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 3)
Happy to write issues on lxc/incus if these are real bugs.