Run Odoo from port 80 instead of 8069

In last article, we learned how to install Odoo from Github. Today on pulse7, I am going to share simple trick to Run Odoo from port 80 instead of 8069. In normal scenario, Odoo (OpenERP) runs on port 8069, It might happen that you want to access Odoo (OpenERP) from your public ip with default port 80.
Generally, port 80 is being used by HTTP, so we cannot directly assigned that port to Odoo (OpenERP) server. But through simple trick we can forward traffic of port 80 to 8069. The process is known as port forwarding or port routing. Today I am going to teach you how to do port forwarding in Ubuntu 14.04, for Oddo.
Run Odoo from port 80 instead of 8069
I am using Ubuntu 14.04 LTS on my system with Odoo (Open ERP v8).
- Go to terminal open rc.local file. rc.local file reside in etc folder.
sudo gedit /etc/rc.local
- Paste this command on rc.local file and save
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8069
- Reboot Ubuntu, to see effect
sudo reboot
- After success full restart of system, you can try to access Odoo (OpenERP) from your local or public ip (with default port 80)
I hope you like this article. Share your views to to improve content. Happy Learning !!!
Pingback: Run Odoo from port 80 instead of 8069 | onewaterdrop()