![]() |
||||||||||||||||||||||||||||||||||||||||||
EasyServer II: Setting Up Devices and Services (continued) |
||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||
| Service-Type | S Service |
| Login | Telnet or Rlogin |
| Callback-Login | Telnet or Rlogin |
| Framed | PPP or SLIP |
| Callback-Framed | PPP or SLIP |
| NAS-Prompt | Local login |
| Callback-NAS-Prompt | Local login |
| Administrative | Local login in privileged mode |
Note: The callback service types require a Login-Callback-Number attribute to be returned which contains a dial script.
Note: Telnet or Rlogin is chosen based on Login-Service. If Login-Service is not specified, Telnet is used. If Telnet or Rlogin is explicitly requested by the Communications Server, then that service is used and Login-Service is ignored. The host/port to connect to is chosen based on Telnet-TCP-Port and Login-IP-Host. If Login-IP-Host is 255.255.255.255 or 255.255.255.254, the host requested by the Communications Server is used.
2. [CONNECT] TELNET|RLOGIN.
Communications Server sends the following attributes in the Access-Request message.Service-Type=Login
Login-Service=Telnet or Rlogin
Login-IP-Host=<allIP addresses of specified host>
Telnet-TCP-Port=<specified port or default Telnet or Rlogin port>
User-Name
User-Password
NAS-IP-Address
NAS-Port
NAS-Port-Type=Async
NAS-IdentifierThe returned Service-Type and Login-Service are ignored and the requested service is started. host/port is chosen as for a local login as shown above.
3. CONNECT PPP|SLIP.
See the RADIUS PPP tutorial for details on configuring RADIUS for use with PPP and/or SLIP.4. Dedicated PPP service.
See the RADIUS PPP section below for details on configuring RADIUS for use with PPP and/or SLIP.Note: Dedicated SLIP connections are NOT authenticated.
5. CONNECT LOCAL PORT.
Communications Server sends the following attributes in the Access-Request message.Service-Type=Outbound-User
User-Name
User-Password
NAS-IP-Address
NAS-Port=<target port>
NAS-Port-Type=Async
NAS-IdentifierAll returned attributes are ignored.
6. SET PRIVILEGED.
Communications Server sends the following attributes in the Access-Request message.Service-Type=Administrative
User-Name
User-Password
NAS-IP-Address
NAS-Port
NAS-Port-Type=Async
NAS-IdentifierIf the returned Service-Type=Administrative, privileged mode is entered, otherwise the request fails.
7. Access PRIVILEGED Web page.
As for SET PRIVILEGED above.
PPP Configuration
This section explains the various ways of using RADIUS to authenticate and configure either a PPP or SLIP connection.
For all of these options, various configuration attributes may be included in the authentication reply to allow for configuration of the connection.
See the section on configuration attributes below for details.
1. Setting up a dedicated PPP service with RADIUS authentication.
When using a PPP connection, RADIUS authentication may be done through the mechanism of either CHAP or PAP. (This method is not available for authenticating SLIP as SLIP does not support any internal authentication mechanism.)In either case, instead of the Communications Server authenticating the user against its own user database or CHAP secret, it passes the information through to the RADIUS server for authentication as follows:
Service-Type=Framed
Framed-Protocol=PPP
User-Name (remote host identifier)
User-Password (calculated from radius secret)
NAS-IP-Address
NAS-Port
NAS-Port-Type=Async
NAS-IdentifierThe RADIUS server must return Service-Type=Framed and Framed-Protocol=PPP.
In order to use RADIUS, CHAP or PAP authentication for a dedicated PPP connection, first setup the dedicated PPP connection for the port. Then enable either PAP or CHAP authentication (for PAP authentication, either USER mode or PORT mode are equivalent). Finally, enable RADIUS for the port. You may also wish to set the CHARACTER MAP and MTU since these will not be set via RADIUS.
CHANGE PORT x DEDICATED PPP
CHANGE PORT x PPP CHAP ENABLED CHARACTER MAP A000 MTU 892
CHANGE PORT x RADIUS ENABLED2. Setting up login-based PPP or SLIP RADIUS authentication. Rather than using a dedicated service, a login-based approach may be used. This may allow the user to select the service required (by using different user names) and does not require the client to support PAP or CHAP, but it does require that the username and password be entered directly (rather than being handled automatically within the PPP protocol).
In order to use this method, set up your RADIUS server such that when a request with Service-Type=NAS-Prompt is received, the response sets Service-Type=Framed and Framed-Protocol as PPP or SLIP.
This will cause the Communications Server to start a PPP or SLIP session on the connection as soon as the user logs in.
3. Explicit connection from the local prompt.
Option 2, above, has the disadvantage that it requires a single user to have multiple usernames if the user is to be able to select different services. This may be avoided if the user is required to login to the local prompt before establishing the PPP or SLIP connection.With this method, set up your RADIUS server as for a local login (explained in the RADIUS Advanced section above). Then, the user is required to do a CONNECT PPP or CONNECT SLIP. This will cause the Communications Server to send the following request to the RADIUS server:
Service-Type=Framed
Framed-Protocol=PPP or SLIP
User-Name=username entered by user
User-Password=password entered by userRADIUS
NAS-IP-Address
NAS-Port
NAS-Port-Type=Async
NAS-IdentifierThe RADIUS server must return Service-Type=Framed and Framed-Protocol the same as that sent. The Communications Server will then establish a PPP or SLIP connection on the link.
Configuration Attributes.
RADIUS allows you to specify configuration attributes as part of a successful authentication. The table belows shows the attributes which may be specified for a Framed service (PPP or SLIP) and the default settings which will be used if the attribute is not supplied. Note that locally set values will not be used for these values, even if no RADIUS attribute is supplied.
|
|
|
|
| SLIP-MTU | Framed-MTU | 1006 |
| PPP-MTU | Framed-MTU | 1500 |
| SLIP/PPP-NETMASK | Framed-Netmask | 255.255.255.0 |
| SLIP/PPP-COMPRESSION | Framed-Compression | Disabled |
| SLIP/PPP-LOCAL_ADDR | Framed-IP-Address | 0.0.0.0 |
| SLIP/PPP-HOST_ADDR | (none) | ES-II ethernet IP address |
Note: When using option 1 for authentication, the Framed-MTU attribute is ignored since it is not available until too late in the PPP negotiation. Instead the default value is always used.
Accounting
There are 4 different RADIUS accounting messages which are sent by the Communications Server (if a RADIUS accounting server is configured). These messages are described below.
Start\r
The Start accounting message is sent whenever a session is successfully established on a port which has RADIUS enabled.The message contains the following attributes:
Acct-Status-Type=Start
User-Name
NAS-IP-Address
NAS-Port
NAS-Port-Type
NAS-Identifier
Acct-Session-Id
Service-Type
Login-IP-Host (if Service-Type=Login)
Framed-Protocol (if Service-Type=Framed)