Shiva Logo

L2F Local Authentication

Under the standard architecture of a virtual private network, the layer two forwarding (L2F) user authentication is performed by the remote Home Gateway (HG) end of the tunnel, not by the local network access server (NAS). The NAS passes authentication information (username, password) to the HG using L2F, and the HG verifies it.

For more information, see the following topics:

Why Authenticate Locally?

Normal (Remote) Authentication Process

Local Authentication Process

RADIUS Server Issues

Why Authenticate Locally?

You can configure a LanRover Access Switch or LanRover D/56 to perform a first authentication of VPN dial-in users locally, and then have the authentication passed along to the HG for a second authentication. In addition to increasing the level of security on your LAN, there are other benefits to local authentication, such as simplified configuration, and load balancing.

User-Based Selection of Home Gateway

Using local authentication allows the administrator to select whether to terminate a call locally, or tunnel via L2F. If L2F is chosen, it selects the Home Gateway, on a per-user basis.

Simplifying NAS Configuration

If the authentication protocol in use at the NAS is RADIUS (Remote Authentication Dial In User Services), the RADIUS protocol can provide all information required for establishing the L2F tunnel, without requiring any local (NAS) configuration of this information. In this case, there is no need to have an [L2fHomegateway:<nickname>] section for each HG at each NAS.

Roaming

Roaming is defined as making a local call to an ISP which is not your own, and having the connection tunnel back to the ISP with which you have an account. The IETF Roaming Operations working group is developing a set of protocols for roaming.

These operations are currently defined using a variety of tunneling protocols (including L2F), and using what is known as proxy RADIUS authentication. Proxy RADIUS authentication is supported by multiple RADIUS server implementations (for example, the MERIT RADIUS Authentication Server).

When proxy RADIUS authentication is in use, one RADIUS server asks another RADIUS server to authenticate a username/password, based on the realm identified in the username. The realm is generally preceded by an @ in the username.

Local authentication is a key part of implementing roaming. The called Internet Service Provider (ISP) answers the Point-To-Point Protocol (PPP) call, and begins authentication. The local RADIUS server determines the realm, and does proxy RADIUS authentication to the RADIUS server for that realm (at the home ISP).

In addition to authenticating the user, a proxy RADIUS server provides tunneling parameters as part of the authorization information for the user. This tells the VPDN system at the local ISP (L2F NAS) how and where to tunnel to the home ISP (to its L2F HG.)

Multilink Rendezvous & Load Balancing

All calls that are part of the same PPP Multilink bundle must be sent to the same HG. You can configure your local RADIUS authentication server to send all logins with the same name to the same HG.

Note: Not all RADIUS authentication servers can perform a multilink rendezvous; some RADIUS authentication servers use RADIUS accounting information to keep track of where users are logged in.

This ensures that all calls from the same user are at the same HG, so that PPP Multilink can bundle them.

If the calls are logging in under different user names, the tunnels are directed to the HGs with the smallest loads (load balancing).

Normal (Remote) Authentication Process

During a normal L2F authentication process, a call comes into the NAS, requests a tunnel, connects to the HG, and then authenticates at the HG end of the connection. The following steps outline the exact process:

  1. The Shiva device (which serves as the NAS) answers a phone call, negotiates PPP and the Link Control Protocol (LCP), and then starts to authenticate the call. It receives username and password information from the dial-in system.

  2. The NAS determines if it is a local or L2F call based on information found in the [PhoneGroup] section or the nickname after the @ in the username.

  3. If it is an L2F request, the L2F peer creates a tunnel to the HG for the call (using local configuration information to select the HG), and starts to authenticate the peer tunnel.

  4. The NAS provides the HG with the user authentication information, and the HG validates this information (the HG's validation method is not important to the procedure, as long as it takes place successfully).

  5. After the HG authentication succeeds, it informs the NAS of the successful authentication, and the L2F connection proceeds.

Local Authentication Process

Users may be locally authenticated by the NAS no matter what authentication protocol the NAS is configured to use (an separate authentication server is not required). Users authenticate locally, and the Shiva device decides whether to provide local dial-in or to tunnel over L2F.

Note: To connect to a HG without using an authentication server, the user's profile must include the nickname of the Home Gateway.

However, if the authentication protocol used is RADIUS, all of the configuration information needed to connect a tunnel to the HG is provided as RADIUS authorization parameters.

Local Authentication without RADIUS Authentication

If the authentication protocol is not RADIUS (for example, local userlist, Shiva userlist server, Novell Bindery), then the user is simply authenticated. The normal rules for selecting whether to use L2F, and what HG to connect to if so, are used. This is based on Phone Group configuration, the nickname after the @ in the username, and so on.

There is one extension. If the authorization information for the user includes the /hg=nickname parameter, that chooses that nickname to identify the [L2FHomeGateway:nickname] configuration section. This overrides any selection of the HG based on the PhoneGroup or @nickname in the username.

Local Authentication With RADIUS Authentication

The /hg=nickname configuration may also be used with RADIUS authentication, but it must be placed in the Shiva parameters in the RADIUS configuration.

Authenticating With the NAS

The following section contains the details of a local authentication using only the NAS:

  1. The Shiva device (which serves as the NAS) answers a phone call, negotiates the PPP and LCP, and then starts to authenticate the call.

  2. The NAS queries the authentication server, checking the [PhoneGroupn] for L2F authentication parameters. If this information is not present, the normal authentication process takes place (see the Normal (Remote) Authentication Process section).

  3. If the authorization fails, the entire process fails.

  4. If the authorization is successful, the authentication process looks to the /hg=nickname userlist parameter,
    then the [PhoneGroup]L2FForcedHomeGateway=nickname configuration, and then the @nickname in the username to find the appropriate HG nickname to select the [L2FHomeGateway:nickname] configuration section for the desired HG.

  5. If none of the configuration information indicates that the call should be tunneled over L2F, the NAS establishes a local PPP session.

  6. If the correct information is available, the NAS opens up a tunnel to the HG, and re-authenticates the user using L2F at the HG.

Authenticating With A RADIUS Server

  1. The Shiva device (which serves as the NAS) answers a phone call, negotiates PPP and the LCP, and then starts to authenticate the call.

  2. The NAS queries the authentication server, checking the [PhoneGroup n] for L2F authentication parameters. If this information is not present, the normal authentication process takes place. See the Normal (Remote) Authentication Process section.

  3. The RADIUS server sends Access Accept packets during authentication. The following table shows the information contained in these packets that determines the type of L2F connection that will be established.

    Note: The configuration used to open the tunnel to the specified HG is taken from the attributes on the RADIUS server, so the [L2FHomeGateway: nickname] configuration section is not consulted. Any L2F HG parameters that you want to apply to users and configure at the NAS must be set in the 'default' section, [L2FHomeGateway:*].

    RADIUS Access Accept Packets
    Parameter # Type of connection Description

    64

    Tunnel-Type

    The tunneling protocol. In the current release, this must be 2 (L2F).

    65

    Tunnel-Medium-Type

    The protocol to tunnel over. In the current release, this must be 1 (IP). Alternatively, the device will look in [L2FHomeGateway:*] Protocol =

    66

    Acct-Tunnel-Client-Endpoint

    The name used by the NAS to authenticate to the HG. Alternatively, the device will look in[L2FhomeGateway:*] NetworkAccessServerName =

    67

    Tunnel-Server-Endpoint

    The address of the L2F HG, either as a DNS name, or a dotted-decimal IP address.

    69

    Tunnel-Password

    The password used by the NAS to authenticate the tunnel to the HG Alternatively, the device will look in [L2FhomeGateway:*] NetworkAccessServerPassword=

    Note: If the authorization fails, the entire process fails.

  4. If the authorization is successful, and there is a Tunnel-Server-Endpoint Attribute in the Access Accept RADIUS packet, the user is tunneled over L2F. The configuration used to open the tunnel to the specified HG is derived from the other RADIUS Attributes.

  5. If there is no Tunnel-Server-Endpoint attribute, see step 4.

  6. If the correct information is not found, a local PPP session is established.

  7. If the correct information is available, the NAS opens up a tunnel to the HG, and re-authenticates using L2F at the HG.

RADIUS Server Issues

The following are changes from draft-ietf-radius-tunnel-auth-01.txt which have been implemented in Shiva's version of support for RADIUS Tunnel Attributes:

  • In the [Security] section:

    The RadiusTagTunnelAttribute defaults to True.

    If this parameter is set to True, RADIUS attributes #64 to #69 include one byte of tag. If the parameter is set to False, the one byte of tag is not included at all, resulting in the tag being one byte shorter (not just set to zero).

  • RADIUS attribute #69 (Tunnel-Password) is clear text (not encrypted), and may present a security risk. RADIUS packets may be snooped, resulting in stolen tunnel passwords.

Both of these situations exist because current RADIUS authentication server software has not yet caught up to the standards proposed in the current RADIUS draft.

Related Information

Security and Accounting

RADIUS: Overview

RADIUS: Authentication and Authorization

RADIUS: Accounting Records

RADIUS: Vendor-Specific Attributes

[ Top of Page... ]

[ Back to Shiva Configurator Directory ]