I would like to expose Juju GUI running in a container to the local network. To do that I need to proxy traffic coming to the host interface connected to the local network to the container interface on which Juju GUI is listening.
I added a proxy device without a problem but nobody is listening.
snap install
tracking: edge
installed: git-8c3633c (5451) 44MB -
Create a container lxc launch ubuntu:xenial xen1
Add proxy device lxc config device add xen1 proxy0 proxy listen=tcp:192.168.50.196:80 connect=tcp:10.0.10.88:80 bind=host
Check if device is there
$ lxc config device show xen1
proxy0:
bind: host
connect: tcp:10.0.10.147:443
listen: tcp:192.168.50.196:443
type: proxy
Connection refused
$ wget https://192.168.50.196/
--2018-01-20 01:06:38-- https://192.168.50.196/
Connecting to 192.168.50.196... failed: Connection refused.
Nobody is listenining on 443
$ sudo netstat -tulp | grep 443
tcp6 0 0 [::]:8443 [::]:* LISTEN 24878/lxd
I canโt find any meaningful information in logs.