I have a basic container with lighttpd, after adding the proxy device it does not respond to any requests on the host, checked with
curl -I localhost.
The container has lighttpd installed and is running on port 80.
I can reproduce it with
lxc launch ubuntu:bionic webserver lxc config device add webserver http proxy listen=tcp:0.0.0.0:80 connect=tcp:localhost:80 lxc exec webserver -- apt-get update lxc exec webserver -- apt-get -y install lighttpd
I have run tcpdump and on the host I can see it being received, but in the container it never gets received.
kernel: 4.19.20 lxd --version: 3.11 lxc --version: 3.11
I have checked that forkproxy is running and the log(/var/snap/lxd/common/lxd/logs/webserver/proxy.http.log) is empty.
curl shows the following and never closes
:~$ curl -I -v localhost * Rebuilt URL to: localhost/ * Trying ::1... * TCP_NODELAY set * Connected to localhost (::1) port 80 (#0) > HEAD / HTTP/1.1 > Host: localhost > User-Agent: curl/7.58.0 > Accept: */* >