How to enable 2FA with SMS in Ozeki SMS Gateway

This article shows you how to enable two-factor authentication (2FA) in Ozeki SMS Gateway using a phone number, where the verification code is delivered as an SMS message. This method is a convenient choice for users who would rather receive a one-time code on their mobile phone than install a separate authenticator app. The guide first shows you how to set up a mobile network connection, since this is required for the system to be able to deliver the verification code, then walks you through enabling phone number based 2FA and logging in with it.

What is two-factor authentication?

Two-factor authentication (2FA) is a security method that requires users to provide two different forms of identification before they can access an account. In Ozeki SMS Gateway, 2FA combines your regular login credentials with a temporary 6-digit code delivered as an SMS message to your mobile phone. This means that even if someone obtains your password, they will not be able to log in without also having access to that phone.

Steps to follow

We assume Ozeki SMS Gateway is already installed on your system. You will also need a mobile network connection to able to send SMS messages, you can check out our guides here: Connect your SMS Gateway to the mobile network.

  1. Set up a connection for sending SMS messages
  2. Enable phone number based 2FA
  3. Log in using phone number verification

Set up a connection for sending SMS messages

The following video shows how to set up an SMPP connection for sending SMS messages.

Open Ozeki SMS Gateway and click Add new connection... in the Connections panel (Figure 1).

Figure 1 - Select Add new connection in Ozeki SMS Gateway

Click Install next to the SMPP client to add this type of connection (Figure 2). The SMPP client is shown here as an example, but Ozeki SMS Gateway also supports several other ways of sending SMS messages, including an SMS modem, an Android SMS client, OZX client, UCP client and CIMD2 client, so you can pick the one that best fits your existing setup.

Figure 2 - Choose Install on SMPP client

Fill in the connection name, the host, port, username and password provided by your SMPP service provider, then enter the telephone number associated with this connection and press Ok (Figure 3).

Figure 3 - Input SMPP server details and create client

Toggle the Connection switch to turn the SMPP client on, then check the Events log to confirm that the connection is online (Figure 4). The connection's Status should read "Ready" once it has successfully established.

Figure 4 - Enable the SMPP client to establish connection

Enable phone number based 2FA

The following video shows how to enable two-factor authentication using a phone number.

Open the Start menu on the Ozeki Desktop (Figure 5). This is where you can reach the Help menu, which contains the security related settings for your account.

Figure 5 - Open Start menu on Ozeki Desktop

Click Help, then select the Set up Two-Factor Authentication menu item (Figure 6). This will open the verification method selection screen, where you can choose how you would like to receive your second authentication factor going forward.

Figure 6 - Select Help, then Set up two-factor authentication menu item

Choose the Phone number verification method from the list of available options (Figure 7). This method delivers your verification code as an SMS message instead of through an authenticator app or email.

Figure 7 - Choose phone number verification method

Press the Set up phone number for two-factor authentication button to continue (Figure 8). This will open a form where you select the connection that should deliver the code and enter the phone number that should receive it.

Figure 8 - Press Set up phone number 2FA authentication button

Select the connection through which the code should be delivered, then enter your phone number in international format and press Send code (Figure 9).

Figure 9 - Select connection and provide phone number

Copy the verification code from your phone (Figure 10). In a live environment this code arrives as a regular SMS message on the phone number you provided.

Figure 10 - Copy verification code from your phone

Paste the 6-digit code into the input field in Ozeki SMS Gateway, then press Verify (Figure 11). This checks the entered code against the one that was sent to your phone, confirming that the code you typed in is correct before the connection is finalized.

Figure 11 - Paste 6-digit code and press Verify

Once verification succeeds, the phone number method will be added as a 2FA option for your Ozeki SMS Gateway account (Figure 12). From this point on, you will be asked for a 6-digit code sent by SMS every time you log in, in addition to your usual password.

Figure 12 - Phone number 2FA added to Ozeki SMS Gateway

Log in using phone number verification

The following video shows how to log in using phone verification in Ozeki SMS Gateway.

Enter your username and password on the login screen as usual (Figure 13).

Figure 13 - Enter account credentials on login screen

After your credentials are accepted, confirm the phone number you provided during 2FA setup by entering it into the input field, then press Send (Figure 14). The masked number shown on the screen helps you recognize which phone number the code is about to be sent to.

Figure 14 - Input 2FA phone number to receive code

Once the phone number is confirmed, an SMS containing a 6-digit code is sent to it. Enter this code into the verification field to complete the login (Figure 15).

Figure 15 - Use 6-digit SMS code for verification

Summary

You have now learned how to set up a mobile network connection, enable two-factor authentication with a phone number, and log in using a code delivered by SMS in Ozeki SMS Gateway. By following the steps above, your account is protected by both a password and a one-time code sent directly to your phone, making it far more secure against unauthorized access. Ozeki SMS Gateway supports multiple verification methods, including an authenticator app and email, so you can choose the option that best fits how you work.


More information