ConPaaS-team / conpaas

ConPaaS: integrated runtime environment for elastic cloud applications
http://www.conpaas.eu
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

Nutshell: Internet access from inside LXC (affects Selenium) #78

Closed tcrivat closed 10 years ago

tcrivat commented 10 years ago

When using the Nutshell, currently there is no Internet access from inside the (LXC) containers. This affects the Selenium service which downloads the selenium jar from the Internet, see the following line in the selenium-agent-start script:

https://github.com/ConPaaS-team/conpaas/blob/dev/conpaas-services/scripts/agent/selenium-agent-start#L14

This can be easily fixed by adding the following iptables rule inside the Nutshell VM:

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

So, this rule should be present in the default Nutshell configuration, by adding it to one of the startup scripts or using the iptables-persistent package. Because the Nutshell is @gtato's child, I prefer to let him do the change.

tcrivat commented 10 years ago

Fixed in d18e449b716010f2a09ded4c3129c3811f893707, now Internet access is allowed inside containers and the Selenium service works in the Nutshell.