The following steps are a walk through of configuring a Windows 2008 Server Domain Controller as a RADIUS server for an ASA, and configuring that ASA as the RADIUS client. This will allow VPN users to authenticate against Active Directory instead of locally on the ASA.
These steps assume the following:
- Windows Server 2008: 192.168.0.10
- Cisco ASA: 192.168.0.5
Configure the ASA
CLIThe applicable parts of the config are as follows:
ip address 192.168.0.5 255.255.255.0
aaa-server SERVER protocol radius
aaa-server SERVER host 192.168.0.10
ASDMCreate an IP Name object for the target
- Under the Firewall section, expand the Objects link and select the IP Names.
- Click the Add button at the top.
- Enter a descriptive name, the IP address of the DC/RADIUS server and a description of the server.
- Click OK and then Apply
Create a new AAA Server Group
- Click the Remote Access VPN section.
- Expand AAA Setup and select AAA Server Groups.
- Click the Add button to the right of the AAA Server Groups section.
- Give the server group a name, like TEST-AD, and make sure the RADIUS protocol is selected.
- Accept the default for the other settings. And click OK
Add the RADIUS server to the Server Group.
- Select the server group created in the step above.
- Click the Add button to the right of Servers in the Select Group.
- Under the Interface Name select the interface on the ASA that will have access to the RADIUS server, most likely inside.
- Under Server Name or IP Address enter the IP Name you created for the RADIUS server above.
- Skip to the Server Secret Key field and create a complex password. Make sure you document this as it is required when configuring the RADIUS server. Re-enter the secret in the Common Password field.
- Leave the rest of the settings at the defaults and click Ok.
Configuring the Windows 2008 DC/RADIUS Server*requires domain admin privileges
Add the Network Policy Server function.
- Connect to the Windows Server 2008 server and launch Server Manager.
- Click the Roles object and then click the Add Roles link on the right.
- Click Next on the Before You Begin page.
- Select the Network Policy and Access Services role and click Next.
- Under Role Service select only the Network Policy Server service and click Next.
- Click Install.
Registering the server.
After launching the NPS tool right-click on the entry NPS(Local) and click the Register Server in Active Directory. Follow the default prompts.
Create a RADIUS client entry for the ASA.
- Expand the RADIUS Clients and Servers folder.
- Right-click on RADIUS Clients and select New RADIUS Client.
- Create a Friendly Name for the ASA device. I used “CiscoASA” but if you had more than one you might want to make it more unique and identifiable. Make sure you document the Friendly Name used as it will be used later in some of the policies created.
- Enter the Server Secret Key specified on during the ASA configuration in the Shared secret and Confirm shared secret field.
- Leave the default values for the other settings and click OK. See Figure 1 for all the complete RADIUS Client properties.
Create a Connection Request Policy
- Expand the Policies folder.
- Right-click on the Connection Request Policies and click New.
- Set the Policy Nameto something meaningful. I used CiscoASA because this policy is geared specifically for that RADIUS client. Leave the Type of network access server as Unspecified and click Next.
- Under Conditions click Add. Scroll down and select the Client Friendly Name condition and click Add
- Specify the friendly name that you used when creating the RADIUS Client above. Click OK and Next.
- On the next two pages leave the default settings and click Next.
- Under the Specify a Realm Name select the Attribute option on the left. From the drop down menu next to Attribute: on the right select User-Name. Click Next again.
- Review the settings on the next page and click Finish.
Create a Network Policy.
- Right-click the Network Policy folder and click New.
- Set the Policy Name to something meaningful. Leave the Type of network access server as Unspecified and click Next.
- Under Conditions click Add.
- Add a UsersGroup condition to limit access to a specific AD user group. You can use a generic group like Domain Users or create a group specifically to restrict access.
- Add a Client Friendly Name condition and again specify the Friendly Name you used for your RADIUS client.
- Click Next. Leave Access granted selected and click Next again.
- (Important Step) On the authentication methods leave the default selection and add Unencrypted authentication (PAP, SPAP).
- Accept the default Constraints and click Next.
- Accept the default Radius Settings and click Next. Review the settings and click Finish.
Test Your RADIUS Authentication
test-fw# test aaa authentication SERVER host 192.168.0.10 username testuser password mypassword
INFO: Attempting Authentication test to IP address <192.168.0.10> (timeout: 12 seconds)
INFO: Authentication Successful
ASDMThe ASDM utility includes functionality to test RADIUS Authentication.
- If necessary re-launch the ASDM utility.
- Return to Configuration > Remote Access VPN > AAA Setup > AAA Server Groups.
- Select the new Server Group you created.
- From the Servers in the Selected Group section highlight the server you created. Click the Test button on the right.
- Select the Authentication radio button. Enter the Username and Password of a user that meets the conditions specified in the Network Policy created above then click OK.
- If everything works as designed you should see something similar to "Authentication test to host