- User A has a http server running on host Ubuntu machine with IP "HostIP" and port 8081.
- Now user A creates an unprivileged lxc container (container1)
- User A logs into
lxc-attach -n container1
. - Now the root user inside the container1 makes a call like
http://HostIP:8081/api
call
My question is does this call routes to the host directly or via the lan network. Basically what are the configuration changes need to be done to avoid the lan traffic if the http server is hosted on the host machine.
Our LXC network configuration is:
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:30:d2:42
All the containers are running inside the host computer Ubuntu.