Hello All , I am able to access the container’s public ip over public internet , from within the container , access the web server running on it using wget but from the host or from the public internet cannot get the web server in side the container to server pages
H1- Has public ip
C1 - Public Ip
C1-Running web server - NO FIREWALLS , has two network interfaces , one for internal ip , and the other for pubic ip
Inside C1 -wget http://internalipC1, wget http://publiipC1 , wget http://publichostnameC1 all work
Inside H1 - wget http://internalipofC1, wget http://publicC1, wget http://publichostnameC1 all DO NOT WORK.
Fro H1 - I can ping internalipC1, publiipC1, publichostnameC1
Also from a desktop over public internet , can ping publiipC1, publichostnameC1
Public ip’s for the containers are assigned and configured on the eth1 interface of container.
I had to run the lxc network set lxdbr0 ipv4.routes publicip/32 in order to reach the container’s public ip
So this all used to work very well , and i was able to access the container’s web service over public internet . After a host restart , stopped working , may be i missed a config.
I also ran route add default gw hostingproverassignedgateway dev br0
What am i missing ? Can someone help me with this … I am willing to pay for an hour of consulting to sort this out .
Thanks in advance.