lxc config device add {your-container-name} {a-simple-name-for-device} proxy listen={host-protocol}:{host-ip}:{host-port} connect={container-protocol}:{container-ip}:{container-port}
{your-container-name} = web-server {a-simple-name-for-device} = http-80
{host-protocol} = tcp {host-ip} = 10.0.0.1 {host-port} = 80
{container-protocol} = tcp {container-ip} = localhost {container-port} = 8080
@ham3dz please take a look. I found this magic code helpful!