{"id":1339,"date":"2019-05-17T09:57:56","date_gmt":"2019-05-17T06:57:56","guid":{"rendered":"https:\/\/helia.ee\/koolitus\/?page_id=1339"},"modified":"2019-05-17T09:57:56","modified_gmt":"2019-05-17T06:57:56","slug":"setup-nps-for-radius-authentication-in-active-directory","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=1339","title":{"rendered":"Setup NPS for RADIUS authentication in Active Directory"},"content":{"rendered":"\n<p>The&nbsp;<strong>Network Policy Services<\/strong>&nbsp;(NPS) is a service included in Windows Server 2008 acting as&nbsp;<strong>RADIUS<\/strong>&nbsp;to authenticate remote clients against Active Directory.<\/p>\n\n\n\n<p>In&nbsp;<strong>Active Directory<\/strong>&nbsp;environment is possible to setup the&nbsp;<strong>authentication process through RADIUS<\/strong>&nbsp;with existing accounts configured in the network setting NPS service properly.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad02.jpg\" alt=\"radiusad02\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Installing NPS service<\/h2>\n\n\n\n<p>First step is the&nbsp;<strong>installation of the NPS service<\/strong>&nbsp;on the Windows 2008 R2 server. Open the&nbsp;<strong>Server Manager<\/strong>&nbsp;and click the option&nbsp;<strong>Add Roles<\/strong>&nbsp;to add the new role to the server.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad03.jpg\" alt=\"radiusad03\"\/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad04.jpg\" alt=\"radiusad04\"\/><\/figure>\n\n\n\n<p>Select&nbsp;<strong>Network Policy and Access Services<\/strong>&nbsp;and click&nbsp;<strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad05.jpg\" alt=\"radiusad05\"\/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad06.jpg\" alt=\"radiusad06\"\/><\/figure>\n\n\n\n<p>Select&nbsp;<strong>Network Policy Server<\/strong>&nbsp;option and click&nbsp;<strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad07.jpg\" alt=\"radiusad07\"\/><\/figure>\n\n\n\n<p>To perform the installation, click the&nbsp;<strong>Install<\/strong>&nbsp;button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad08.jpg\" alt=\"radiusad08\"\/><\/figure>\n\n\n\n<p><strong>Service components<\/strong>&nbsp;are installed in the server.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad09.jpg\" alt=\"radiusad09\"\/><\/figure>\n\n\n\n<p>Once the procedure ends, the&nbsp;<strong>installation result<\/strong>&nbsp;is shown. Click&nbsp;<strong>Close<\/strong>&nbsp;button to exit the window.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad10.jpg\" alt=\"radiusad10\"\/><\/figure>\n\n\n\n<p>The service is now installed but&nbsp;<strong>needs to be configured<\/strong>&nbsp;to properly work.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">NPS configuration<\/h2>\n\n\n\n<p>To proceed with the configuration, access the service from&nbsp;<strong>Start &gt; Administrative Tools &gt; Network Policy Server<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad11.jpg\" alt=\"radiusad11\"\/><\/figure>\n\n\n\n<p>Right click on&nbsp;<strong>RADIUS Client<\/strong>&nbsp;item to create a new client and select option&nbsp;<strong>New<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad12.jpg\" alt=\"radiusad12\"\/><\/figure>\n\n\n\n<p>In the&nbsp;<strong>Settings<\/strong>&nbsp;panel, enable the client by flagging option&nbsp;<strong>Enable this RADIUS client<\/strong>. Assign a&nbsp;<strong>Friendly Name<\/strong>&nbsp;and the server\/router VPN&nbsp;<strong>Address (IP or DNS)<\/strong>. To generate the&nbsp;<strong>shared secret<\/strong>&nbsp;for the RADIUS &lt;-&gt; Server VPN communication, use the option&nbsp;<strong>Generate<\/strong>&nbsp;to automatically create the key paying attention to VPN server specifications because sometimes long strings keys could create some problems. Use option&nbsp;<strong>Manual<\/strong>&nbsp;to enter a manual string instead.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad13.jpg\" alt=\"radiusad13\"\/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>Advanced<\/strong>&nbsp;and set value&nbsp;<strong>RADIUS Standard<\/strong>&nbsp;as&nbsp;<strong>Vendor name<\/strong>&nbsp;if the VPN server vendor didn\u2019t provide different advices.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad14.jpg\" alt=\"radiusad14\"\/><\/figure>\n\n\n\n<p>Once the client has been created, from main window of NPS right-click item&nbsp;<strong>Network Policies<\/strong>&nbsp;and select option&nbsp;<strong>New<\/strong>&nbsp;to create a new policy.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad15.jpg\" alt=\"radiusad15\"\/><\/figure>\n\n\n\n<p>In&nbsp;<strong>Policy Name<\/strong>&nbsp;field specify the new policy name. Leave default&nbsp;<strong>Unspecified<\/strong>&nbsp;value in&nbsp;<strong>Type of network access server<\/strong>&nbsp;field. Click&nbsp;<strong>Next<\/strong>&nbsp;to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad16.jpg\" alt=\"radiusad16\"\/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>Add<\/strong>&nbsp;button to specify what conditions are evaluated during authentication process.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad17.jpg\" alt=\"radiusad17\"\/><\/figure>\n\n\n\n<p>If the account is authenticated through&nbsp;<strong>Active Directory group membership<\/strong>, select&nbsp;<strong>Windows Groups<\/strong>&nbsp;item and click&nbsp;<strong>Add<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad18.jpg\" alt=\"radiusad18\"\/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>Add Groups<\/strong>&nbsp;button to specify the AD group.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad19.jpg\" alt=\"radiusad19\"\/><\/figure>\n\n\n\n<p>Insert AD group and click&nbsp;<strong>OK<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad20.jpg\" alt=\"radiusad20\"\/><\/figure>\n\n\n\n<p>Selected AD group is now on the list of&nbsp;<strong>Windows Groups<\/strong>. Click&nbsp;<strong>OK<\/strong>&nbsp;to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad21.jpg\" alt=\"radiusad21\"\/><\/figure>\n\n\n\n<p>To setup additional conditions, click&nbsp;<strong>Add<\/strong>&nbsp;button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad22.jpg\" alt=\"radiusad22\"\/><\/figure>\n\n\n\n<p>In order to&nbsp;<strong>limit authentication requests<\/strong>&nbsp;to a specific VPN server, select condition&nbsp;<strong>Client IPv4 Address<\/strong>&nbsp;and click&nbsp;<strong>Add<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad23.jpg\" alt=\"radiusad23\"\/><\/figure>\n\n\n\n<p>Enter the&nbsp;<strong>VPN server IP Address&nbsp;<\/strong>and click&nbsp;<strong>OK<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad24.jpg\" alt=\"radiusad24\"\/><\/figure>\n\n\n\n<p>Completed all the entries, click&nbsp;<strong>Next<\/strong>&nbsp;to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad25.jpg\" alt=\"radiusad25\"\/><\/figure>\n\n\n\n<p>Click option&nbsp;<strong>Access Granted<\/strong>&nbsp;to enable the access to the system.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad26.jpg\" alt=\"radiusad26\"\/><\/figure>\n\n\n\n<p>In this screen, you define the&nbsp;<strong>protocol type<\/strong>&nbsp;used for authentication. Check vendor specifications of your VPN server to select required authentication protocols. To perform EAP authentication for instance,&nbsp;<strong>EAP Types<\/strong>&nbsp;must be configured by clicking the&nbsp;<strong>Add<\/strong>&nbsp;button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad27.jpg\" alt=\"radiusad27\"\/><\/figure>\n\n\n\n<p>Select required protocol then click&nbsp;<strong>OK<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad28.jpg\" alt=\"radiusad28\"\/><\/figure>\n\n\n\n<p>When authentication protocols have been entered, click&nbsp;<strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad29.jpg\" alt=\"radiusad29\"\/><\/figure>\n\n\n\n<p>Specify&nbsp;<strong>Constraints<\/strong>&nbsp;if requested. Click&nbsp;<strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad30.jpg\" alt=\"radiusad30\"\/><\/figure>\n\n\n\n<p>From&nbsp;<strong>Settings<\/strong>&nbsp;window, set additional attributes requested by the VPN server. For example,&nbsp;<a href=\"http:\/\/www.watchguard.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Watchguard<\/a>&nbsp;firewalls require&nbsp;<strong>Filter-ID<\/strong>&nbsp;attribute to grant VPN access. Click&nbsp;<strong>Add<\/strong>&nbsp;button to add a new attribute.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad31.jpg\" alt=\"radiusad31\"\/><\/figure>\n\n\n\n<p>From attributes list select value&nbsp;<strong>Filter-ID<\/strong>&nbsp;and click&nbsp;<strong>Add<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad32.jpg\" alt=\"radiusad32\"\/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>Add<\/strong>&nbsp;to define the attribute information requested by the VPN server for the attribute previously selected.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad33.jpg\" alt=\"radiusad33\"\/><\/figure>\n\n\n\n<p>From the VPN server vendor instructions, insert the right&nbsp;<strong>Attribute Information<\/strong>&nbsp;(L2TP-Users in the example) and click&nbsp;<strong>OK<\/strong>&nbsp;to confirm.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad34.jpg\" alt=\"radiusad34\"\/><\/figure>\n\n\n\n<p>If some attributes are not longer needed, select and remove them with&nbsp;<strong>Remove<\/strong>&nbsp;button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad35.jpg\" alt=\"radiusad35\"\/><\/figure>\n\n\n\n<p>When the setup is complete, click&nbsp;<strong>OK<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad36.jpg\" alt=\"radiusad36\"\/><\/figure>\n\n\n\n<p>A&nbsp;<strong>configuration summary<\/strong>&nbsp;is shown with policy conditions and settings. Click&nbsp;<strong>Finish<\/strong>&nbsp;to complete the procedure.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad37.jpg\" alt=\"radiusad37\"\/><\/figure>\n\n\n\n<p>To process in the right way the just created policy, move it at the&nbsp;<strong>top of the list.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad38.jpg\" alt=\"radiusad38\"\/><\/figure>\n\n\n\n<p>For the correct functionality of RADIUS authentication, server must be registered in Active Directory. From main screen of NPS right-click&nbsp;<strong>NPS (local)<\/strong>&nbsp;and select option&nbsp;<strong>Register server in Active Directory<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad39.jpg\" alt=\"radiusad39\"\/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>OK<\/strong>&nbsp;to authorize the local server in AD.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad40.jpg\" alt=\"radiusad40\"\/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>OK<\/strong>&nbsp;to complete the server registration step.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad41.jpg\" alt=\"radiusad41\"\/><\/figure>\n\n\n\n<p>RADIUS&nbsp;<strong>server configuration<\/strong>&nbsp;is now complete.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enable RADIUS authentication<\/h2>\n\n\n\n<p>To enable VPN clients authentication in the system, the&nbsp;<strong>RADIUS authentication type<\/strong>&nbsp;must be configured in the VPN server.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad42.jpg\" alt=\"radiusad42\"\/><\/figure>\n\n\n\n<p>Enable and insert the correct&nbsp;<strong>IP Address<\/strong>&nbsp;of your RADIUS server. Type the&nbsp;<strong>Shared Secret<\/strong>previously created. Be careful that typed characters in the Secret field must be the same as defined in the RADIUS server settings otherwise authentication process will fail.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad43.jpg\" alt=\"radiusad43\"\/><\/figure>\n\n\n\n<p>When a VPN connection starts, the client is&nbsp;<strong>authenticated through the RADIUS<\/strong>&nbsp;server checking the Active Directory group membership and granting the network access as shown in the&nbsp;<strong>Windows log<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad44.jpg\" alt=\"radiusad44\"\/><\/figure>\n\n\n\n<p>If some&nbsp;<strong>authentication issues<\/strong>&nbsp;are experienced, looking at the Windows log you can identify where the problem reside.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/04\/radiusad45.jpg\" alt=\"radiusad45\"\/><\/figure>\n\n\n\n<p>This solution allows a&nbsp;<strong>good authentication management<\/strong>&nbsp;process of remote clients giving the network a higher security level.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;Network Policy Services&nbsp;(NPS) is a service included in Windows Server 2008 acting as&nbsp;RADIUS&nbsp;to authenticate remote clients against Active Directory. In&nbsp;Active Directory&nbsp;environment is possible to setup the&nbsp;authentication process through RADIUS&nbsp;with existing accounts configured in the network setting NPS service properly. Installing NPS service First step is the&nbsp;installation of the NPS service&nbsp;on the Windows 2008 R2 server. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1304,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-1339","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1339"}],"version-history":[{"count":1,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1339\/revisions"}],"predecessor-version":[{"id":1340,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1339\/revisions\/1340"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1304"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}