<?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; Networking</title>
	<atom:link href="http://www.nixadmins.net/category/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nixadmins.net</link>
	<description>Blogging for knowledge</description>
	<lastBuildDate>Mon, 24 May 2010 08:06:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Safe web</title>
		<link>http://www.nixadmins.net/2009/11/04/safe-web/</link>
		<comments>http://www.nixadmins.net/2009/11/04/safe-web/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 13:07:35 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Children]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Safe Webb]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/11/04/safe-web/</guid>
		<description><![CDATA[This post is a little of topic from what I usually write but for me it’s something important so I hope you forgive me. In May 2009 I became a father to a little girl who means the world to me. A post on the Cisco Portal blog got me thinking about security from a [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a little of topic from what I usually write but for me it’s something important so I hope you forgive me. In May 2009 I became a father to a little girl who means the world to me. <a href="http://www.nixadmins.net/wp-content/uploads/2009/11/web1.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="web1" border="0" alt="web1" align="right" src="http://www.nixadmins.net/wp-content/uploads/2009/11/web1_thumb.jpg" width="226" height="150" /></a>A post on the Cisco Portal blog got me thinking about security from a different point of view. Security at home. The internet has provided us with so much good. We can get information, access our bank and get news 24/7 . But it has it’s dark sides also. When I was young my parents knew that once I was home I was safe. I had my safe haven inside my parents house where no one could get to me.</p>
<p>The Internet with all it’s glory also opened a gateway to our homes for the predators. Following the news you read almost weekly about police shutting down large pedophile groups, and that’s a good thing. Law enforcement units are able to hunt them down using the networks. But just as the good guys use the networks to find them, the bad guys use the networks to share their sick and twisted materials. </p>
<p> <span id="more-627"></span><br />
<h2>How do we protect our children from this? </h2>
<p>I know the most effective ways are to, from a young age, teach them how to behave in social medias etc. But does it protect them enough. I don’t think so!</p>
<p>If you work as a systems administrator and have the privilege of watching firewall logs you’ll know what I know. Even if there is a company policy saying you can’t do this or can’t do that, people will still do it if you don’t prevent it. And you need to remember these are adults, so do we expect our children to follow these rules without ever crossing lines. I hope your not that blind, because they will.</p>
<p>So how do we protect them, the most secure way might be to sit the sessions with them, but that’s never going to work. My daughter is only 6 months so I don’t expect to know everything yet but I’m guessing someone with a teenage daughter trying to sit with them while they chat with their friends would hear a lot of <strong>*unfriendly*</strong> words. Correct me if I’m wrong.</p>
<p>The same goes to using spy software, not to mention in some countries it’s illegal. </p>
<p>There are also many devices children use. They use cell phones, computers, PSP, MP3 players, Nintendo’s, Playstation’s, Xboxes and many more. Most of them able to connect to the internet.</p>
<h2>Using proxy services and firewalls</h2>
<p>We can block access to certain sites or allow access to only certain sites using proxies. And blocking every port and protocol except the ones needed for the proxy will effectively shut down any attempts made to chat with software like MSN, ICQ etc. But doing something like that do we also restrict our children from learning? Where does the line between security and paranoia go? Also I don’t expect every parent out there to sit at home and configure proxy services and firewalls. It’s just to hard for the masses.</p>
<p>Apple OS X does include really easy to setup services to some protection. Like blocking adult sites, allowing use of only a few software&#8217;s, usage time and bedtime. This is a great idea but at the same time it does need configuration. But unlike firewalls and proxies, OS X is like any Apple product easy to use.</p>
<p>Here you can see some of the settings.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/11/p4.png"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px; display: inline; border-top: 0px; border-right: 0px" title="p4" border="0" alt="p4" src="http://www.nixadmins.net/wp-content/uploads/2009/11/p4_thumb.png" width="137" height="163" /></a> <a href="http://www.nixadmins.net/wp-content/uploads/2009/11/p1.png"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 5px; display: inline; border-top: 0px; border-right: 0px" title="p1" border="0" alt="p1" src="http://www.nixadmins.net/wp-content/uploads/2009/11/p1_thumb.png" width="153" height="130" /></a> <a href="http://www.nixadmins.net/wp-content/uploads/2009/11/p2.png"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 5px; display: inline; border-top: 0px; border-right: 0px" title="p2" border="0" alt="p2" src="http://www.nixadmins.net/wp-content/uploads/2009/11/p2_thumb.png" width="155" height="154" /></a> <a href="http://www.nixadmins.net/wp-content/uploads/2009/11/p3.png"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 5px; display: inline; border-top: 0px; border-right: 0px" title="p3" border="0" alt="p3" src="http://www.nixadmins.net/wp-content/uploads/2009/11/p3_thumb.png" width="134" height="153" /></a> </p>
<p>If you know of software’s like this for other platforms like <a href="http://www.microsoft.com" target="_blank">Microsoft</a> Windows, Linux, Symbian, Windows Mobile, iPhone OS, Android etc let me know. I’ll try to test as many as I can and post the test results on this blog in a future post.</p>
</p>
<h2>Trust your children</h2>
<p>Should we just trust them to make the right decision when confronted with a choice? <a href="http://www.nixadmins.net/wp-content/uploads/2009/11/protect1.jpg"><img style="border-bottom: 0px; border-left: 0px; margin: 5px; display: inline; border-top: 0px; border-right: 0px" title="protect1" border="0" alt="protect1" align="left" src="http://www.nixadmins.net/wp-content/uploads/2009/11/protect1_thumb.jpg" width="153" height="176" /></a> Yes and no is my answer. There is no way we can ever protect our children from everything bad out there. We should also let them do their own mistakes. As we did when we were young.</p>
<p>We do need to follow closely on behavior and patterns since we have the web working against us. And we need to know what’s going on by <strong>*knowing*</strong> our children. Not by spying on them! Create a relationship based on trust and teach them how to behave online just as you teach them how to behave in real life. The web isn’t that different from the real life. I’m guessing the hardest part is to get your child to trust you enough to be open about what’s going on in his/her life. And internet or not, that’s called parenting.</p>
<p>Are you a parent? Have you been thinking about this? Please comment. How did you solve the problem, or do you trust your child to make the right decision?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/11/04/safe-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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[VPN]]></category>
		<category><![CDATA[Vista]]></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 to [...]]]></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>
		<item>
		<title>IP Subnetting made easy on TechRepublic</title>
		<link>http://www.nixadmins.net/2009/10/25/ip-subnetting-made-easy-on-techrepublic/</link>
		<comments>http://www.nixadmins.net/2009/10/25/ip-subnetting-made-easy-on-techrepublic/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 19:53:14 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Calculate subnet]]></category>
		<category><![CDATA[IP Subnetting]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/10/25/ip-subnetting-made-easy-on-techrepublic/</guid>
		<description><![CDATA[If you’ve read my posts you’ve seen I’m trying to get my Microsoft Certified IT Professional status. This means getting reacquainted&#160; with things I went trough in school but have since forgot. One of these things is IP Subnetting. So I needed to find a good guide to refresh my memory. Googling I found there [...]]]></description>
			<content:encoded><![CDATA[<p>If you’ve read my posts you’ve seen I’m trying to get my <a href="http://www.microsoft.com" target="_blank">Microsoft</a> Certified IT Professional status. This means getting reacquainted&#160; with things I went trough in school but have since forgot. One of these things is IP Subnetting. So I needed to find a good guide to refresh my memory. Googling I found there are many guides out there, but this one is mine (a little Full metal Jacket joke), but I found one on Techrepublic that was really in-depth and easy to follow. The writer, George Ou knows what he is talking about and makes following his writings easy. If you don’t have the time to read the whole article at least take a look at the part where he is using the Windows standard calculators AND function. Did you know about that?</p>
<p><span id="more-554"></span>
<p>Take a look at his article <a title="http://articles.techrepublic.com.com/5100-10878_11-6089187.html" href="http://articles.techrepublic.com.com/5100-10878_11-6089187.html">http://articles.techrepublic.com.com/5100-10878_11-6089187.html</a></p>
<h3>Calculating subnets</h3>
<p>For those normal times when you’re not sitting in an exam and you’re able to use a specific calculator for this task I suggest you take a look at the following.</p>
<ul>
<li><a href="http://www.subnet-calculator.com/" target="_blank">Online Subnet Calculator</a></li>
<li><a href="http://www.wildpackets.com/resources/free_utilities/ipsubnetcalc" target="_blank">IP Subnet Calculator</a></li>
</ul>
<p>As with posts about calculating subnets, there are many subnet calculators out there. These two are the ones I use every time I need to calculate networks. The Online Subnet calculator is specifically good if you’re on a customers computer and don’t want to install anything while IP Subnet Calculator is something I keep installed on both my laptop and my desktops to be able to quickly check network settings if I need to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/10/25/ip-subnetting-made-easy-on-techrepublic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco ADSM and Windows Vista 64</title>
		<link>http://www.nixadmins.net/2009/10/24/cisco-adsm-and-windows-vista-64/</link>
		<comments>http://www.nixadmins.net/2009/10/24/cisco-adsm-and-windows-vista-64/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 12:54:55 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Cisco ADSM]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JRE]]></category>
		<category><![CDATA[Vista 64-bit]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/10/24/cisco-adsm-and-windows-vista-64/</guid>
		<description><![CDATA[I’m using Windows Vista 64-bit on my Windows desktop and launching Ciscos management software ADSM 6.0 I got an error saying 
“ASDM is unable to continue loading. Click OK to exit from ASDM.       Unconnected sockets not implemented.”
ADSM was however launching on my Windows 7 64-bit laptop so I started [...]]]></description>
			<content:encoded><![CDATA[<p>I’m using Windows Vista 64-bit on my Windows desktop and launching Ciscos management software ADSM 6.0 I got an error saying </p>
<p><strong><em>“ASDM is unable to continue loading. Click OK to exit from ASDM.       <br />Unconnected sockets not implemented.”</em></strong></p>
<p>ADSM was however launching on my Windows 7 64-bit laptop so I started looking for any other difference than the OS. ADSM is a Java application so starting there was only reasonable. I ran Java JRE 1.6 update 13 in the Vista machine and 1.6 update 7 in the Windows 7 laptop.</p>
<p>Downgrading the Java JRE to 1.6 update 7 solved the issue and ADSM is now launching without any problems. So if you’re having trouble getting the Cisco ADSM to launch, check and possibly downgrade your Java Runtime Environment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/10/24/cisco-adsm-and-windows-vista-64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running OpenVPN-gui 2.X in Windows Vista</title>
		<link>http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/</link>
		<comments>http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 21:30:24 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/</guid>
		<description><![CDATA[This is a short short note how to get OpenVPN-GUI 2.X working under Windows Vista.
First of all you have to set it to always run as administrator. Go to the folder where it is installed and in the Bin folder you’ll find the OpenVPN-GUI executable. On the Compatibility tab you find Privilege Level, set it [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short short note how to get OpenVPN-GUI 2.X working under Windows Vista.</p>
<p>First of all you have to set it to always run as administrator. Go to the folder where it is installed and in the Bin folder you’ll find the OpenVPN-GUI executable. On the <strong>Compatibility</strong> tab you find<strong> Privilege Level</strong>, set it to <strong><em>Run this program as an Administrator</em></strong><strong><em></em></strong></p>
<p><strong><em><a href="http://www.nixadmins.net/wp-content/uploads/2009/02/ovpn-gui-runas.jpg"><img title="ovpn_gui_runas" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="517" alt="ovpn_gui_runas" src="http://www.nixadmins.net/wp-content/uploads/2009/02/ovpn-gui-runas-thumb.jpg" width="381" border="0" /></a></em></strong></p>
<p>&#160;</p>
<p>In your the parent folder find the <strong>config</strong> folder and open the config file. Add the following lines to the file.</p>
<p><strong><font color="#800000">route-method exe</font></strong></p>
<p><strong><font color="#800000">route-delay 2</font></strong></p>
</p>
<p><strong><font color="#800000"></font></strong></p>
<p><strong><font color="#800000"></font></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Troubleshoot Juniper Firewall/VPN devices</title>
		<link>http://www.nixadmins.net/2009/02/04/troubleshoot-juniper-firewallvpn-devices/</link>
		<comments>http://www.nixadmins.net/2009/02/04/troubleshoot-juniper-firewallvpn-devices/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 21:13:58 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Juniper]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[SSG-5. ScreenOS]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/02/04/troubleshoot-juniper-firewallvpn-devices/</guid>
		<description><![CDATA[Sometimes things don’t turn out the way you would expect and when they don’t you get to do the most rewarding thing in this business, troubleshoot. I love trouble because of the warm fuzzy feeling you get inside when you find out what’s causing the problem and solve it. And usually, when you set your [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes things don’t turn out the way you would expect and when they don’t you get to do the most rewarding thing in this business, <em>troubleshoot</em>. I love trouble because of the warm fuzzy feeling you get inside when you find out what’s causing the problem and solve it. And usually, when you set your mind to it you will solve the problem.</p>
<p>It’s like playing detective, like you used to do when you were a kid. For a few days now I’ve been looking at some network problems and had to rule out some firewalls. This very short article is something you can find in the documentation of your Juniper device or at Junipers website, <a href="http://www.juniper.net">http://www.juniper.net</a> . So why am I writing about it? Well for some reason I find it easier to find my own writings than going trough a huge company website. It might be because of their large number of pages, articles, whitepapers etc. Anyway consider this something like a post-it for the few commands needed to do some debugging in a Juniper device.</p>
<h2>The layout</h2>
<p>To keep this fictional let’s say we have a network layout according to the following image.<a href="http://www.nixadmins.net/wp-content/uploads/2009/02/juniper-article-img1.jpg"><img style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin: 5px auto; border-right-width: 0px" title="juniper_article_img1" src="http://www.nixadmins.net/wp-content/uploads/2009/02/juniper-article-img1-thumb.jpg" border="0" alt="juniper_article_img1" width="403" height="97" /></a> So we have two sites connected via Juniper SSG’s over internet using VPN. I’m not going into setting up the VPN, maybe a article for the future, for now let’s assume they are connected and are showing that the connection is up and running.</p>
<h2>How a Juniper device checks a packet</h2>
<p>To understand the flow filters and debug output we first need to take a look at how a packet makes it’s  way trough the firewall appliance. This is easy to see with a flowchart, so here it is. Click to get a larger image. As you can see there are quite a few checks before the package get’s sent out from the firewall. Let’s take a really fast look at the process.<a href="http://www.nixadmins.net/wp-content/uploads/2009/02/juniper-article-img2.jpg"><img class="alignleft" style="border: 0pt none; margin: 5px 0px;" title="Click for fullsize image" src="http://www.nixadmins.net/wp-content/uploads/2009/02/juniper-article-img2-thumb.jpg" border="0" alt="Click for fullsize image" width="80" height="244" /></a></p>
<p>- <em>Sanity check</em>, first the packet goes trough a sanity check to make sure the packet’s not corrupt.</p>
<p>- <em>Session exists, </em>check if this is an previously started session, if it is then go to check the action from the policy settings.</p>
<p>- <em>Check destination,</em> where is the packet going?</p>
<p>- <em>Destination reachable?</em> If it’s not we drop or reject the packet. If the destination is reachable we check the policy to if it’s allowed.</p>
<p>- <em>Policy ok?</em> If the packet’s not allowed we drop/reject the package. It it’s ok according to policy we move on.</p>
<p>- <em>Arp query,</em> we need to do a ARP Query to find out our way to the destination.</p>
<p>- <em>Perform action according to policy,</em> this is self explanatory.</p>
<p>- <em>Add to session table,</em> without this we couldn’t check if session exists.</p>
<p>So now that we know how the traffic move trough the firewall we can start looking at what’s happening when it does.</p>
<h2>The Case</h2>
<p>Let’s say we have a server in one of our subnet’s and the local systems administrator has problems whit it accessing the offsite DNS server. The DNS server is located in the other site. So to check if DNS traffic is going trough the VPN tunnel. If you have NSM you can do the same with it but this time I’m going to use plain old SSH access to the firewall. After you enter the prompt set up a filter to see the traffic.</p>
<p>set ffilter src-ip 192.168.2.250 dst-ip 192.168.1.251 dst-port 53</p>
<p>The command above sets flow filter to follow traffic coming from 192.168.2.250 and going to 192.168.1.251, and the destination port should be 53.</p>
<p>Now let’s turn on the debugging.</p>
<div class="terminal">debug flow basic<br />
clear db &lt;- clear the debug database so nothing old get’s in the way.<br />
get db str<br />
****** 23799281.0: &lt;Trust/ethernet0/0&gt; packet received [176]******</p>
<p>ipid = 17087(42bf), @04e492e4<br />
packet passed sanity check.<br />
ethernet0/0:192.168.1.251/53-&gt;192.168.2.250/49788,17&lt;Root&gt;<br />
existing session found. sess token 4<br />
flow got session.<br />
flow session id 46122<br />
existing vector list 285-369a1d4.<br />
post addr xlation: 192.168.1.251-&gt;192.168.2.250.<br />
update policy out counter info.<br />
skipping pre-frag<br />
going into tunnel 400000b6.<br />
flow_encrypt: pipeline.<br />
chip info: PIO. Tunnel id 000000b6<br />
(vn2)  doing ESP encryption and size =184<br />
ipsec encrypt prepare engine done<br />
ipsec encrypt set engine done<br />
ipsec auth done<br />
ipsec encrypt engine released<br />
ipsec encrypt done<br />
put packet(5388fd0) into flush queue.<br />
remove packet(5388fd0) out from flush queue.</p></div>
<p>So what do we see here. First we see the packet passing sanity check.</p>
<p><em>packet passed sanity check.</em></p>
<p>The next line tells us that the local DNS server is indeed answering the DNS requests.</p>
<p><em>ethernet0/0:192.168.1.251/53-&gt;192.168.2.250/49788,17&lt;Root&gt;</em></p>
<p>The SSG also finds an existing session so the packet is handled according to the policies. No problems here so we can now go to do the same thing at the other end or start troubleshooting the DNS client offsite.</p>
<h2>Turning of the debug</h2>
<p>To clear the settings we type the following.</p>
<p>undebug all</p>
<p>unset ffilter</p>
<p>clear db</p>
<p>After that log out and you´re done.</p>
<h2>Finishing words</h2>
<p>As I said in the beginning this is a very short informational post. Nothing fancy. Just the basics. Hope you got as much out of it reading it as I got writing it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/02/04/troubleshoot-juniper-firewallvpn-devices/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
