OK we are getting somewhere. But you cannot use your default gateway of 192.168.0.1 when using routed
, you need to use the special default link-local gateway address that allow packets to reach the LXD host from the instance.
For containers it uses a veth pair, and for VMs it uses a TAP device. It then configures the following link-local gateway IPs on the host end which are then set as the default gateways in the instance:
169.254.0.1 fe80::1
So you need to use 169.254.0.1
for the container’s default 0.0.0.0/0
route.
See: