Shiva Logo

Configuring Two-Way Authentication

You can configure 2-way authentication to allow both ends of a PPP connection to authenticate each other. This feature is most useful for LAN-to-LAN connections. In most situations, the destination end of a LAN-to-LAN connection can authenticate the originator. However, there are cases when the originator must authenticate the system it is calling.

Note: You must configure this feature manually; it is not on a user interface. You can use the command shell or the text-editing feature of Shiva® Configurator to edit the device configuration file.

If you have enabled CLI authentication with dial-back, you must also enable 2-way authentication. You are also required to configure a CHAP (or PAP) host name and password in the [PhoneGroupn] section of the configuration file.

The following examples illustrate scenarios of 2-way authentication: one that uses calls initiated by a remote router and another that uses calls initiated by the Shiva device.

Calls Initiated by Remote Router

The following example describes the parameters for configuring 2-way authentication in which the Shiva device authenticates itself to the remote router, such as a Shiva AccessPort, that is dialing in to PhoneGroup1 using PAP for authentication.

Note: This example configures the device to use PAP authentication. If the device authenticates using CHAP, you must configure the CHAPHostName and CHAPTextPassword parameters instead of the PAP parameters in the [PhoneGroup1] section.

[Site:bedford]
Enabled=1
PortPool1=out1
PhoneNumber1=97727401

[LanToLan]
Originate=1

[PhoneGroup1]
Enabled=1
LanToLanOriginate=1
OutPools=out1
PPP2WayAuthEnabled=1
PPPPAPHostName=alpha
PPPPAPTextPassword=xyz

If, after enabling 2-way authentication, the device receives an LCP request from the remote router (requesting that the device authenticate itself), the device can then acknowledge the request. This situation occurs during the LCP negotiation stage of PPP connection establishment.

If 2-way authentication was negotiated during LCP negotiation, the device sends an authentication request to the remote router during the authentication stage of establishing a PPP connection and attempts to authenticate itself using a CHAP or PAP host name and password.

Note: Parameters in the [PhoneGroupn] section take precedence over the same parameters in the [PPP] section. The CHAP and PAP parameters replace the UserName and UserTextPassword parameters in the [Site:<sitename>] section.

Description of Parameters

The following table describes parameters in the [Site:<sitename>] section that you must configure manually.

Parameter Description

RequestAuthentication

Determines whether a remote router must authenticate itself when the Shiva device is originating a LAN-to-LAN connection to it

Syntax: RequestAuthentication= <Boolean 0 or 1>

Default: RequestAuthentication=0

CHAPHostname

Sets the CHAP host name that the Shiva device uses when authenticating itself to a remote site to which it is initiating a connection

Syntax: CHAPHostname=<string specifying the CHAP host name>

Default: Unset

CHAPTextPassword

Sets the CHAP password that the Shiva device uses when authenticating itself to a remote site to which it is initiating a connection

Syntax: CHAPTextPassword=<text string>

Default: Unset

PAPHostname

Sets the PAP host name that the Shiva device uses when authenticating itself to a remote site to which it is initiating a connection

Syntax: PAPHostname=<text string>

Default: Unset

PAPTextPassword

Sets the PAP password that the Shiva device uses when authenticating itself to a remote site to which it is initiating a connection

Syntax: PAPTextPassword=<text string>

Default: Unset

The following table describes the parameters in the [PhoneGroupn] section that you must configure manually.

Parameter Description

CHAPHostname

Sets the CHAP host name that the Shiva device uses when authenticating itself to a remote site to which it is initiating a connection

Syntax: CHAPHostname=<string specifying the CHAP host name>

Default: Unset

CHAPTextPassword

Sets the CHAP password that the Shiva device uses when authenticating itself to a remote site to which it is initiating a connection

Syntax: CHAPTextPassword= <text string>

Default: Unset

PAPHostname

Sets the PAP host name that the Shiva device uses when authenticating itself to a remote site to which it is initiating a connection

Syntax: PAPHostname=<text string>

Default: Unset

PAPTextPassword

Sets the PAP password that the Shiva device uses when authenticating itself to a remote site to which it is initiating a connection

Syntax: PAPTextPassword=<text string>

Default: Unset

Calls Initiated by the Shiva Device

When the Shiva device originates a LAN-to-LAN connection, it always authenticates itself. You must set the CHAP or PAP host names and passwords that the device uses to authenticate itself when it connects. In addition, you should set the RequestAuthentication parameter to 1 to ensure that the receiving site also authenticates itself to the Shiva device.

In this example, the LAN-to-LAN site, RemoteSite1, authenticates itself using the PAP host name alpha and the PAP text password xyz when the Shiva device originates a LAN-to-LAN connection to it.

Note: This example configures the device to use PAP authentication. If the device authenticates using CHAP, you must configure the CHAPHostName and CHAPTextPassword parameters instead of the PAP parameters in the [Site:RemoteSite1] section.

[Site:RemoteSite1]
Enabled=1
PortPool1=out1
PhoneNumber1=97727401
RequestAuthentication=1
PAPHostName=alpha
PAPTextPassword=xyz

[LanToLan]
Originate=1

[PhoneGroup1]
Enabled=1
LanToLanOriginate=1
OutPools=out1
PPPPAPEnabled=1
PPPCHAPEnabled=0
PPPSPAPEnabled=0

Note: For backwards compatibility, the CHAPHostName, PAPHostName, CHAPTextPassword, and PAPTextPassword parameters replace the UserName and UserTextPassword parameters in the [Site:<sitename>] section.

Description of Parameters

The following table describes the parameters in the [PhoneGroupn] section that you must configure manually. See the table of phone group parameters for the previous example, Calls Initiated by Remote Router, also.

Parameter Description

PPPDefaultAuthProto

Sets the PPP authentication protocol that is offered in the first LCP configuration request

Syntax: PPPDefaultAuthProto=<0xC023, 0xC223, or 0xC027>

0xC023 = PAP

0xC223 = CHAP

0xC027 = SPAP

Be sure to enter an acceptable value for this parameter. For some peer LCP implementations, the Network Access Server closes LCP when it sees an unknown LCP authentication option value instead of sending the specified Configure_NAK.

If SPAP is disabled to allow VPN tunneling, you must set this parameter for PAP or CHAP because the default value is SPAP.

Default: PPPDefaultAuthProto=0xC027

PPPPAPEnabled

Enables or disables PAP as a PPP authentication protocol on the phone group for LCP

Syntax: PPPPAPEnabled= <Boolean 0 or 1>

Default: PPPPAPEnabled=1

PPPCHAPEnabled

Enables or disables CHAP as a PPP authentication protocol on the phone group for LCP

Syntax: PPPCHAPEnabled= <Boolean 0 or 1>

Default: PPPCHAPEnabled=1

PPPSPAPEnabled

Enables or disables SPAP as a PPP authentication protocol on the phone group for LCP

Syntax: PPPSPAPEnabled= <Boolean 0 or 1>

Default: PPPSPAPEnabled=1

PPP2WayAuthEnabled

Enables the Shiva device to authenticate itself during the authentication phase of LCP connection establishment

You must enable this parameter (or the same parameter in the [PPP] section) if a remote router (for example, a Shiva AccessPort) that is dialing into a Shiva device on this phone group requires the Shiva device to authenticate itself.

Syntax: PPP2WayAuthEnabled=<Boolean 0 or 1>

Default: PPP2WayAuthEnabled=0

Using the [PPP] Section Instead of the [PhoneGroupn] Section

Instead of using the PPP2WayAuthEnabled, PPPPAPEnabled, PPPCHAPEnabled, PPPSPAPEnabled, PAPHostName, PAPTextPassword parameters in the [PhoneGroup1] section, you may set the following parameters in the [PPP] section if the parameters apply to all phone groups:

Note: Parameters in the [PhoneGroupn] section take precedence over the same parameters in the [PPP] section.

[PPP]
2WayAuthEnabled=1
PAPEnabled=1
CHAPEnabled=0
SPAPEnabled=0
PAPHostName=alpha
PAPTextPassword=xyz

The following table describes the parameters in the [PPP] section that you must configure manually.

Parameter Description

2WayAuthEnabled

Enables the Shiva device to authenticate itself to a remote router when the Shiva device is the destination end of a PPP connection

If a remote router, such as a Shiva AccessPort, dials in to a Shiva device and requires the Shiva device to authenticate itself, this parameter, or the PPP2WayAuthEnabled parameter in a phone group section, must be enabled.

Syntax: 2WayAuthEnabled=<Boolean 0 or 1>

Default: 2WayAuthEnabled=0

PAPEnabled

Enables or disables the use of PAP when the Shiva device makes a PPP connection

If you set PAPEnabled to 1, the Shiva device proposes PAP as an authentication protocol and accepts PAP if it is proposed by the PPP peer.

Syntax: PAPEnabled=<Boolean 0 or 1>

Default: PAPEnabled=0

CHAPEnabled

Enables or disables the use of CHAP when the Shiva device makes a PPP connection

If you set CHAPEnabled to 1, the Shiva device proposes CHAP as an authentication protocol and accepts CHAP if it is proposed by the PPP peer.

Syntax: CHAPEnabled=<Boolean 0 or 1>

Default: CHAPEnabled=0

SPAPEnabled

Enables or disables the use of SPAP when the Shiva device makes a PPP connection

If you set SPAPEnabled to 1, the Shiva device proposes SPAP as an authentication protocol and accepts SPAP if it is proposed by the PPP peer.

Syntax: SPAPEnabled=<Boolean 0 or 1>

Default: SPAPEnabled=0

CHAPHostname

Sets the CHAP host name that the Shiva device uses to authenticate itself when the Shiva device is the destination end of a PPP connection (or a CLI dial-back connection has been established) and two-way authentication has been enabled and negotiated during LCP negotiation

The Shiva device sends an authentication request to the remote router during the authentication stage of PPP connection establishment.

Note: The CHAP host name is also the host name sent in the Challenge-Request packet to the remote router.

Syntax: CHAPHostname=<string specifying the CHAP host name>

Default: Unset

CHAPTextPassword

Sets the CHAP password the Shiva device uses to authenticate itself during LCP negotiation

If the Shiva device is the destination end of the connection (or a CLI dial-back connection has been established) and 2-way authentication was negotiated during LCP negotiation, the Shiva device sends an authentication request to the remote router during the authentication stage of PPP connection establishment.

Note: The CHAP text password is also the password in the Challenge Request packet sent to the remote router.

Syntax: CHAPTextPassword=<text string>

Default: Unset

PAPHostname

Sets the PAP host name that the Shiva device uses to authenticate itself when it is the destination end of the connection (and 2-way authentication is enabled and negotiated) during LCP negotiation

If the Shiva device is the destination end of the connection (or a CLI dial-back connection has been established) and 2-way authentication was negotiated during LCP negotiation, the Shiva device sends an authentication request to the remote router during the authentication stage of PPP connection establishment.

Syntax: PAPHostname=<text string>

Default: Unset

PAPTextPassword

Sets the PAP password that the Shiva device uses to authenticate itself when it is the destination end of the connection (and 2-way authentication is enabled and negotiated) during LCP negotiation

If the Shiva device is the destination end of the connection (or a CLI dial-back connection has been established) and 2-way authentication was negotiated during LCP negotiation, the Shiva device sends an authentication request to the remote router during the authentication stage of PPP connection establishment.

Syntax: PAPTextPassword=<text string>

Default: Unset

Related Information

Configuration Examples

[ Top of Page . . . ]