{"id":407,"date":"2009-01-27T18:32:32","date_gmt":"2009-01-28T02:32:32","guid":{"rendered":"http:\/\/blog.oliverhansen.com\/?p=407"},"modified":"2009-01-27T15:20:25","modified_gmt":"2009-01-27T23:20:25","slug":"using-ias-radius-for-client-vpn-authentication-to-cisco-pix","status":"publish","type":"post","link":"https:\/\/blog.oliverhansen.com\/index.php\/2009\/01\/27\/using-ias-radius-for-client-vpn-authentication-to-cisco-pix\/","title":{"rendered":"Using IAS (RADIUS) For Client VPN Authentication To Cisco PIX"},"content":{"rendered":"
I just had an opportunity to set this up again. The domain controller we had that was the RADIUS<\/acronym><\/span> server crashed over the weekend so this is one of many things I had to get going again. Yes, our backup strategy needs some attention. So anyways, it did give me an opportunity to re-learn how to get this going. The purpose of using RADIUS<\/acronym><\/span> for the VPN connections is to allow VPN access for the employees we want to have it and let them use their credentials already stored in Active Directory<\/span>. The less user-names and passwords for employees to remember, the better.<\/p>\n The first thing is that the PIX Firewall (with VPN) was already set up when I got here so I won’t get into that configuration. It used to be configured with local accounts for each person who needed VPN and they had a static password. This was a bit cumbersome and insecure as the password never changed. I had used RADIUS<\/acronym><\/span> to set up the same sort of thing for wireless authentication so I decided to see if I could get it working for the VPN. It took a little doing but I got it. On Windows Server 2003, you need to install IAS<\/abbr><\/span> (Internet Authentication Service). Go to Add\/Remove Programs<\/em> (appwiz.cpl) and then select Add\/Remove Windows Components<\/em> on the left side. Select Networking Services<\/strong> then Details<\/strong>, then put a check next to Internet Authentication Service<\/strong>. Select OK<\/strong> and Next<\/strong> and it will be installed. You will find the program under Administrative Tools<\/em> in the Start Menu.<\/p>\n Once you open IAS<\/abbr><\/span>, you will need to right click Internet Authentication Service (Local)<\/em> and select Register Server in Active Directory<\/span><\/em>. This will add the computer to a security group in Active Directory<\/span> and register the service. Next, right click on RADIUS<\/acronym><\/span> Clients<\/em> and select New Radius<\/acronym><\/span> Client<\/em>. Here, you will put in the info about your PIX device. Now, even though there is an option in Client-Vendor for Cisco, we will leave it at the default value of RADIUS<\/acronym><\/span> Standard<\/em>. Here, you also choose a shared secret. I strongly recommend using a very long string of numbers, letters and symbols. You will only need to enter this here and in the PIX one time and then you can forget about it so don’t worry about making it something easy to remember. One final important note on this step is to leave the box unchecked<\/strong> for Message Authenticator attribute<\/em>.<\/p>\n Next go to the Remote Access Policies<\/em> window. Right click and select New Remote Access Policy<\/em>. Now, I’m going to suggest you do it a little differently than I did originally but it will save you making a few changes later. Instead of using the wizard, select Set up a custom policy<\/em>. You can name it something like “Allow VPN Access”. Now, in policy conditions select NAS<\/acronym><\/span>-IP-Address and then enter the IP address of your PIX. The second attribute we’ll select is Windows-Groups<\/em>. You will need to have created a group in Active Directory<\/span> first before you can select it so create one called “VPN Access” or something similar. This is the security group you’ll place all users who you want to have access. If a user that does not have access tries to use it when they are not in the group it will fail. After you have added the group, click next and you will be finished. Note the order of the policies — the server will attempt to match each rule starting with the first and if it matches the default rule that denies connections first then it won’t even evaluate yours.<\/p>\n Now that you have your rule in place, open it up for more details. Click on the Advanced tab then Add. Here, you want to add Ignore-User-Dialin-Properties<\/em> and set it to True<\/strong>. This tells IAS<\/abbr><\/span> to ignore the properties of each user in their profile which gives them dial-in privileges. I assume this was a previous way of configuring remote access that is not used much anymore. Having users in the security group you created earlier controls the permission of users connecting. Next, go to the Encryption tab and select every encryption but the no encryption<\/em> box. Then on to Authentication and choose only Unencrypted authentication (PAP, SPAP). Now, this last one with no encryption — I tried very hard to see if there was another way because I don’t want any credentials floating around in plain text but I didn’t see a way. I’m no security expert but when I analyzed some traffic establishing the connection, it looks like the pre-shared key we set up before encrypts the authentication so it is in plain text but only inside of an already encrypted tunnel so it should be safe. Feel free to correct me because I’m still learning about VPNs. After that setting you should be done with the IAS<\/abbr><\/span> setup.<\/p>\n Now for the PIX. For this I used the PDM interface. I know the true Cisco experts will prefer the command line and I do for switches usually but for the VPN I’m sticking with the PDM interface for now. Once you are logged in, go to Configuration<\/em>. Once there, select the System Properties<\/em> tab and then navigate to the AAA<\/em> category. Under AAA Server Groups<\/em> you will see RADIUS<\/acronym><\/span> <\/strong>among others. The only thing I set was Dead Time<\/strong> to 0. If you have more than one RADIUS<\/acronym><\/span> server you may want to set this to 10 minutes or so because it is the time it will consider a server dead if it can’t contact it and then it will use another server during this time period. On to AAA Servers<\/em>. Click Add<\/em> and select RADIUS<\/acronym><\/span><\/em> for the group, inside<\/em> for the interface, the IP address<\/em> and also your key<\/em> that you created back in IAS<\/abbr><\/span>. Make sure you are applying<\/strong> these settings as you go. Next, we move to the VPN<\/em> tab and select the IKE<\/em> category. Find the XAuth\/Mode Config<\/em> and edit the outside<\/em> interface. Here you’ll select RADIUS<\/acronym><\/span><\/strong> for server group<\/em> and if you want you can check the box to use LOCAL<\/strong> accounts when the RADIUS<\/acronym><\/span> fails. If for some reason your RADIUS<\/acronym><\/span> server goes down, you could connect using a local account (such as administrator). This would mostly benefit the admins who know the password as other users wouldn’t know what to type. However, if you have a weak password I suppose it could be a security risk. After you have that set you can apply then save the changes to the PIX.<\/p>\n There is always troubleshooting of course. In the PIX, you can click the Monitoring icon and then view the PDM Log. This should show you when a RADIUS<\/acronym><\/span> lookup is attempted or if it is not then what is. In IAS<\/abbr><\/span> you’ll want to look under your normal event logs in the System setting. You will see IAS<\/abbr><\/span> as Source and you can see what policy is matched. If your policy is not being matched then you need to find out why. It does give you good information such as the IPs, user-name, the authentication and encryption being used. If any of those do not match you may see it is being matched against another Policy-Name<\/em> and that will give you some clues.<\/p>","protected":false},"excerpt":{"rendered":" I just had an opportunity to set this up again. The domain controller we had that was the RADIUS server crashed over the weekend so this is one of many things I had to get going again. Yes, our backup strategy needs some attention. So anyways, it did give me an opportunity to re-learn how […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,6],"tags":[240,241,235,242],"_links":{"self":[{"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/posts\/407"}],"collection":[{"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/comments?post=407"}],"version-history":[{"count":7,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/posts\/407\/revisions"}],"predecessor-version":[{"id":414,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/posts\/407\/revisions\/414"}],"wp:attachment":[{"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/media?parent=407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/categories?post=407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/tags?post=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\n<\/p>\n