I’m a CS teacher learning about lxd.
For an assignment to my students I need 10 containers running apache and ssh on public (static) IPs. I thought about aliasing the public IPs on the host interface and adding a proxy for each IP to each container, for ports 80 and 22, like this:
lxc config device add ct1 ct180 proxy listen=tcp:PUBLIC_1:80 connect=tcp:CONT_1_IP:80 lxc config device add ct1 ct122 proxy listen=tcp:PUBLIC_1:22 connect=tcp:CONT_1_IP:22
…and so on. But this doesn’t really feel like the good way to go.
What would be the best way to do this?
Thanks a lot