Shiva Logo

Configuring CLI Authentication and CLI Dial-Back

You can configure a Shiva® device for calling line identifier (CLI) authentication. When you enable CLI authentication on the device, the device authenticates the phone number of each incoming call before accepting the call. If the number in the list of valid CLI phone numbers has dial-back permission, the device dials the number back before accepting the call. If the number does not have CLI dial-back permission, the call continues as a normal dial-in call. You may optionally disable CLI authentication on particular phone groups.

There are 2 modes of CLI authentication: general and dial-back only (see Examples). In either case, you can configure the device to authenticate the calling phone number of all incoming calls before accepting them using either a local list of valid phone numbers (see Using an Internal CLI List for Authentication) or a RADIUS database of phone numbers (see Using a RADIUS Server for CLI Authentication).

If you enable CLI authentication with CLI dial-back on a device, you must also configure 2-way authentication on both the local and remote devices. See Configuring Two-Way Authentication.

Note: You must configure CLI authentication manually; you cannot configure this feature using Shiva Configurator. You can use the command shell or the text-editing feature of Shiva Configurator to edit the device configuration file.

Enabling CLI Authentication

To configure CLI authentication on the device, you must set the Enabled parameter to 1 in the [CLIAuthentication] section. By default, CLI authentication is not enabled.

[CLIAuthentication]
Enabled=1

Disabling CLI Authentication for a Phone Group

If you enable CLI authentication for the device (by setting the Enabled parameter to 1 in the [CLIAuthentication] section), all phone groups, by default, use CLI authentication (the CLIAuthEnabled parameter is set to 1 by default for each phone group).

You can disable CLI authentication for a phone group by setting the CLIAuthEnabled parameter to 0 in any [PhoneGroupn] section.

[Phonegroup1]
CLIAuthEnabled=0

General CLI Authentication

General calling line identifier (CLI) authentication ensures that the device authenticates the calling number of every incoming call before accepting each call.

If the phone number of an incoming call is not in the valid CLI list, the device rejects the call. If the phone number of an incoming call is in the valid CLI list with or without CLI dial-back permission, the call continues as it normally does for a dial-in call; the device performs user authentication using the configured security method. If the authenticated CLI has dial-back permission, the device initiates dial-back before accepting the call. The device then performs user authentication as it is configured.

You must specify whether the authentication is performed on a RADIUS server or locally and define a list of valid CLI numbers either on the RADIUS server or in an internal list, respectively. See Using a RADIUS Server for CLI Authentication or Using an Internal CLI List for Authentication.

To configure a Shiva device for general CLI authentication, ensure that the AuthForDialbackOnly parameter is set to 0 or not present in the [CLIAuthentication] section. When the AuthForDialbackOnly parameter is not present in the configuration file, it is set to 0 by default so that the Shiva device rejects all calls from numbers that are not in the valid CLI list.

[CLIAuthentication]
Enabled=1
AuthForDialbackOnly=0

CLI Authentication for Dial-Back Only

Instead of configuring general CLI authentication, you can configure the Shiva device to perform CLI authentication only for calls that require dial-back. As with general CLI authentication, the device compares the incoming phone number against the valid CLI list before accepting the incoming call. If the number is in the valid CLI list, the call continues as a normal dial-in call; if the number has CLI dial-back permission, the device drops the connection to the incoming call and initiates dial-back.

If the incoming phone number is not in the valid CLI list, however, the call is not rejected; the call continues as a normal dial-in call without dial-back.

Note: If you configure CLI for dial-back only, you need to configure in the valid CLI list only the calling line identifiers that require dial-back.

To configure CLI authentication for dial-back only:

[CLIAuthentication]
Enabled=1
AuthForDialbackOnly=1

Using a RADIUS Server for CLI Authentication

When you enable CLI authentication, the Shiva device authenticates incoming phone numbers using a RADIUS server (the AuthMethod parameter in the [CLIAuthentication] section is set to RADIUS by default). You must configure on your RADIUS server a list of valid incoming phone numbers and dial-back permissions. You may also assign a Dialback-Number attribute to the entry for a calling number if you want the CLI dial-back function to dial back a number that is different from the calling number. See Configuring a RADIUS Server for CLI Authentication. If you do not use a RADIUS server for authentication, see Using an Internal CLI List for Authentication.

You must also configure a password on the Shiva device to request CLI authentication from the RADIUS server. The Shiva device sends this password to the RADIUS server in all Access-Request packets for CLI authentication. This password must be associated with the entry for each incoming phone number in the RADIUS database. You can configure the password in the [CLIAuthentication] section or in a [PhoneGroupn] section. The password in the [PhoneGroupn] section overrides the password in the [CLIAuthentication] section if you configure both.

[CLIAuthentication]
Enabled=1
AuthMethod=RADIUS

AuthTextPassword=abc123

[PhoneGroup1]
CLIAuthTextPassword=abc123def

Sending Callback-Framed Packets

If you are using a RADIUS server for CLI authentication and you configure the remote access device to perform general CLI authentication (AuthForDialbackOnly is set to 0), you must set the SendCallbackFramed parameter to 1 if you want to use CLI dial-back.

To configure the Shiva device to send the Service-Type attribute with the value of Callback-Framed (value = 4 as defined in the RADIUS Authentication RFC) in Access-Request packets to the RADIUS server:

[CLIAuthentication]
AuthForDialbackOnly=0;
SendCallbackFramed=1

Note: If you configure the device for CLI authentication for dial-back only (AuthForDialbackOnly is set to 1), the device automatically sends the Service-Type attribute in Access-Request packets to the RADIUS server with the value of Callback-Framed. You do not need to configure the SendCallbackFramed parameter.

Using an Internal CLI List for Authentication

When you enable CLI authentication, the Shiva device authenticates incoming phone numbers using a RADIUS server by default (the AuthMethod parameter is set to RADIUS). Optionally, you can configure the Shiva device to authenticate incoming numbers using a local internal list by setting the AuthMethod parameter to Local. You must also configure a comma-separated list of phone numbers in the ValidCLI parameter, specifying /db after each number that has dial-back permission.

Assigning CLI Dial-Back Permission

To give a calling number dial-back permission in the local ValidCLI list, append the switch "/db" to the number in the list.

[CLIAuthentication]
AuthMethod=Local
ValidCLI=7815551212,7815551313/db,8383,1452/db

Preventing Multiple Calls From One CLI

Some third-party devices may attempt to make more than one call to the Shiva device. To prohibit the device from accepting multiple calls from the same calling number, you can set the OneCallPerCLI parameter in the [CLIAuthentication] section. This parameter is enabled by default.

[CLIAuthentication]
OneCallPerCLI=1

Adding and Deleting Digits in the Dial-Back Number

After the Shiva device performs CLI authentication, the device initiates CLI dial-back if the calling number has CLI dial-back permission. The Shiva device uses the CLI number as the dial-back number unless you use a RADIUS server for CLI authentication and assign a Dialback-Number attribute specifying a modified number to dial back.

If you use local CLI authentication (that is, by using the validCLI parameter to define the CLI numbers), you may modify the dial-back number using the CLIAuthIgnoreDig and CLIAuthAddDig parameters. The Shiva device processes the CLIAuthIgnoreDig parameter first.

Note: The CLIAuthIgnoreDig and CLIAuthAddDig parameters are processed after CLI authentication is processed. If you configure the RADIUS database with the CLI dial-back numbers, you must not use the CLIAuthIgnoreDig and CLIAuthAddDig parameters. If you do use these parameters, the Shiva device modifies the dial-back number (ignoring and adding digits as specified) after the RADIUS server configures the dial-back number.

Using the CLIAuthIgnoreDig Parameter

If the dial-back number contains an area code (or other digits) that you do not need to use for dialing back, you can configure the device to remove a number of leading digits from the CLI phone number. Using the CLIAuthIgnoreDig parameter, you can specify the number of digits in the CLI dial-back number that you want the device to ignore.

For example, to configure the device to remove the 3 leading digits from the phone number before adding the digits specified in CLIAuthAddDig, and before dialing back:

[PhoneGroup1]
CLIAuthIgnoreDig=3

Using the CLIAuthAddDig Parameter

To make a call outside of the PSTN or for long-distance calls, you may need to prefix the phone number with 1 or more digits before dialing back. You can configure the CLIAuthAddDig parameter to specify additional digits to be dialed before the dial-back number is dialed.

For example, to configure the device to dial 91 before dialing the dial-back number:

[PhoneGroup1]
CLIAuthAddDig=91

Examples

The following examples show 2 types of CLI authentication:

General CLI Authentication Using a RADIUS Server

In this example, if the incoming call is from 6178889000 (and this number is configured for dial-back on the RADIUS server), the number dialed back is 916178889000. The CLIAuthAddDig parameter inserts the digits 91 before dialing back to the CLI number.

[CLIAuthentication]
Enabled=1
AuthForDialbackOnly=0
AuthMethod=RADIUS
OneCallPerCLI=1
SendCallbackFramed=1
AuthTextPassword=abc

[PhoneGroup1]
Enabled=1
CLIAuthEnabled=1
CLIAuthAddDig=91

CLI Authentication for Dial-Back Using an Internal CLI List

CLI dial-back only authentication allows the device to determine whether the phone number of an incoming call has permission to be dialed back.

In this example, if the incoming call is from 6178889000, it is found in the valid CLI list with dial-back permission. The number dialed back is 98889000. CLIAuthIgnoreDig parameter ignores the first 3 digits (617) and the CLIAuthAddDig parameter inserts the digit 9 before dialing back to the CLI number.

[CLIAuthentication]
Enabled=1
AuthForDialbackOnly=1
AuthMethod=local
OneCallPerCLI=1
ValidCLI=2123458888/db,8023000,6178889000/db

[PhoneGroup1]
Enabled=1
CLIAuthEnabled=1
CLIAuthIgnoreDig=3
CLIAuthAddDig=9

If you are using PAP for 2-way authentication, add these parameters:

PPP2WayAuthEnabled=1
PPPPAPEnabled=1
PAPHostName=alpha
PAPTextPassword=xyz

If you use CHAP for 2-way authentication, add these parameters:

PPP2WayAuthEnabled=1
PPPCHAPEnabled=1
CHAPHostName=alpha
CHAPTextPassword=xyz

Note: You cannot use SPAP for 2-way authentication.

Description of Parameters

You can use Shiva Configurator to configure the parameters in the previous example, except for those described in the following tables.

The following table describes parameters in the [CLIAuthentication] section.

[CLIAuthentication] Parameter Description

AuthForDialBackOnly

Specifies whether the Shiva device performs general CLI authentication (rejecting all calls that are not authenticated in the CLI database) or authentication for dial-back only (requiring authentication only to perform dial-back)

Syntax: AuthForDialBackOnly=<Boolean 0 or 1>

Default: AuthForDialBackOnly=0

AuthMethod

Specifies whether the Shiva device uses RADIUS or local authentication to accept or reject an incoming call before answering it

Syntax: AuthMethod=<local or RADIUS>

Default: AuthMethod=RADIUS

AuthPassword

Sets the RADIUS authentication password for an incoming CLI dial-back call

If the password is omitted or null (the default), the CLI of the incoming call becomes the password.

Syntax: AuthPassword=<string of characters>

Default: Unset

Enabled

Enables or disables CLI authentication

When CLI authentication is enabled, the Shiva device authenticates the calling phone number and optionally initiates dial-back before the device answers the call.

Syntax: Enabled=<Boolean 0 or 1>

Default: Enabled=0

OneCallPerCLI

Permits or prevents the device from accepting multiple calls from the same calling number. You can use this parameter to prevent the device from accepting a call from a CLI number when the device already has a CLI dial-back connection to that number.

Syntax: OneCallPerCLI= <Boolean 0 or 1>

Default: OneCallPerCLI=1

SendCallbackFramed

Specifies whether the Shiva device sends the Service-Type attribute of Callback-Framed in the Access-Request packet to a RADIUS server during CLI authentication

This Service-Type attribute indicates that the Shiva device requests a dial-back connection.

The Livingston RADIUS server refers to the Callback-Framed parameter as Dialback-Framed-User. Some RADIUS servers may interpret this parameter to mean that they should authenticate phone numbers rather than user names.

Syntax: SendCallbackFramed= <Boolean 0 or 1>

Default: SendCallbackFramed=0

ValidCLI

Specifies a list of telephone numbers that require CLI authentication. If you enter /db following the number, that number has dial-back permission.

Syntax: validCLI= <telephone number [/db], [,telephone number[/db]]>

/db - Indicates that the phone number is allowed to use dial-back. You must specify /db after each number that has dial-back permission.

Default: Unset

The following table describes parameters in the [PhoneGroupn] section.

[PhoneGroupn] Parameter Description

CLIAuthEnabled

Enables or disables CLI authentication on this phone group

Syntax: CLIAuthEnabled= <Boolean 0 or 1>

Default: CLIAuthEnabled=1

CLIAuthAddDigit

Alters the phone number that the Shiva device calls back by adding digits as a prefix to the outgoing CLI phone number

This parameter is generally used for PBX networks that must dial additional digits to get out to the PSTN.

Note: You cannot configure one phone group to dial back both local numbers and long distance numbers because local numbers require that the area code be stripped off and a 1 be added to the beginning of the phone number. For long-distance calls, the area code must not be stripped off. You cannot use the CLIAuthAddDig and CLIAuthIgnoreDig parameters in one phone group to handle both of these situations correctly. If you use a RADIUS server to validate the CLI number and configure the dial-back number in the RADIUS database (by assigning the Dialback-Number attribute to the entry for the calling number), you can avoid this problem.

Syntax: CLIAuthAddDig=<digits to add as a prefix to the phone number>

Default: Unset

CLIAuthIgnoreDig

Deletes the specified number of digits from the CLI call-back number

This parameter alters the phone number the Shiva device calls back when it dials back to a user before the call is answered if CLI authentication of the phone number revealed that the phone number has dial-back permission.

This parameter is generally used when the CLI (calling number of the incoming call) includes area code information, but you do not need the area code to complete the outgoing call. You can use this parameter to delete a specified number of digits from the most significant part of the incoming phone number.

Note: You cannot configure one phone group to dial back both local numbers and long-distance numbers because local numbers require that the area code be stripped off and a 1 be added to the beginning of the phone number. For long-distance calls, you must not strip off the area code. See the note in the description of parameter CLIAuthAddDig.

Syntax: CLIAuthIgnoreDig=<number of digits to ignore at the beginning of the CLI number>

Default: CLIAuthIgnoreDig=0

CLIAuthTextPassword

Sets the password to be used for RADIUS authentication of the phone number of an incoming call

The password is used as the Password attribute for all RADIUS Access-Request packets that are sent to the RADIUS authentication server for CLI authentication.

The CLIAuthTextPassword parameter overrides the AuthPassword parameter in the [CLIAuthentication] section.

If both the AuthPassword (in [CLIAuthentication]) and the CLIAuthTextPassword (in [PhoneGroupn]) parameters are omitted or left as null strings, the CLI of the incoming call becomes the password.

Note: When the CLIAuthTextPassword parameter is read by the Shiva device, the Shiva device encrypts the password, writes it back out to the CLIAuthPassword parameter, and then clears the CLIAuthTextPassword parameter.

Syntax: CLIAuthTextPassword=<password sent to the RADIUS authentication server for CLI authentication>

Default: Unset

Related Information

Configuration Examples

Configuring a RADIUS Server for CLI Authentication

[ Top of Page . . . ]