<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nixadmins.net &#187; VPN</title>
	<atom:link href="http://www.nixadmins.net/category/networking/vpn-networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nixadmins.net</link>
	<description>Blogging for knowledge</description>
	<lastBuildDate>Thu, 26 Jan 2012 12:18:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Setting up SSL-VPN in an Windows Server 2008 environment part 2</title>
		<link>http://www.nixadmins.net/2009/10/29/setting-up-ssl-vpn-in-an-windows-server-2008-environment-part-2/</link>
		<comments>http://www.nixadmins.net/2009/10/29/setting-up-ssl-vpn-in-an-windows-server-2008-environment-part-2/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 15:41:54 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Remote Access]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[SSL VPN]]></category>
		<category><![CDATA[SSTP VPN]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/10/29/setting-up-ssl-vpn-in-an-windows-server-2008-environment-part-2/</guid>
		<description><![CDATA[Yesterday we setup our server to be able to handle the remote access requests. If you haven’t read the first part of this guide you can find it here. Today we will be taking a look at the next step. Configure Active Directory account First we need to make sure the user will be able [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nixadmins.net/2009/10/28/setting-up-ssl-vpn-in-an-windows-server-2008-environment/">Yesterday</a> we setup our server to be able to handle the remote access requests. If you haven’t read the first part of this guide you can find it <a href="http://www.nixadmins.net/2009/10/28/setting-up-ssl-vpn-in-an-windows-server-2008-environment/">here</a>. Today we will be taking a look at the next step.</p>
<p> <span id="more-611"></span><br />
<h3>Configure Active Directory account</h3>
<p>First we need to make sure the user will be able to connect to the SSTP VPN gateway. I have a test user called Sally Sales, and yes she works in the Sales department. So I use ADUC (Active Directory Users and Computers) to modify her account. She needs to have permissions to use <em>Dial In </em>even if she really isn’t dialing in.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image14.png"><img style="border-right-width: 0px; margin: 15px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb14.png" width="185" height="244" /></a> So select the users properties and on the <em>Dial In</em> tab change <em>Network Access Permission</em> from <em>Control access trough NPS Network Policy </em>to <em>Allow Access.</em> We can’t use NPS Network policies since we don’t have an Network Access Protection server, for the moment anyway. Once your done just click ok. Sally Sales is now minutes away from connecting with VPN.</p>
<h3>Configure Vista SSTP VPN client</h3>
<p>Next we need to take care of Sally’s laptop. Normally she could fix this herself since the <em>vpngw.nixadmins.net</em> is already on a public network. But in our test lab we are using the HOST file to point her the right way.</p>
<p>Open the command prompt on your Vista workstation using Administrative privileges. In the prompt enter</p>
<p><strong>notepad.exe C:\Windows\System32\Drivers\etc\hosts</strong></p>
<p>Because we don’t have a DNS on our “public” network we have to use the host file. So at the end of the file add a line 10.0.0.1 vpngw.nixadmins.net (in my case, yours might differ).</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image15.png"><img style="border-right-width: 0px; margin: 15px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb15.png" width="244" height="168" /></a> Save the file.</p>
<h3>Create the new VPN Network connection</h3>
<p>Now we need ( using Sally’s credentials ) to create the new network connection.&#160; So right click on the network icon in the system tray and select <strong><em>Connect to a network</em></strong>.</p>
<p>Select <em>Setup a connection or network</em>. Select <em>Connect to a workplace</em>.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image16.png"><img style="border-right-width: 0px; margin: 15px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb16.png" width="244" height="178" /></a>Click next and select <em>Use my Internet connection (VPN)</em>.&#160; Because this is a virtual machine with a local only network the system asks us if we want to set up a Internet connection. We already have one so we choose <em>I’ll set up an Internet connection later.</em></p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image17.png"><img style="border-right-width: 0px; margin: 15px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb17.png" width="244" height="178" /></a> Next are the settings for the VPN gateway. So the internet address should be your public name of the server, in my case vpngw.nixadmins.net and let’s give Destination name an clear name saying Corporate VPN connection.</p>
</p>
</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image18.png"><img style="border-right-width: 0px; margin: 15px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb18.png" width="244" height="178" /></a> </p>
<p>We aren’t using a smartcard and for now we don’t want to share this connection either. So just click next. I also won’t type the username and password here. I’ll rather provide them at login. That’s it. The connection is now ready to use.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image19.png"><img style="border-right-width: 0px; margin: 15px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb19.png" width="244" height="178" /></a> </p>
<p>But at the moment it will use PPTP and we want to use SSTP. So let’s continue. Go to your network connections and select properties on the <em>Corporate VPN Connection.</em> Select the tab <em>Networking</em> and change the <em>Type of VPN</em> to <em>Secure Socket Tunneling Protocoll (SSTP)</em>.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image20.png"><img style="border-right-width: 0px; margin: 15px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb20.png" width="203" height="244" /></a> </p>
</p>
<h3>Testing the SSTP VPN connection</h3>
<p>Now we can test our new SSTP connection. So in the system tray right click on your network icon and select connect to a network. Select the Corporate VPN Connection and supply your user credentials. ssales in my case.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image21.png"><img style="border-right-width: 0px; margin: 15px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb21.png" width="215" height="244" /></a> Then just click connect and wait a moment for the tunnel to connect.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image22.png"><img style="border-right-width: 0px; margin: 15px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb22.png" width="244" height="178" /></a> </p>
<p>That’s it. Your client is now connected to your corporate headquarters.&#160; As I have shown you in these two short articles. Supplying your users with a secure offsite connection to the corporate network isn’t a great deal of work. Anyway, these are just the basics. So I encourage you to study more about securing <a href="http://www.microsoft.com/WindowsServer" target="_blank">Windows Server</a> and take a look at <a href="http://www.microsoft.com" target="_blank">Microsoft</a>’s documentation on the Routing and Remote Access documentation. This is a server connected on the public Internet so caution is always a good thing.</p>
<h3>Some extra reading can be found here</h3>
<ul>
<li><a href="http://technet.microsoft.com/en-us/library/cc787456%28WS.10%29.aspx" target="_blank">Windows Server 2003 Routing and Remote Access</a> </li>
<li><a href="http://technet.microsoft.com/en-us/library/cc730711%28WS.10%29.aspx" target="_blank">New in Windows Server 2008 Routing and Remote Access</a> </li>
<li><a href="http://technet.microsoft.com/en-us/library/dd548366%28WS.10%29.aspx" target="_blank">Securing Windows Server 2008</a> </li>
<li><a href="http://blogs.technet.com/rrasblog/archive/2007/01/10/how-sstp-based-vpn-connection-works.aspx" target="_blank">Routing and remote access blog on how SSTP based VPN works</a> </li>
</ul>
<p>That’s it for this time. Hope to see you soon when we take a look at Windows Server 2008’s capabilities in providing Network Access Protection (NAP). But that’s a story for another day. </p>
<p>Feel free to comment and provide me with feedback if you find this two part guide useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/10/29/setting-up-ssl-vpn-in-an-windows-server-2008-environment-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up SSL-VPN in an Windows Server 2008 environment</title>
		<link>http://www.nixadmins.net/2009/10/28/setting-up-ssl-vpn-in-an-windows-server-2008-environment/</link>
		<comments>http://www.nixadmins.net/2009/10/28/setting-up-ssl-vpn-in-an-windows-server-2008-environment/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 17:45:14 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Remote Access]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Certificate Services]]></category>
		<category><![CDATA[SSL VPN]]></category>
		<category><![CDATA[SSTP VPN]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/10/28/setting-up-ssl-vpn-in-an-windows-server-2008-environment/</guid>
		<description><![CDATA[In this 2 part series we will look at setting up SSL-VPN using Windows Server 2008. At the end on the next part you will be able to configure a Windows Vista or Windows 7 client to connect to the corporate network using SSL-VPN ( SSTP ). To test this scenario you need some previous [...]]]></description>
			<content:encoded><![CDATA[<p>In this 2 part series we will look at setting up SSL-VPN using <a href="http://www.microsoft.com/WindowsServer" target="_blank">Windows Server</a> 2008. At the end on the next part you will be able to configure a Windows Vista or Windows 7 client to connect to the corporate network using SSL-VPN ( SSTP ). To test this scenario you need some previous knowledge of Windows Server System and Active Directory in particular. We will be using Active Directory to logon to VPN and control user access using it. If you, like me, don’t feel like testing in an production environment you can set this lab up in an Virtual PC or Virtual Server environment. I will not be going trough setting up Windows Server 2008 AD DS in this article. I expect you to have your domain up and running. To run this lab you will need the following</p>
<ul>
<li>Windows Server 2008 Enterprise running HEL-DC1
<ul>
<li>AD DS </li>
<li>DHCP </li>
<li>DNS </li>
<li>AD CS ( Certificate Services Enterprise CA) </li>
</ul>
</li>
<li>Windows Server 2008 Enterprise running HEL-NAT
<ul>
<li>2 network interfaces – External and internal </li>
</ul>
</li>
<li>Windows Vista Business Edition
<ul>
<li>Service Pack 2 </li>
</ul>
</li>
</ul>
<p>  <span id="more-591"></span>
<p>If you don’t have access to <a href="http://www.microsoft.com" target="_blank">Microsoft</a> Volume Licensing, a Technet Subscription or a MSDN Subscription you can download the <a href="http://www.microsoft.com/windowsserver2008/en/us/trial-software.aspx" target="_blank">trial versions</a> of the systems above, they are free and you can use them for 180 days. So you&#8217;ll have more than enough time to complete this lab. Our setup will look as figure 1 shows. </p>
<p><b><i>Figure 1<a href="http://www.nixadmins.net/wp-content/uploads/2009/10/setup.jpg"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="setup" border="0" alt="setup" src="http://www.nixadmins.net/wp-content/uploads/2009/10/setup_thumb.jpg" width="237" height="244" /></a> </i></b></p>
<p>As you can see we are using private IP:s only and we have not deployed a DNS server on our private little internet because the easier way in a small lab like this is to use the Windows <strong><em>host </em></strong>file. </p>
<p>The ip addresses assigned are as follows,</p>
<ul>
<li>hel-dc1 192.168.0.1/24</li>
<li>hel-cli1 10.0.0.150/8</li>
<li>vpngw</li>
<ul>
<li>Internal Network 192.168.0.254/24</li>
<li>External Network 10.0.0.1/8</li>
</ul>
</ul>
<p>All machines are part of the domain. So before you move the <strong>hel-cli1</strong> “laptop” out of the 192.168.0.0 network remember it has to be joined to the domain.</p>
<h3>Setting up the VPN Gateway Server</h3>
<p>So I’m depending on you to have a working Active Directory from this point on and the Domain Controller should have the <em>Active Directory Certificate Services</em> installed and it should be a <em>Enterprise Certification Authority </em>not a Standalone. Well then, let’s move on.</p>
<p>First of all we need to install the correct roles on our VPN Gateway server. So start up your Server Manager and select <strong>Add Roles</strong>.</p>
<h3>Install Webb server role</h3>
<p>To get SSTP-VPN working we need the Web server role. And we will use the IIS management console to get a certificate from the Enterprise Certification Authority (HEL-DC1 in my case). In server manager click <em>Web Server (IIS)<strong> </strong></em>and add the required features.</p>
</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb3.png" width="244" height="185" /></a></p>
<p>When done select next next.</p>
<h4>Role Services</h4>
<p>For some reason we need to select every role service under <strong>security </strong>to be enable to get a certificate from the Enterprise CA. So select every role service under <strong><em>Security</em></strong>.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image4.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb4.png" width="244" height="185" /></a></p>
<p>That’s it. Select next and at the <em>Confirm Installation Selections</em> click install and sit back and relax for a minute. Maybe even grab a cup of coffee if your system is slow enough <img src='http://www.nixadmins.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<h3>Getting the web server certificate from the Enterprise CA</h3>
<p>Next we need to get a certificate to encrypt our sessions and to identify the server. So we want the certificate name to be the same as the external DNS name of the server. In my case it’s the same as the internal DNS name. Open the <em>Server manager</em> again and go to <em>Roles, Web Server, Internet Information Services Manager</em>. Select the server name, VPNGW and select <em><strong>Server Certificates</strong>. </em>In the right side <em>Action Pane </em>select&#160; <em>Create Domain Certificate.</em> The <strong>most</strong> important field is the <strong><em>Common name</em></strong>, this is the field that identifies the server to the clients accessing it from the outside. So be sure to set the <em>Common name </em>to whatever your external server name is. In this case, <strong><em>vpngw.nixadmins.net</em></strong>. As I said in the beginning I’m running this in Virtual PC so I’ll use the host file to set it on the client but in a real world case this is important. Nagged enough? Ok, let’s move on.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image5.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb5.png" width="244" height="187" /></a>After&#160; clicking next you are presented with a dialog to select your <em>Online certification Authority</em>. Since we have our AD CS ( Active Directory Certificate Services ) running on our domain controller we just hit select and pick our Enterprise CA, the HEL-DC1.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image6.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb6.png" width="244" height="187" /></a>Set the friendly name to something descriptive like <em>SSTP Certificate</em> since that’s what we will be using it for. Click finish and you should se the certificate in the list of server certificates.</p>
<h3>Setting up Routing and Remote Access</h3>
<p>The server also needs to be able to route the requests from the external to the internal network so we need the <em>Routing and Remote Access</em> role. In my case it also works as a router for the internal clients so they can access the external networks. Once again in <em>Server Manager </em>select add role and select <strong><em>Network Policy and Access Services</em></strong>. </p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image7.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb7.png" width="244" height="185" /></a> Click next until <em>Role Services. </em>We won’t be using NAP quite yet, maybe in a later post if there is an demand for it, so just select the <strong><em>Routing and Remote Access Services</em></strong>. </p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image8.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb8.png" width="244" height="185" /></a> Confirm the installation and sit back and wait.</p>
<h3>Configuring Routing and Remote Access</h3>
<p>We now need to activate the <em>Routing and Remote access. </em>In <em>Server manger </em>roles you’ll find the <em>Network Policy and Access, Routing and Remote Access.</em> As you can se it hasn’t yet been activated.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image9.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb9.png" width="244" height="187" /></a> Right click <em>Routing and Remote Access </em>and select <em>Configure and Enable Routing and Remote Access.</em> I’m using this server for NAT so the internal clients use it as a gateway so I need to select <strong><em>Virtual Private Network (VPN) access and NAT</em></strong>. Click next and select your external network interface.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image10.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb10.png" width="244" height="202" /></a> Set the IP Address Assignment to <em>Automatically</em>. This way it will use the internal DHCP server to relay the addresses. </p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image11.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb11.png" width="244" height="202" /></a> Select <em>No, use Routing and Remote Access to authenticate connection requests</em> on the next page.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image12.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb12.png" width="244" height="202" /></a> </p>
<p>Finish the setup and wait for it to complete.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image13.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb13.png" width="244" height="202" /></a> That’s it. Once the wizard is done you have Remote Access setup. Tomorrow we’ll go trough how to allow the client to access the network using our new SSTP VPNGW and we will set up our Windows Vista client to connect to our corporate network. Until then, I’ll answer your questions and if you have any requests on special subjects don’t be afraid to ask, I’ll do my best to create them. Se you tomorrow.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/10/28/setting-up-ssl-vpn-in-an-windows-server-2008-environment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

