Tech

Hosting Vodia PBX in Google Cloud

Published on:

August 9, 2019

To set up Vodia PBX on Google Cloud, start by creating a VM instance in Google Cloud's Compute Engine, choosing a region, zone, and a compatible operating system like Debian. Once the instance is running, configure firewall rules to allow essential ports, such as 80, 443, and SIP-specific ports (5060/5061), to enable communication. Use SSH to install the Vodia PBX by downloading and executing the installation script. After installation, configure the Vodia PBX login, then adjust IP routing settings to recognize the Google Cloud NAT by specifying internal and external IPs. This setup helps you effectively run Vodia PBX in a cloud environment with secure, remote access and full functionality.

In this blog, we will cover the basic steps in setting up the Vodia PBX with Google Cloud. If you don’t have a google account, you can sign up at https://cloud.google.com/ and get $300 to spend on Google Cloud Platform over the next 12 months!

If you don’t have a Vodia account, signup for free and receive a free license. https://portal.vodia.com/en/register

Getting Started

Once you have access to your Google Cloud Navigate to (Compute Engine) to create a VM.

Create Virtual Machine in Google Cloud Platform

Click on create

Create Virtual Machine in Google Cloud Platform

Setting up your VM

  • Name Your instance (Lower case) no spaces
  • Choose your region and zone
  • Machine configuration (Choose General-Purpose)
Setup Virtual Machine in Google Cloud Platform

Building your instance

  • Choose your operating system.  (For this tutorial I am using Debian) You can use Windows or any other Linux flavor.
  • Service Account (Choose Compute Engine default service account)
  • Access Scope (Choose Allow default access)
  • Firewall Setting (Choose Allow HTTP traffic and Allow HTTPS Traffic)

When done, click create.

Create an instance in Google Cloud Platform

Running instance

Now that the VM is running, Google has provided us with an internal IP and external IP addresses. These IP addresses will be assigned to the Vodia PBX to determining the audio packets.

Internal and External IPs in Google Cloud Platform

Edit the firewall

Next, we are going to set up the firewall on Google Cloud.

Click on your instance as shown below.

Setup Firewall Settings in Google Cloud Platform

Next, scroll down to (Network details) and click on (View details)

Network Instances for Firewall in Google Cloud Platform

In the right-hand panel choose (Firewall rule).

Firewall Rules in Google Cloud Platform

Create Firewall Rules

  • Click on (default-allow-internal)
  • Change the IP source address from to 10.128.0.0/9 to 0.0.0.0/0 and save.
  • This will take care of the following ports
  • 80     (TCP)
  • 443   (TCP
  • 5060 (UDP)
  • 5061 (TCP)
  • RTP Ports 49152- 64512
  • LDAP Ports 2345-2346
Create Firewall Rules in Google Cloud Platform

Installing the Vodia PBX Phone System

To install the VodiaPBX, we need to log in with SSH, to do this, click on the SSH drop down and choose (Open in the browser window).

Install the Vodia PBX to login with SSH

This will open an SSH session on your browser.

Connect SSH Session on browser in Google Cloud Platform

Since I am using Debian, I am going to navigate to https://doc.vodia.com/install_linux for the executable script.

In the command line, copy-paste the following in order.

In Debian:

  • wget http://portal.vodia.com/downloads/pbx/install-debian.sh after the script has been downloaded copy-paste the following cmd.
  • chmod a+rx install-debian.sh
Debian installation script for Vodia PBX
  • To execute the script you will have to use sudo ./install-debian.sh then sit back and relax!
Installing Debian in Vodia PBX

When the script is done installing, the Vodia PBX will automatically startup.

Logging into the Vodia PBX

To log into the Vodia PBX, you will need to check your external IP address, this can be found in the main page of your VM.

Copy-paste the IP or click on the open browser link.

Vodia Login in VM instances

You will be presented with the Vodia login page, The user login is admin, there’s no password configured yet, so we will have to create one.

Vodia Login Screen

You will be presented with the license terms, click Agree to continue.

Vodia License Terms

Vodia PBX license

Setting up the login password

Navigate to settings –> Security –>General

  • Enter a username
  • Enter a password /repeat
  • Allow login only from listed address ( is optional)
  • Save the password in a safe place
Vodia PBX - Administration Login Settings

Behind NAT

Since Google Cloud is behind NAT, we need to program the Vodia PBX to use the external IP address of the VM. The ( IP Routing list ) in the Vodia PBX is used to override the operating system IP routing table. (This setting will be consulted by the system before consulting/using the operating system)

To check your internal/external IP address, click on the three-line icon and scroll down to (Compute Engine)

NAT in Google Cloud Platform

In this example, my internal IP is 10.150.0.2 and my external IP is 35.236.234.40

IP Routing list value is as follow.

Example: :10.150.0.0/255.255.255.0/10.150.0.2 0.0.0.0/0.0.0.0/35.236.234.40

To add your IP routing list on the Vodia PBX navigate to Settings –>SIP –>Setting as shown below, and add your value and save.

IP routing List in the Vodia PBX

Well, that was fun! To learn more about the Vodia PBX phone system visits us at https://vodia.com/getting-started-with-vodia

Latest Articles

View All

Vodia Ring Groups - An Overview

The Vodia PBX provides businesses with a comprehensive telephony solution designed for both on-premise and cloud systems, offering features like audio conference rooms, auto attendants, voicemails, call forwarding, and ring groups. A ring group, or hunt group, directs incoming calls to designated team members using strategies like simultaneous or sequential ringing, ensuring calls reach an available agent quickly. Vodia’s PBX supports multi-stage call routing, customizable ring melodies, CRM integration, and options like music on hold and call recording. Ideal for enterprises managing low-volume call groups, Vodia’s system enhances accessibility and call management efficiency for businesses worldwide.

November 7, 2024

The Vodia On-Premise PBX: A Solution for Modern Communication

The Vodia On-Premise PBX (Private Branch Exchange) is a versatile communication solution that enables businesses to manage calls efficiently within their own network. It supports various operating systems and minimizes resource use while offering features like conferencing, instant messaging, and integration with mobile and VoIP devices. This system emphasizes data privacy, allowing companies to maintain control over their information, and provides customizable options for enhanced productivity. With its robust architecture, the Vodia PBX ensures reliability and easy backups, making it an excellent choice for businesses aiming to modernize their communication infrastructure while reducing long-term costs.

October 31, 2024

Australians Now Have “The Right to Disconnect”

Australia recently introduced a “right to disconnect” law allowing employees at larger companies to avoid work communications outside of set hours. Employees are now protected from having to respond to after-hours calls and emails, a rule which will extend to small and medium-sized businesses in 2025. Vodia Networks has supported work-life separation since launching its multi-tenant PBX system over a decade ago. Vodia’s app includes features such as Do-Not-Disturb (DND) modes and service flags, allowing employees to manage after-hours calls and redirect communications to different offices or voicemail as needed. These capabilities support productivity without compromising employee balance.

October 25, 2024