Shiva Logo

Configuring RADIUS Local Authentication

The following examples describe some RADIUS local authentication configurations.

Note the following requirements for RADIUS local authentication:

  • You must set up Layer Two Forwarding (L2F).

  • All users must be included in both the Network Access Server (NAS) RADIUS user list and the Home Gateway RADIUS user list.

  • You must configure the Home Gateway.

Note: The device cannot open tunnels using SPAP.

Example 1

This example describes how to use a RADIUS server to allow users to dial in to any phone group using the nickname of the Home Gateway.

After setting up L2F on your network, add the following configuration parameters to the configuration file on your Shiva® device to allow both L2F and non-L2F users to dial in to any phone group:

[PhoneGroup*]
VPDNLocalAuthenticate=1
VPDNTunnelServerFromUserAuth=1
VPDNTunnelServerIsNickname=1
PPPDesiredPeerMRU=1500

[Security]
DefaultType=radius
RadiusServerList=Ipaddress, 1645, key
UseExtendedAttributes=1
ExtendedAttributeBase=51
ExtendedAttributeCount=1
RadiusTagTunnelAttribute=0

[L2FHomeGateway:<nickname>]
Enabled=1
NetworkAccessServerName=<enter NAS name>
Protocol=IP
IPAddress=<enter HomeGateway IP Address>
NetworkAccessServerTextPassword=<enter NAS password>

[PhoneGroup*] Section Parameters

If you set the VPDNLocalAuthenticate parameter to 1, the device authenticates the connection locally and then at the remote Home Gateway. If you set this parameter to 0, the device authenticates only at the remote Home Gateway.

If you set the VPDNTunnelServerFromUserAuth parameter to 1, the Home Gateway is obtained from either the /hg or RADIUS Tunnel-Server-Endpoint. If you set this parameter to 0, the Home Gateway is set for that phone group to the nickname you set in the L2FForcedHomeGateway parameter. This nickname must be the same as one defined in an [L2FHomeGateway:<nickname>] section.

For the PPPDesiredPeerMRU parameter, you must match the Home Gateway. If the PPP peer offers an MRU of a lower value, double it to exceed this value.

Setting VPDNTunnelServerIsNickname to 1 means that each user must have either /hg=<nickname> section in the RADIUS user list, or Tunnel-Server-Endpoint=<nickname> in their RADIUS user list. The tunnel attributes are then obtained in the L2FHomeGateway:<nickname> section of the Shiva device configuration. If VPDNTunnelServerIsNickname is set to 0, you must enter the /hg=ipaddress or Tunnel-Server-Endpoint=Ipaddress and the tunnel attributes into the RADIUS user list or [L2FHomeGateway:*] default section.

[Security] Section Parameters

The extended attributes must include attribute 51 (Shiva-user-attributes). The Base + Count must not include any of the RADIUS tunnel attributes (64-67,69).

Note: The command shell L2F login command does not work with this configuration.

Set the following configuration parameters to the RADIUS user list in both the Home Gateway and the NAS. Do not append @tunnel to username.

Username Password = "passwd"
Shiva-User-Attributes = "/di/do/df/sh/ml=2", (add other permissions if needed)
Tunnel-Server-Endpoint = "nickname"

Port-Limit=2

Nasname Password = "passwd"

Hgname Password = "passwd"
Shiva-User-Attributes = "/l2f"

Example 2

This example describes how to use a RADIUS server to allow users to dial in to any phone group using the IP address of the Home Gateway.

In the following configuration example, L2F or non-L2F users may dial in to any phone group, but the home gateway is defined by its IP address rather than its nickname in the tunnel-server-endpoint field.

In this example, the tunnel-attributes are obtained from the RADIUS user list or [L2FHomeGateway:*] default section. It is not necessary to have an [L2FHomeGateway:<nickname>] section in the Shiva device configuration.

You must configure on the Shiva device:

[L2FHomeGateway:*]
Enabled=1

[PhoneGroup*]
VPDNLocalAuthenticate=1
VPDNTunnelServerFromUserAuth=1
VPDNTunnelServerIsNickname=0
PPPDesiredPeerMRU=1500

[Security]
DefaultType=RADIUS
RadiusServerList=<IP address, UPD port, secret>
UseExtendedAttributes=1
ExtendedAttributeBase=51
ExtendedAttributeCount=1
RadiusTagTunnelAttribute=0

[L2FHomeGateway:*]
Enabled=1

Note: There is no [L2FHomeGateway:<nickname>] section because the tunnel attributes are defined in the RADIUS user list.

RADIUS Server Configuration

Set the following configuration parameters to the RADIUS user list. Do not append @tunnel to username.

Username Password = "passwd"
Shiva-User-Attributes ="/di/do/df/sh/ml=2",
Tunnel-Server-Endpoint = "IP address"
Tunnel-Client-Endpoint = "NASname"
Tunnel-Type = 2
Tunnel-Medium-Type = 1
Tunnel-Password = "plaintextnaspasswd"

Nasname Password = "passwd"

Hgname Password = "passwd"
Shiva-User-Attributes = "/l2f"

Note: Tunnel-Type=2 specifies L2F and Tunnel-Medium-Type=1 specifies IP.

Example 3

This example describes how to configure a RADIUS server to allow L2F users to use a Shell command for logging in to layer two forwarding.

In the [PhoneGroup*] section, use the L2FForcedHomeGateway parameter so that any user dialing in to that phone group must be an L2F user. You must set VPDNTunnelServerFromUserAuth to 0 so that the device obtains the home gateway nickname from the L2FForcedHomeGateway parameter. You must also set L2FIncludeNickname to 0 so that the @nickname is not tacked on to the user name.

Note: You cannot dial in to a phone group that is configured to force the L2F home gateway with a non-L2F user.

Add the following configuration parameters to the configuration file on your Shiva device:

[PhoneGroup*]
VPDNLocalAuthenticate=1
VPDNTunnelServerFromUserAuth=0
VPDNTunnelServerIsNickname=1
PPPDesiredPeerMRU=1500

Note: For the PPPDesiredPeerMRU parameter, you must match the HG. If the PPP peer offers an MRU of a lower value, double it to exceed this value. This parameter is required for Trumpet to work.

[PhoneGroup*]
L2FForcedHomeGateway=<nickname>
L2FIncludeNickname=0

[Security]
DefaultType=radius
RADIUSServerList=<IP address, UPD port, secret>
UseExtendedAttributes=1
ExtendedAttributeBase=51
ExtendedAttributeCount=1
RadiusTagTunnelAttribute=0

[L2FHomeGateway:nickname]
Enabled=1
NetworkAccessServerName=<NAS name>
Protocol=IP
IPAddress=<NAS IP Address>
NetworkAccessServerTextPassword=<NAS password>

RADIUS Server Configuration

Set the following configuration parameters to the RADIUS user list:

Username Password = "passwd"
Shiva-User-Attributes = "/di/do/df/sh/ml=2",
Tunnel-Server-Endpoint = "nickname"
Port-Limit = 2

Nasname Password = "passwd"

Hgname Password = "passwd"
Shiva-User-Attributes = "/l2f"

Related Information

Configuration Examples

[ Top of Page . . . ]