Hi. I am new to LXC. I am struggling to get networking setup correctly on my LXC host.
My lxc host is behind a nginx gateway running on different server. So I want traffic to sent to containers from GW -> host -> container.
On the host my network config:
auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 10.0.0.10 network 10.0.0.0 gateway 10.0.0.1 broadcast 10.0.0.255 netmask 255.255.255.0 dns-nameservers 188.8.131.52 184.108.40.206 bridge_ports eth0 bridge_fd 0 bridge_maxwait 0
and on my container I specify Static IP and set lxc host as gateway.
I can ping host and containers and the other way. However I dont have any LAN (10.0.0.0) and Internet access from containers.
The containers are using the correct network profile:
I have enabled IP Forwarding on the LXC host and tried different iptables examples as found on internet, but no luck.
Can someone please assist me as this is driving me up the wall.