Can't access Odu in Google Cloud
I have successfully installed Odoo to google cloud (VMware Ubuntu 14.04 LTS instance) and started odoo service. everything seems fine.
but while I am trying to access the instance from the external IP, it does not allow me to access. to check if the ip is working or not i installed apache2. but I can access the default apache2 page from external IP.
Has anyone installed odoo on google cloud?
In the Google cloud, HTTP traffic is not allowed by default. you can access the Apache default page, which means you have allowed http traffic.
Your problem might be with the port. you can access the default Apache page because the default Apache port is 80 and it is open. if you start overriding the default port (8069) you need that port. for this you need to run a command in the terminal with root, for example
iptables -I INPUT 1 -p tcp --dport 8080 -j ACCEPT
after that you can access odoo at http://your.ip:8069
Another possible option is to forward port 8069 to port 80. To forward the port, open the /etc/rc.local file using
nano /etc/rc.local
paste the command
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8069
and restart the server using
sudo reboot
after reboot you can access the ode to the default port like http://your.ip
source to share
You need to create a firewall rule to allow connections to the correct port (usually 8069 by default).
Go to console.developers.google.com page and then go to your project -> Network -> Networks -> Your network
Click "Add Firewall Rule" and give the rule a new name, select the network, select (Allow from any source 0.0.0.0/0) and where it says "Allowed Protocols and Ports" enter tcp: 8069 (or another port if not on default port).
The rule will work with all instances of this project, if you want to restrict it to a specific instance, you can add a tag in the Target Tags section (remember also to add the same tag to your instance).
Then click "Create" and you're done.
source to share