I have a question about moving from lxd 2 to lxd 3.
In lxd 2, networking was configured in
/etc/default/lxd-bridge. In there, you could enable a http proxy (by default on port 13128). The default container profile set up link-local networking, and it set the http_proxy environment variable inside the container to point to the host side:
config: environment.http_proxy: http://[fe80::1%eth0]:13128 user.network_mode: link-local
The upshot was: inside a container with no explicit networking you could still do
apt-get install foo and it would work.
My question is, is it possible to get the same functionality in lxd 3?
I found information about a new proxy device feature added in lxd 3, but that seems to be a bit like ssh port forwarding - a local port is always forwarded to a fixed target host and port, unlike a HTTP proxy which understands HTTP headers. I also found information about lxd network added in lxd 2.3, so I know how to configure “real” networking, with or without NAT, but the old link-local networking isn’t mentioned.
Is there some knob which enables a built-in http proxy in lxd 3?
Or would I have to run a separate http proxy myself on the host, such as squid or apt-cacher-ng, and use the new local port forwarding feature to forward (say) 127.0.0.1:13128 inside the container to this proxy?