<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>RetroHack</title>
	
	<link>http://retrohack.com</link>
	<description>lest the tubes become overfull</description>
	<lastBuildDate>Wed, 28 Jul 2010 15:26:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Retrohack" /><feedburner:info uri="retrohack" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Retrohack</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>howto://connect clients to exchange-part two</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/_1lMEOWI-X8/</link>
		<comments>http://retrohack.com/enable-activesync-outlook-anywhere-exchange-2010/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[isa & tmg]]></category>

		<guid isPermaLink="false">http://retrohack.com/exchange-2010-support-for-activesync-and-outlook-anywhere/</guid>
		<description><![CDATA[In this post we set up Exchange 2010 to support ActiveSync and Outlook Anywhere, we publish this to the Internet through our TMG, and we even see how to configure iPod/iPhone/iPad devices for ActiveSync.


You might also enjoy:<ol><li><a href='http://retrohack.com/enable-pop3-imap-exchange-2010/' rel='bookmark' title='Permanent Link: howto://connect clients to exchange-part one'>howto://connect clients to exchange-part one</a></li>
<li><a href='http://retrohack.com/how-to-install-exchange-2010-on-a-single-box-part-two/' rel='bookmark' title='Permanent Link: howto://install Exchange 2010 on a single box-part two'>howto://install Exchange 2010 on a single box-part two</a></li>
<li><a href='http://retrohack.com/how-to-use-tmg-2010-as-the-exchange-edge-transport-server/' rel='bookmark' title='Permanent Link: howto://use TMG 2010 as the Exchange edge transport server'>howto://use TMG 2010 as the Exchange edge transport server</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/tag/exchange/" rel="tag" target="_blank"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="exchange" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/05/exchange.jpg" /></a>Welcome back. In the first half of this series, <a href="http://retrohack.com/enable-pop3-imap-exchange-2010/" target="_blank">howto://connect clients to exchange-part one</a>, we covered how to securely enable POP3 and IMAP for clients, and how to make those services accessible over the Internet using our TMG server. In this post, we are going to cover ActiveSync and Outlook Anywhere, and then of course, how to publish them through our TMG.</p>
<p>Exchange ActiveSync is Microsoft&#8217;s solution for connecting Windows Mobile devices to Exchange. It also happens to work for iPhones/iPod Touch/iPads, and Droid devices (though Verizon will charge you extra for that privilege. Bzzz!) ActiveSync uses a secure connection over HTTPS, and can be published easily through our TMG, making it the most attractive option for those devices that can use it. For Outlook clients who work remotely, and for whatever reason don&#8217;t want to first connect by VPN, Outlook Anywhere lets you make MAPI connections by tunneling RPC over HTTPS, supporting the full Outlook experience. Again, we&#8217;ll use our TMG to publish this. We&#8217;ll find out everything there is to know about remote connections to Exchange: their dreams, their desires, their most intimates of intimates, and from what I&#8217;m looking at, &quot;intimate&quot; is the stud muffin&#8217;s middle name. If you would like to set this up on your Exchange server, read on.</p>
<p> <span id="more-2346"></span>
<p>Exchange ActiveSync is installed by default on servers when you install the Client Access Server role, so there is not much else to do with that. If you have a CAS, you have ActiveSync. All users will have ActiveSync enabled by default, and you should be good to go. Of course, if it was really that easy, I wouldn&#8217;t be blogging about it, would I?</p>
<h3></h3>
<h3>It&#8217;s called SEKURITAH</h3>
<p>I&#8217;m confused. In NT4 days, we all just logged on as Administrator and got the job done. Then in Windows 2000, we started paying attention to security and best practices, and had two accounts&#8230;a regular user account, and a privileged user account. We quickly learned what a pain in the arse that was, so in 2003, we started to really use RUNAS.</p>
<p>But then, folks realised that the above was all crap, and we just always made our AD account a member of domain admins. Yeah, we call it human nature. So the good folks as Microsoft introduced User Account Control, and the lovely ConsentUI. That sounded pretty good to me, and I am an advocate of UAC, however&#8230;what they did NOT get rid of is a little gem called <a href="http://technet.microsoft.com/en-us/magazine/2009.09.sdadminholder.aspx" target="_blank">sdAdminHolder</a>. Why is this a problem? Because it is evil, absolutely evil. This little gem flags all accounts made members of privileged groups to try to better secure them. In addition to restricting who can make changes to these accounts, it also blocks inheritance on the DACLs. This will bork ActiveSync for you the first time you try to set up your account, so listen up.</p>
<p>When you go to set up your device, it will error that a connection failed. Before you spend too much time looking at firewall ports or funky DNS issues, check the system logs on the Exchange server for Event ID 1053 from MSExchange ActiveSync. If this is your problem, it will look like this.</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image29.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="What was that honey? It was BAD! It had no fire, no energy, no nothing!" border="0" alt="What was that honey? It was BAD! It had no fire, no energy, no nothing!" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb27.png" width="644" height="448" /></a> </p>
<p><code>Exchange ActiveSync doesn't have sufficient permissions to create the &quot;CN=Ed Fisher,CN=Users,DC=olympus,DC=home&quot; container under Active Directory user &quot;Active Directory operation failed on zeus.olympus.home. This error is not retriable. Additional information: Access is denied.      <br />Active directory response: 00000005: SecErr: DSID-031521D0, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0       <br />&quot;.       <br />Make sure the user has inherited permission granted to domain\Exchange Servers to allow List, Create child, Delete child of object type &quot;msExchangeActiveSyncDevices&quot; and doesn't have any deny permissions that block such operations. </code></p>
<p>You see, in order to actually <em>use </em>ActiveSync, configuration information has to be written to Active Directory in your user account object, and if you are a privileged user, sdAdminHolder will spank you with this error. We can fix it, but realise that a process called SDPROP checks for things that mess with accounts flagged with <a href="http://technet.microsoft.com/en-us/magazine/2009.09.sdadminholder.aspx" target="_blank">sdAdminHolder</a> every hour, and will just set things back, so move <em>quickly.</em></p>
<p>If you want to see whether or not an account is flagged, check the attributes. All privileged accounts will have adminCount set to 1, like so.    <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image30.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Sir, are you classified as human? Negative, I am a meat popsicle." border="0" alt="Sir, are you classified as human? Negative, I am a meat popsicle." src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb28.png" width="406" height="484" /></a> </p>
<h3>How to get around sdAdminHolder issues</h3>
<p>If you want to get around this, have the client device in hand and ready to set up. Don&#8217;t start this process until you have the device ready to configure, as that SDPROP is going to undo what we are about to do. Quiver ladies, quiver.</p>
<ol>
<li>On your CAS server, launch the Exchange Management Console. </li>
<li>Browse down to Server Configuration and then double-click your CAS server from the server list. </li>
<li>Go to the System Settings tab, and determine with domain controller is being used.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image31.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb29.png" width="463" height="484" /></a>       </li>
<li>Launch ADUC on that domain controller and find the account. </li>
<li>Right-click the account, and select Properties. </li>
<li>Then go the security tab, and click Advanced.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image32.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb30.png" width="442" height="523" /></a>       </li>
<li>Check the box to include inheritable permissions blah blah blah&#8230;      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image33.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb31.png" width="643" height="491" /></a>       </li>
<li>Hit OK, then hit OK, and then try to connect with ActiveSync again. </li>
</ol>
<p>If all goes well, you should slip in under the wire before SDPROP can put things back. SDPROP won&#8217;t remove the ActiveSync data, so you will be fine unless you need to make changes or add another device. If that happens, you can just do this again. Since Windows Mobile phones are pretty straight forward to configure (read that as I don&#8217;t have one to play with) you are on your own for setting these up. For those of you who belong to the cult of Apple, see <a href="http://retrohack.com/use-activesync-on-iphone/" target="_blank">this post</a> (coming soon.)</p>
<h3></h3>
<h3>Securing ActiveSync</h3>
<p>You may want (or the Security team may tell you) to tighten up the settings on ActiveSync. Here is what we can do with that. I prefer to leave things more open so I can support more devices, and let policy and user training mitigate any risks of exposing confidential information. Again, YMMV. Most of these settings will only work on Windows Mobile devices.</p>
<ol>
<li>Log on to the Exchange Management Console, browse down to Organization Configuration, Client Access, and then click the Exchange ActiveSync Mailbox Policies </li>
<li>Double-click the Default Policy to bring up the Properties. Notice the default is to allow non-provisionable devices. This is a good thing for iPod/iPhone/iPad devices.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image34.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb32.png" width="505" height="484" /></a>       </li>
<li>You can require that mobile devices require a password for use, and whether or not to encrypt data stored on the device. Just remember how much fun it is to type complex passwords on those little keyboards!      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image35.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb33.png" width="453" height="505" /></a>       </li>
<li>You can set limits on synching and file sizes      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image36.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb34.png" width="452" height="505" /></a> </li>
<li>You can restrict what functions the device can use      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image37.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb35.png" width="453" height="503" /></a> </li>
<li>And you can also configure permitted or denied applications on the last two tabs. </li>
<li>To deal with a lost or stolen device, first browse down to Recipient Configuration, Mailbox.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image38.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb36.png" width="227" height="319" /></a>       </li>
<li>Highlight the user, then on the Actions Pane, click Manage Mobile Phone.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image39.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb37.png" width="289" height="331" /></a>       </li>
<li>From this screen, you can either remove a device from a mailbox (leaves the data that is already on the device intact) or lay the smackdown upon it with a remote wipe.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image40.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb38.png" width="552" height="484" /></a>       <br />Just remember, no device is guaranteed to be completely clean, and unrecoverable, after any kind of data wipe. Don&#8217;t send state secrets, launch codes, or Swiss bank account numbers through email. <em>&lt;♫&gt; The more you know &lt;/♫&gt;</em> </li>
</ol>
<h3>Configuring Outlook Anywhere</h3>
<p>Next up is Outlook Anywhere. The idea with this is, we want to permit our clients with laptops and the full Outlook client to connect to Exchange without first requiring a VPN. Kind of like using a multipass. Since the connection is securely encrypted within an HTTPS connection and authenticated against AD, this does not present a problem to me. For others, the idea of letting ANYTHING on the inside be accessible without a VPN is anathema, so your mileage may vary on getting this approved. But seriously, what is the real difference between an encrypted VPN tunnel and an encrypted HTTPS connection, other than licensing costs? Not much. And this one is really quite easy to do.</p>
<ol>
<li>Launch the Exchange Management Console. </li>
<li>Browse down to Server Configuration and double-click your CAS server. </li>
<li>Click on the Outlook Anywhere tab. </li>
<li>Configure your external DNS name, and what level of authentication you want. Trust me, you want NTLM. If you have SSL accelerator hardware you can allow offloading.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image41.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb39.png" width="465" height="484" /></a> </li>
</ol>
<p>That is it&#8230;Outlook Anywhere is now supported on the CAS. Next up, our TMG configuration so we can actually use this across teh tubes!</p>
<h3>Publishing ActiveSync and Outlook Anywhere with TMG 2010</h3>
<p>To publish these services through TMG requires two rules. We are going to use our generic https listener that we set up on TMG during <a href="http://retrohack.com/how-to-publish-owa-through-tmg/" target="_blank">this post on publishing Outlook Web Access</a>. If you have multiple public ip.addrs and want to set up a dedicated listener, please do so.</p>
<ol>
<li>Log onto your TMG server and launch the TMG Management Console. </li>
<li>Browse down to Firewall Policy. Right-click, New, Exchange Web Client Access Publishing Rule&#8230;      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image42.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb40.png" width="528" height="334" /></a>       </li>
<li>We&#8217;re going to setup ActiveSync first, so give this rule an appropriate name, and then click Next. </li>
<li>Click the drop down list to select Exchange Server 2010, then check the box for Exchange ActiveSync. Don&#8217;t ask me why these are check boxes and not radio buttons&#8230;I don&#8217;t know.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image43.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Last time I looked, checkboxes were for when you could select more than one at a time. Dude, WTH?" border="0" alt="Last time I looked, checkboxes were for when you could select more than one at a time. Dude, WTH?" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb41.png" width="511" height="482" /></a>       </li>
<li>Leave the default for a single Web site and click Next. </li>
<li>Leave the default to connect using SSL, and click Next. </li>
<li>Enter only the internal FQDN of your CAS server, and then click Next. </li>
<li>Enter the external FQDN for your ActiveSync clients, and the click Next. </li>
<li>Select your generic https listener, and click Next. </li>
<li>Make sure you select that client may authenticate directly, then click Next.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image44.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb42.png" width="506" height="478" /></a>       </li>
<li>Leave the User Set for All Users, and click Next. </li>
<li>Click Test Rule. You will see that ActiveSync uses the special URL https://fqdn:443/Microsoft-Server-ActiveSync/. If the test shows green, you are good to go. Green? Super green!      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/RubyRod.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Unbelievable!!!" border="0" alt="Unbelievable!!!" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/RubyRod_thumb.jpg" width="244" height="111" /></a>       </li>
<li>Now go back and do it all again, this time naming the rule and choosing the option for Outlook Anywhere.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image45.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb43.png" width="506" height="477" /></a>&#160; </li>
</ol>
<p>That&#8217;s it. Get on an external network, and test things out. You should now be able to ActiveSync or Outlook Anywhere across teh tubes. Yay! Now dance all night long. <em>All night long&#8230;all night.</em> That, or book a weekend at Fhlostan Paradise. You&#8217;ve earned it. Just in case you missed some of the references I scattered through this post, they&#8217;re from <a href="http://www.imdb.com/title/tt0119116/" target="_blank">The Fifth Element</a>. Here&#8217;s a sampling of the best character from that flick&#8230;DJ Ruby Rhod!</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:eecd393a-2340-47f1-b4c0-b2b67657d8e6" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/m60GdwvUjQw&amp;hl=en_US&amp;fs=1?color1=0x3a3a3a&amp;color2=0x999999&amp;border=1&amp;hl=en"></param><embed src="http://www.youtube.com/v/m60GdwvUjQw&amp;hl=en_US&amp;fs=1?color1=0x3a3a3a&amp;color2=0x999999&amp;border=1&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.youtube.com/watch?v=m60GdwvUjQw">http://www.youtube.com/watch?v=m60GdwvUjQw</a>&#160;</p>
<p><em>If you found this post useful, please consider </em><a href="http://twitter.com/retrohack"><em>following us on twitter</em></a><em>. You’ll be the first to learn about new posts, and, rarely, we’ll share a comedic or witty tweet. Of course, you can also leave a comment below (anonymous allowed) to let us know we hooked you up.</em></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/enable-pop3-imap-exchange-2010/' rel='bookmark' title='Permanent Link: howto://connect clients to exchange-part one'>howto://connect clients to exchange-part one</a></li>
<li><a href='http://retrohack.com/how-to-install-exchange-2010-on-a-single-box-part-two/' rel='bookmark' title='Permanent Link: howto://install Exchange 2010 on a single box-part two'>howto://install Exchange 2010 on a single box-part two</a></li>
<li><a href='http://retrohack.com/how-to-use-tmg-2010-as-the-exchange-edge-transport-server/' rel='bookmark' title='Permanent Link: howto://use TMG 2010 as the Exchange edge transport server'>howto://use TMG 2010 as the Exchange edge transport server</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/_1lMEOWI-X8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/enable-activesync-outlook-anywhere-exchange-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://retrohack.com/enable-activesync-outlook-anywhere-exchange-2010/</feedburner:origLink></item>
		<item>
		<title>howto://connect clients to exchange-part one</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/8jOerOfbC-M/</link>
		<comments>http://retrohack.com/enable-pop3-imap-exchange-2010/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[isa & tmg]]></category>

		<guid isPermaLink="false">http://retrohack.com/exchange-2010-support-for-pop3-and-imap/</guid>
		<description><![CDATA[In this post we set up Exchange 2010 to support POP3 and IMAP


You might also enjoy:<ol><li><a href='http://retrohack.com/enable-activesync-outlook-anywhere-exchange-2010/' rel='bookmark' title='Permanent Link: howto://connect clients to exchange-part two'>howto://connect clients to exchange-part two</a></li>
<li><a href='http://retrohack.com/howtoinstall-exchange-2010-on-a-single-box-part-one/' rel='bookmark' title='Permanent Link: howto://install Exchange 2010 on a single box-part one'>howto://install Exchange 2010 on a single box-part one</a></li>
<li><a href='http://retrohack.com/how-to-install-exchange-2010-on-a-single-box-part-two/' rel='bookmark' title='Permanent Link: howto://install Exchange 2010 on a single box-part two'>howto://install Exchange 2010 on a single box-part two</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/tag/exchange/" rel="tag" target="_blank"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="exchange" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/05/exchange.jpg" /></a>Before you go there, I am not talking about connecting Outlook to Exchange on the LAN. I&#8217;m talking about those <em>other </em>situations, like the graphics guy using Mac Mail, or the security guy using Thunderbird on Linux,&#160; or someone with a Windows Mobile device, or even you with your iPhone.</p>
<p>In this two part series, we are going to first cover how to securely enable POP3 and IMAP for those clients that can&#8217;t (or won&#8217;t) use Outlook, and in the second half of this series, <a href="http://retrohack.com/enable-activesync-outlook-anywhere-exchange-2010/" target="_blank">howto://connect clients to exchange-part two</a>, we will cover how to use ActiveSync for Windows Mobile, Droid, and iPod Touch/iPhone/iPads, and also how to support remote Outlook connections without a VPN using Outlook Anywhere. If you need to support POP3 and/or IMAP, read on for how to get it done.</p>
</p>
<p> <span id="more-2274"></span>
</p>
<p>Exchange 2010 does support POP3 and IMAP out of the box. It also supports the secure versions using TLS and either a self-signed certificate or one that you get from your trusted CA. However, none of this is<em> turned on</em> by default. If you try to connect a client at this point, you will get nothing but fails and RST ACKS. To enable these services, do this.</p>
<h3>Enabling IMAP and POP3 services</h3>
<ol>
<li>Open a cmd prompt, and run <code>netstat –an | more [enter] </code>If you check listening ports on your CAS server, you will see that he is not listening on POP3, POPS, IMAP, or IMAPS. Of course it is listening on SMTP and SMTPS, which you will need for these clients to send mail.       <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image121.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="netstat -an | more...no 110, 143, 993, or 995." border="0" alt="netstat -an | more...no 110, 143, 993, or 995." src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image12_thumb.png" width="644" height="322" /></a>       </li>
<li>To enable these services, launch services.msc. Find the Microsoft Exchange IMAP4 and Microsoft Exchange POP3 services. There are only the two&#8230;IMAP4 handles cleartext and secure IMAP, and POP3 handles cleartext and secure POP3.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image24.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb23.png" width="644" height="386" /></a>       </li>
<li>Configure the IMAP4 service to start automatically.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image61.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image6_thumb.png" width="430" height="484" /></a>       </li>
<li>Then, start it.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image91.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image9_thumb.png" width="432" height="484" /></a>       </li>
<li>Repeat the same process for the POP3 service. </li>
<li>Now check again with netstat and you will see that you have listeners for 110-POP3, 143-IMAP, 993-IMAPS, and 995-POPS.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image151.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image15_thumb.png" width="644" height="322" /></a>       </li>
<li>Do your happy dance.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/theSnoopyDance.gif"><img style="display: inline" title="An actual video of me doing my happy dance." alt="An actual video (low-res) of me doing my happy dance." src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/theSnoopyDance_thumb.gif" width="100" height="120" /></a>       </li>
</ol>
<h3>Restricting access to IMAP and POP3 services</h3>
<p>Strictly speaking, you are done on the server side. Any clients on the internal network should be able to connect. All users will be permitted to connect using POP3 or IMAP4 (and their secure counterparts) by default. If you want to restrict this, you can edit the individual mailboxes and disable specific protocols, like this.    <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image181.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image18_thumb.png" width="530" height="484" /></a></p>
<blockquote><p>Note that disabling IMAP in this way hits both IMAP4 and Secure IMAP. You don&#8217;t do this to disable cleartext&#8230;you handle that as shown below.</p>
</blockquote>
<h3>Securing IMAP and POP3 services with TLS</h3>
<p>As you should be aware, IMAP and POP3 are both cleartext protocols. All data, including authentication, is transmitted in the clear. It would be a shame to implement a strong password policy, aggressive lockout settings, and auditing in AD only to have the first guy with <a href="http://wireshark.org">Wireshark</a> start grabbing everyone&#8217;s domain credentials as they connect to Exchange using cleartext protocols. To prevent that, you want to set both to require TLS.</p>
<ol>
<li>Launch the Exchange Management Console. </li>
<li>Browse down to Server Configuration, Client Access. </li>
<li>Click on the POP3 and IMAP4 tab.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image211.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image21_thumb.png" width="644" height="434" /></a>       </li>
<li>Right-click on IMAP4, choose properties, and then go to the Authentication tab.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image241.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image24_thumb.png" width="430" height="484" /></a>       </li>
<li>Select Secure logon, and if necessary, enter the friendly name of the appropriate certificate. </li>
<li>Do the same for the POP3 service.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image27.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image27_thumb.png" width="432" height="484" /></a>       </li>
<li>Restart both services using services.msc. You must do this for the settings to take effect. </li>
</ol>
<p>With that, you are done. Internal clients are now able to connect securely to the POP3 and IMAP services, using their domain credentials. MAPI connections from Outlook are still the way to go whenever you have the option, but this should let you support a wider range of client without compromising security. Of course this requires that these clients be on the LAN, or connected by VPN. What if you want to permit connections from outside of your network without requiring VPN?</p>
<h3>Connecting from the Internet using TMG</h3>
<p>You might consider requiring a VPN connection before allowing access to POP3 and IMAP. This would reduce the number of open ports on the Internet, at the cost of requiring additional efforts on the client. Since ActiveSync clients will use only https to connect, the number of folks this will impact may not be significant.</p>
<p>Please also keep in mind that if you do publish these through the TMG, you are basically doing port forwarding. TMG cannot do SSL proxying for IMAP/POP3/SMTP, so your external clients (and the bad guys) will all be passing traffic directly to your CAS server. If that is acceptable, here is how to do it.</p>
<ol>
<li>Log on to your TMG server and launch the TMG Management Console. </li>
<li>Browse down to Firewall Policy, right-click it, and click New, Mail Server Publishing Rule&#8230;      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image25.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Invoke the New Mail Server Publishing Rule wizard." border="0" alt="Invoke the New Mail Server Publishing Rule wizard." src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb24.png" width="540" height="333" /></a>       </li>
<li>Give it a name, and click next. </li>
<li>Since this is for our clients, leave the option for Client access: and click Next.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image26.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb25.png" width="507" height="409" /></a>       </li>
<li>Since we only want to support the secure services that use SSL/TLS, we&#8217;re only going to select those options here. You may need to enable others for your situation. Then click Next.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image28.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb26.png" width="515" height="415" /></a>       </li>
<li>Enter the internal ip.addr of your CAS server, then click Next. </li>
<li>Select the external ip.addr you wish to use, and click Next. </li>
<li>Click Finish, click Apply, and then enter your documentation. </li>
</ol>
<p>That&#8217;s it. Now you just get the fun of setting up your clients. I don&#8217;t plan to cover any of that here except for getting iPhone/iPod Touch/iPad devices working with ActiveSync. That will be covered in an upcoming post, <a href="http://retrohack.com/use-activesync-on-iphone/" target="_blank">howto://connect your iphone to exchange with activesync</a>. And don&#8217;t forget to check back for part two of this post, <a href="http://retrohack.com/use-activesync-on-iphone/" target="_blank">howto://connect your iphone to exchange with activesync</a>, where we will cover ActiveSync and Outlook Anywhere. Until then, I can hardly throw an animated gif of Snoopy dancing into this post without taking it one step further. This should bring back some childhood memories.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:c395e27f-7265-434e-a428-af89f277ca56" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/rNremK0cBEg&amp;hl=en_US&amp;fs=1?color1=0x3a3a3a&amp;color2=0x999999&amp;border=1&amp;hl=en"></param><embed src="http://www.youtube.com/v/rNremK0cBEg&amp;hl=en_US&amp;fs=1?color1=0x3a3a3a&amp;color2=0x999999&amp;border=1&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.youtube.com/watch?v=rNremK0cBEg">http://www.youtube.com/watch?v=rNremK0cBEg</a></p>
<p><em>If you found this post useful, please consider <a href="http://twitter.com/retrohack">following us on twitter</a>. You’ll be the first to learn about new posts, and, rarely, you’ll get to share a comedic or witty tweet. Of course, you can also leave a comment below (anonymous allowed) to let us know we hooked you up.</em></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/enable-activesync-outlook-anywhere-exchange-2010/' rel='bookmark' title='Permanent Link: howto://connect clients to exchange-part two'>howto://connect clients to exchange-part two</a></li>
<li><a href='http://retrohack.com/howtoinstall-exchange-2010-on-a-single-box-part-one/' rel='bookmark' title='Permanent Link: howto://install Exchange 2010 on a single box-part one'>howto://install Exchange 2010 on a single box-part one</a></li>
<li><a href='http://retrohack.com/how-to-install-exchange-2010-on-a-single-box-part-two/' rel='bookmark' title='Permanent Link: howto://install Exchange 2010 on a single box-part two'>howto://install Exchange 2010 on a single box-part two</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/8jOerOfbC-M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/enable-pop3-imap-exchange-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://retrohack.com/enable-pop3-imap-exchange-2010/</feedburner:origLink></item>
		<item>
		<title>howto://upload large files to sharepoint 2010</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/l1bLY80Le2Q/</link>
		<comments>http://retrohack.com/sharepoint-2010-upload-large-files/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">http://retrohack.com/how-to-upload-large-files-to-sharepoint-2010/</guid>
		<description><![CDATA[You've installed SharePoint, added the BLOB service, and think everything is shiny...only to get spanked with a 404 when you try to upload larger files...here is what you are missing.


You might also enjoy:<ol><li><a href='http://retrohack.com/how-to-install-sharepoint-2010/' rel='bookmark' title='Permanent Link: howto://install SharePoint 2010'>howto://install SharePoint 2010</a></li>
<li><a href='http://retrohack.com/how-to-install-exchange-2010-on-a-single-box-part-two/' rel='bookmark' title='Permanent Link: howto://install Exchange 2010 on a single box-part two'>howto://install Exchange 2010 on a single box-part two</a></li>
<li><a href='http://retrohack.com/howtopublish-dns-using-tmg-2010-or-isa-2006/' rel='bookmark' title='Permanent Link: howto://publish DNS using TMG 2010 or ISA 2006'>howto://publish DNS using TMG 2010 or ISA 2006</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/tag/sharepoint/" rel="tag"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px 0px 0px; display: inline; border-top: 0px; border-right: 0px" title="sharepoint" border="0" alt="sharepoint" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/sharepoint1.jpg" width="80" height="91" /></a> </p>
<p>In today’s post we’re going to help get passed the generic 404 errors that SharePoint 2010 throws your way when you go to upload large files. If you are in the right place for this post, you&#8217;ve installed SharePoint, added the BLOB service, and everything should be shiny. You can upload small files without issue, and they do go into the BLOB store. But when you try to upload, say, a 100MB video, you get spanked with a 404 that tells you practically nothing of actual value.</p>
<p>If you are not ‘there yet’ and are just reading ahead, check out this post on <a href="http://retrohack.com/how-to-install-sharepoint-2010/" target="_blank">installing SharePoint 2010</a>. Then, since BLOB storage is a much more efficient way to store Binary Large OBjects, check out Rob Garrett’s blog on <a href="http://blog.robgarrett.com/2010/01/17/configuring-rbs-for-sp2010/" target="_blank">Installing the Remote Blob Storage for SharePoint 2010 and SQL 2008 R2</a>. You’re halfway there now…</p>
</p>
<p> <span id="more-2246"></span>
</p>
<p>What doesn’t seem obvious (a little pop up or dialog in the RBS wizard would have been nice!) is that there is more yet to do. The BLOB store (okay, it should be referred to as the RBS service, but I lurve saying BLOB in a technical context almost as much as I like to talk about thunking) is ready to receive and store large files, but there are two more places you have to configure things or you will run into that generic 404 error.</p>
<p>If you check your IIS logs, you will see that the generic 404 is actually a 404 13 (side note to IE9 team&#8230;add an option to display full response codes in the browser puh-leez!) which should be reported as a 413 Request Entity Too Large. In other words, you are trying to upload a file larger than the maximum that can be accepted. To actually permit larger uploads, we have to set a value in IIS and a value in SharePoint.</p>
<h3>IIS7</h3>
<ol>
<li>Browse to c:\inetpub\wwwroot\wss\virtualdirectories\yoursite (or where ever you store your content) and open the web.config in your favourite text editor. </li>
<li>Scroll down to the very bottom, put your cursor in front of &lt;/configuration&gt; and hit enter to create a new line. </li>
<li>Up arrow once to get onto that blank line, and paste this in right above the &lt;/configuration&gt;      <br /><code>&lt;system.webServer&gt;        <br />&#160;&#160;&#160;&#160;&#160; &lt;security&gt;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;requestFiltering&gt;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;requestLimits maxAllowedContentLength=&quot;2146435072&quot;/&gt;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/requestFiltering&gt;         <br />&#160;&#160;&#160;&#160;&#160; &lt;/security&gt;         <br />&lt;/system.webServer&gt;</code> </li>
<li>Save the file. </li>
<li>Open an administrative command prompt, and execute      <br /><code>iisreset [enter]</code> </li>
</ol>
<blockquote><p>The value we set for maxAllowedContentLength, 2,146,435,072, is the number of bytes in 2047MB…the maximum value we can set in SharePoint. If you wish to set a smaller limit, of course you should. Just make sure that whatever you set, you match in the SharePoint configuration…which is next.</p>
</blockquote>
<h3>SharePoint 2010</h3>
<ol>
<li>Open SharePoint 2010 Central Administration. </li>
<li>Click Manage web applications under Application Management.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image21.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="SharePoint CA Manage web applications" border="0" alt="SharePoint CA Manage web applications" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb20.png" width="397" height="155" /></a> </li>
<li>Select your site, and click general settings.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image22.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="General Settings" border="0" alt="General Settings" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb21.png" width="397" height="240" /></a> </li>
<li>Scroll down to the bottom of the Web Application General Settings, and enter 2047* in the Maximum Upload Size.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image23.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Not 2048, 2047...ponder the reason and go mad." border="0" alt="Not 2048, 2047...ponder the reason and go mad." src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb22.png" width="394" height="132" /></a> </li>
<li>Click OK, and for good measure, do another iisreset. That may not be necessary but I found it to be a good habit that has stuck with me. </li>
</ol>
<blockquote><p>*Again, you can always choose a smaller maximum size…just match what you have here (in MB) to what you put into web.config (in B.)</p>
</blockquote>
<p>After that you should be double rainbows all the way. What are double rainbows you ask? If Joss Whedon is your master, if you are a Browncoat, or a fan of <a href="http://abc.go.com/shows/castle?cid=showsitelinks_search" target="_blank">ABC’s Castle</a>, then you probably want to follow <a href="http://twitter.com/nathanfillion" target="_blank">@nathanfillion</a> on Twitter. He is the only ‘celebrity’ I follow, mostly because he is just as funny in real life as he is on television. Tell him <a href="http://twitter.com/retrohack" target="_blank">@retrohack</a> sent you.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:24185b4f-64b5-4085-accc-8f243019d3a3" class="wlWriterSmartContent">
<div><embed height="355" type="application/x-shockwave-flash" width="425" src="http://www.youtube.com/v/sEpxa6EXrOw&amp;hl=en_US&amp;fs=1?color1=0x3a3a3a&amp;color2=0x999999&amp;hl=en" /> </div>
</p></div>
<p>Direct link for RSS and email subscribers…<a href="http://www.youtube.com/watch?v=sEpxa6EXrOw">http://www.youtube.com/watch?v=sEpxa6EXrOw</a></p>
<p><em>And speaking of teh twitterz…if you found this post useful, please consider <a href="http://twitter.com/retrohack" target="_blank">following us on twitter too</a>. You’ll be the first to learn about new posts, and, rarely we’ll share a comedic or witty tweet. Of course, you can also leave a comment below (anonymous allowed) to let us know we hooked you up.</em></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/how-to-install-sharepoint-2010/' rel='bookmark' title='Permanent Link: howto://install SharePoint 2010'>howto://install SharePoint 2010</a></li>
<li><a href='http://retrohack.com/how-to-install-exchange-2010-on-a-single-box-part-two/' rel='bookmark' title='Permanent Link: howto://install Exchange 2010 on a single box-part two'>howto://install Exchange 2010 on a single box-part two</a></li>
<li><a href='http://retrohack.com/howtopublish-dns-using-tmg-2010-or-isa-2006/' rel='bookmark' title='Permanent Link: howto://publish DNS using TMG 2010 or ISA 2006'>howto://publish DNS using TMG 2010 or ISA 2006</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/l1bLY80Le2Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/sharepoint-2010-upload-large-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://retrohack.com/sharepoint-2010-upload-large-files/</feedburner:origLink></item>
		<item>
		<title>Analysing TMG2010 for fun and profit</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/BcntYFvrMMM/</link>
		<comments>http://retrohack.com/tmg-2010-best-practices-analyzer/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[isa & tmg]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://retrohack.com/tmg2010-best-practices-analyzer/</guid>
		<description><![CDATA[Microsoft releases some pretty cool tools from time to time...the challenge is finding them. This post will go over the Microsoft Forefront Threat Management Gateway 2010 Best Practices Analyzer, or TMGBPA for short.


You might also enjoy:<ol><li><a href='http://retrohack.com/howtoinstalling-microsoft-forefront-tmg-2010-part-one/' rel='bookmark' title='Permanent Link: howto://Installing Microsoft Forefront TMG 2010, part one'>howto://Installing Microsoft Forefront TMG 2010, part one</a></li>
<li><a href='http://retrohack.com/how-to-document-active-directory-infrastructure/' rel='bookmark' title='Permanent Link: howto://document Active Directory-infrastructure'>howto://document Active Directory-infrastructure</a></li>
<li><a href='http://retrohack.com/initial-isa-configuration/' rel='bookmark' title='Permanent Link: Initial ISA Configuration'>Initial ISA Configuration</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><img style="margin: 0px 10px 0px 0px; display: inline" alt="isa-tmg" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/05/isatmg.png" /></p>
<p>It was late in the Spring of 2010. I was working my way across the tubes as the chief technologist on an archaeological dig whose goal was simple; exploration and exploitation of binary resources. We were to venture deep into the heart of the world wide web, seeking fame, fortune, treasure, and the odd little application. Way down in the uncharted wilds of microsoft.com, where few have ever dared to venture, while wearing a 1920&#8242;s era vintage safari jacket in olive green 500 thread count Egyptian cotton I discovered in a British supply depot in Burma (available in S,M,L, and XL for $425,) and a faithful reproduction pith helmet in silk-wrapped Kevlar made specifically for me by a group of Benedictine monks on an island monastery in the Mediterranean sea (unisex, one size fits all for $175,) I discovered what has proven to be one of the most useful applications ever for Microsoft Forefront TMG 2010 admins and consultants.</p>
<p>The Microsoft Forefront Threat Management Gateway 2010 Best Practices Analyzer, or TMGBPA to its friends, is a tool that can perform health checks, diagnostics, and even create Visio diagrams from your TMG 2010 servers. It looks at installation, licensing, alerts, logs, rules, and the overall health of the underlying operating system, and is something no TMG consultant should be without.</p>
<p> <span id="more-2076"></span>
<p>You will want to install the TMGBPA on each of your TMG servers, as well as your workstation with Visio installed (unless of course you don&#8217;t want the diagrams, or you&#8217;re willing to install Visio on your server.)</p>
<blockquote><p>&lt;rant&gt; That you cannot remotely assess a TMG server from a workstation that is part of the Remote Management Computers group seems a little lame&#8230;but then again, this is a free app. Maybe that will be a feature in the pay version.&lt;/rant&gt;</p>
</blockquote>
<h3>The install</h3>
<p>So once you know what machine you want to evaluate first, you&#8217;re ready to proceed.</p>
<ol>
<li>Download the <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=8aa01cb0-da96-46d9-a50a-b245e47e6b8b" target="_blank">Microsoft Forefront Threat Management Gateway Best Practices Analyzer Tool</a> and then launch the install.       </li>
<li>Like most things Microsoft, this one installs with a wizard. Click Next.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb.png" width="424" height="333" /></a>       </li>
<li>Then accept the license and click next.      </li>
<li>I recommend that you have the TMGBPA check for updates each time you launch it. Choose, and then click Next.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb1.png" width="424" height="334" /></a>       </li>
<li>Decide whether or not to reveal all that you do to Microsoft, then click Next, and then click Install.      </li>
<li>When the product finishes, the option to launch it is already selected. Click Finish.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb2.png" width="424" height="331" /></a> </li>
</ol>
<h3>Running a report</h3>
<ol>
<li>When the TMGBPA first launches (assuming you took my advice) it with check for updates.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image3.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb3.png" width="574" height="242" /></a>       <br />If it cannot, check your rules to make sure your TMG server itself can surf the web&#8230;you may have forgotten that part.      </li>
<li>We then get to choose whether we want to perform a new scan, or review an existing one. Since this is probably our first time running this, click Select options&#8230;<a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image4.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb4.png" width="574" height="149" /></a>       </li>
<li>Give the scan a title, select a domain controller (preferably in the same site as the TMG server,) and choose either a health check, or to run all tasks. We&#8217;re going to do all tasks for this post.<a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image5.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb5.png" width="574" height="177" /></a>       </li>
<li>This may take a while&#8230;go get some coffee. <a href="http://retrohack.com/mmmm-coffee/" target="_blank"><em>Mmmm&#8230;coffee</em></a><em>&#160; </em>      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image6.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb6.png" width="574" height="296" /></a>&#160; </li>
<li>Once done, you have a shiny reporting interface you can use to browse the reports. </li>
</ol>
<h3>Reviewing the report</h3>
<p>Here&#8217;s a look at a report run against a server with some issues&#8230;specifically set up to show them to you. The first view is the List Reports, and we can see a list of our critical issues and our warnings.    <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image7.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb7.png" width="644" height="458" /></a> </p>
<p>Yikes! It looks like we have two critical issues, and a handful of alerts. Each can be expanded to show the details of the issue, and a link to the CHM file that provides more information about the problem.</p>
<p>Here is a close up on another server&#8217;s warning item.    <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image8.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Forefront Client Security is installed on Forefront, and that is bad. Wait...whut?" border="0" alt="Forefront Client Security is installed on Forefront, and that is bad. Wait...whut?" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb8.png" width="644" height="186" /></a> </p>
<blockquote><p>&lt;rant&gt; One thing that really ticks me off in this report is the warning that Forefront Client Security is installed on the server&#8230;.whut? That feels like I went to the Ford dealership to buy a new air filter, put it in my Focus, and then later the Ford mechanic told me I shouldn&#8217;t have put a Ford filter into my Ford. Since TMG&#8217;s anti-malware only protects by scanning files downloaded through the TMG, I don&#8217;t know any enterprise that is going to let you run a server without antivirus software. Hmmm, Forefront Client Security on a Forefront server&#8230;seems kinda natural sounding to me. What do the TMG folks know that the FCS folks aren&#8217;t telling? &lt;/rant&gt;</p>
</blockquote>
<p><font color="#666666">If you select the radio button for Tree Reports, you get the following view, and you can expand or contract topics as necessary. Red Xs show where critical items are, yellow !s show where warnings are.</font></p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image9.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb9.png" width="644" height="487" /></a>&#160; <br />The &quot;Other Reports&quot; button just shows the log generated as the report was run. If you hit errors running the reports, presumably you can debut those there. So far, the TMGBPA has run for me without any errors each time I have used it, or a client has used it to provide me with data. And speaking of&#8230;</p>
<p><em></em></p>
<h3>How to export to xml</h3>
<p>The Export report function lets you dump the report to an XML file. Copy that file to another machine (like your workstation with TMGBPA and Visio installed) and you can Select a Best Practices scan to view, browse to the XML file you copied over, and go to town. All you have to do is click Export report, choose where to save it, and if you wish, give it a name.</p>
<h3>Creating Visio diagrams</h3>
<p>To use the BPA2Visio tool, you have to have both Visio and the TMGBPA installed on the computer. This usually means installing the TMGBPA on your workstation, exporting a report from the TMG server as we just showed above, copying the XML file over to your workstation, and then choosing to load an existing report to build the diagram. Here is the rundown in four easy steps.</p>
<ol>
<li>Click Start BPA2Visio Tool.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image10.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb10.png" width="424" height="256" /></a>       </li>
<li>Click Load an existing report and browse to the XML file you exported from the TMG server.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image11.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb11.png" width="424" height="321" /></a>       </li>
<li>Watch Visio launch and then act as if it is possessed.      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image12.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb12.png" width="424" height="314" /></a>       </li>
<li>Profit&#8230;<em>or at least bill by the hour</em> </li>
</ol>
<p>The Visio is created with two tabs, the network diagram (shown above) and another tab summarising the errors and warnings from the BPA analysis. You can manipulate this Visio just like any other to suit your needs, or those of your clients. Save them as documentation, embed the image into a report&#8230;you get the point. Have at it.<em>&#160;</em></p>
<p>Some of you may have no idea what I was doing in the intro to this post&#8230;others who share my particular brand of insanity might have recongised an homage to John O&#8217;Hurley and the best character to ever come out of Seinfeld. Based on the <a href="http://www.jpeterman.com/" target="_blank">actual clothier</a>, J. Peterman is the one Seinfeld character I wish would come back in some format on practically any show. Best J. Peterman quote ever? <em>My mind is as barren as the surface of the moon. </em>It&#8217;s much funnier in his voice.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:231439e4-bc0f-42b0-9b38-b82b41d11991" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/2R9kYeJ-DaI&amp;hl=en_US&amp;fs=1&amp;&amp;hl=en"></param><embed src="http://www.youtube.com/v/2R9kYeJ-DaI&amp;hl=en_US&amp;fs=1&amp;&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.youtube.com/watch?v=2R9kYeJ-DaI">http://www.youtube.com/watch?v=2R9kYeJ-DaI</a></p>
<p>Oh, and John O&#8217;Hurley was totally robbed on Dancing with the Stars! I only started watching that show because of him, and stopped right after that obviously fixed competition.</p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/howtoinstalling-microsoft-forefront-tmg-2010-part-one/' rel='bookmark' title='Permanent Link: howto://Installing Microsoft Forefront TMG 2010, part one'>howto://Installing Microsoft Forefront TMG 2010, part one</a></li>
<li><a href='http://retrohack.com/how-to-document-active-directory-infrastructure/' rel='bookmark' title='Permanent Link: howto://document Active Directory-infrastructure'>howto://document Active Directory-infrastructure</a></li>
<li><a href='http://retrohack.com/initial-isa-configuration/' rel='bookmark' title='Permanent Link: Initial ISA Configuration'>Initial ISA Configuration</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/BcntYFvrMMM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/tmg-2010-best-practices-analyzer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://retrohack.com/tmg-2010-best-practices-analyzer/</feedburner:origLink></item>
		<item>
		<title>Every time you don’t bcc, Domo kills a kitten</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/_qcxmZK6l5A/</link>
		<comments>http://retrohack.com/email-etiquette-101/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[rants]]></category>

		<guid isPermaLink="false">http://retrohack.com/every-time-you-cc-instead-of-bcc-domo-kills-a-kitten/</guid>
		<description><![CDATA[It's called BCC...use it bizzitch.


No related posts.]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/tag/rants/" rel="tag"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px 0px 0px; display: inline; border-top: 0px; border-right: 0px" border="0" alt="rants" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/05/rants.jpg" /></a></p>
<p>Dear friend/relative/former or current cow-orker/complete stranger who has my email addr,</p>
<p>I&#8217;d like to thank you for taking the time to send/forward me the recent email regarding the joke/big scare/email tracking giveaway/financial insight/rant on the political party you oppose/health advise/rumour. I&#8217;d like to thank you, but instead I find myself compelled to beat you with a scsi cable. However, since I oppose Internet violence (I&#8217;ll be forwarding you an email about this movement shortly) let me instead try, once again, to explain to you the error of your ways.</p>
<p> <span id="more-1996"></span>
<p>It&#8217;s not that I object to the content you sent (though, truth be told, it wasn&#8217;t funny/it&#8217;s not real/Walt Disney had no son and Bill Gates couldn&#8217;t care less about my email/that company is already bankrupt, and I have no money to invest anyway/I actually support the other side of the argument/I&#8217;m the wrong gender for that and-or am perfectly content with my dimensions/did you consider checking that on <a href="http://snopes.com" target="_blank">Snopes</a> first?) but did you really have to CC me along with another 2^6 other folks with whom I share <strong>nothing in common other than the misfortune to be in your address book????</strong></p>
<p>Seriously, dude, it&#8217;s called BCC, for<strong>&#160; BLIND CARBON COPY.</strong> Use it, bizzitch. You see, every time you CC me on some piece of what would otherwise be innocuous drivel, along with dozens of folks I have never and will never meet, I see a sharp uptick in the amount of SPAM, crap, and other shit hitting my inbox. It&#8217;s about as direct a correlation as finding the pavement wet after a rainstorm. It&#8217;s not that I don&#8217;t want to receive this crap (I don&#8217;t, but I feel bad telling you this so I keep silent while writing this completely passive-aggressive blog post,) but could you <strong>puh-leeez</strong> use the BCC option from now on. This way, you can continue to clog the tubes with the binary equivalent of the Home Shopping Channel, TMZ, and Spike TV, without spewing your (at risk of becoming ex-) friends&#8217; email addresses all over the planet. Haven&#8217;t you noticed that half the crap you forward to me you have to scroll down for five minutes through all the other addresses already embedded before you get to the actual message.</p>
<p>Dude, that&#8217;s just wrong. Stop it. Stop it now. Because if you don&#8217;t, you need to know something. The lives of hundreds of innocent feline Americans rest in your hands. You see, Domo is responsible for screening my mail now, and man is his pissed. Seems you are on a mission to spread the gospel at every opportunity. So he has promised that starting today, every time you don&#8217;t use bcc, he&#8217;s going to off a kitten. No mercy, no remorse.</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/DomoKillsaKitten.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="My gods man, think of teh kittehs" border="0" alt="My gods man, think of teh kittehs" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/DomoKillsaKitten_thumb.jpg" width="663" height="509" /></a></p>
<h4>My gods man, think of teh kittehs </h4>
<p>&#160;</p>
<p>Do you really want that resting on your conscience? I don&#8217;t think so. So now prehaps you will think twice before hitting send&#8230;bah, who the hell am I kidding? In the time it took to write this post, you&#8217;ve already forwarded three emails about Sarah Palin, one about a vacation giveaway, and two more off-colour jokes. Grrrr&#8230;.</p>
<p>Oh, and speaking of <a href="http://snopes.com" target="_blank">Snopes</a>, check their site before you forward the next email. Stop spreading those rumours around, Stop spreading those lies. I really love how cheesy 80&#8242;s music videos are.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:9c7a3380-109d-420e-88d4-7f8ba6cfaabc" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/u_eB36YTkBk&amp;hl=en_US&amp;fs=1&amp;border=1&amp;hl=en"></param><embed src="http://www.youtube.com/v/u_eB36YTkBk&amp;hl=en_US&amp;fs=1&amp;border=1&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;.<a href="http://www.youtube.com/watch?v=u_eB36YTkBk&amp;feature=related">http://www.youtube.com/watch?v=u_eB36YTkBk&amp;feature=related</a></p>



<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/_qcxmZK6l5A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/email-etiquette-101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://retrohack.com/email-etiquette-101/</feedburner:origLink></item>
		<item>
		<title>howto://troubleshoot networks with tcping</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/gHp3Ja8Go_s/</link>
		<comments>http://retrohack.com/how-to-troubleshoot-networks-with-tcping/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://retrohack.com/how-to-troubleshoot-tcp-network-issues-with-tcping/</guid>
		<description><![CDATA[A great tool for troubleshooting TCP based connectivity is TCPING.EXE, by Eli Fulkerson. This post goes over how TCP works, and how to use this tool to troubleshoot networks.


You might also enjoy:<ol><li><a href='http://retrohack.com/how-to-troubleshoot-networks-with-ping/' rel='bookmark' title='Permanent Link: howto://troubleshoot networks with ping'>howto://troubleshoot networks with ping</a></li>
<li><a href='http://retrohack.com/how-to-macgyver-netstat-into-a-sniffer-part-two/' rel='bookmark' title='Permanent Link: howto://macgyver netstat into a sniffer-part two'>howto://macgyver netstat into a sniffer-part two</a></li>
<li><a href='http://retrohack.com/howto-troubleshoot-microsoft-vpn-connections-part-two/' rel='bookmark' title='Permanent Link: howto://troubleshoot microsoft vpn connections part two-client side issues'>howto://troubleshoot microsoft vpn connections part two-client side issues</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/tag/cli/" rel="tag" target="_blank"><img style="margin: 0px 10px 0px 0px; display: inline" alt="cli" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/05/cli.png" /></a>Welcome to the second in our series on network troubleshooting. In part one we covered <a href="http://retrohack.com/how-to-troubleshoot-networks-with-ping/">how to use ICMP PING to perform basic network troubleshooting</a>. In this part, we&#8217;re going to see how to troubleshoot at layer four with a tool called <a href="http://www.elifulkerson.com/projects/tcping.php" target="_blank">tcping</a>. This program, written by <a href="http://www.elifulkerson.com" target="_blank">Eli Fulkerson</a>, does at layer four with TCP what ping does at layer three with ICMP.</p>
<p>If you would like to use it, <a href="http://www.elifulkerson.com/projects/tcping.php" target="_blank">download tcping from here</a>. You can save the exe to your system32 directory, or your homedir if you have one, which will make it available to you no matter what system you are logged onto. It is a self-contained binary so you don&#8217;t need anything else, and it will work on 2000/2003/2008/XP/7 equally well. Read on to see how to use this little gem.</p>
</p>
<p> <span id="more-2093"></span>
</p>
<h3>Level 100-A review of TCP</h3>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/tcp3wayhandshake.jpg"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="" border="0" alt="" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/tcp3wayhandshake_thumb.jpg" width="273" height="185" /></a>To really understand how tcping can help you troubleshoot, you need to know something of how TCP works. The Transmission Control Protocol is a session layer protocol that provides reliable service. It establishes and maintains sessions, ensures delivery of data using acknowledgements, and can retransmit data if necessary. Almost all of the data transported on IP networks uses TCP. Before data can start moving, TCP needs to establish a session, using something called a three way handshake between client and server. The handshake creates the session between client port and server port, establishes the parameters for sequence numbers, and sets the amount of data that can be transferred before an acknowledgment is required. It looks likes the diagram to the left, but this video might help make the concept a little more clear.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:74a876d4-85c0-4c1b-a2cf-7d65d97f2f69" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/z40w3G8szK0&amp;hl=en_US&amp;fs=1?color1=0x3a3a3a&amp;color2=0x999999&amp;hl=en"></param><embed src="http://www.youtube.com/v/z40w3G8szK0&amp;hl=en_US&amp;fs=1?color1=0x3a3a3a&amp;color2=0x999999&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.youtube.com/watch?v=z40w3G8szK0">http://www.youtube.com/watch?v=z40w3G8szK0</a></p>
<p>At the end of a session, the client and server both close out with a FIN-ACK/ACK exchange. This is not shown above, but the FIN-ACK lets both client and server release any resources allocated to the session (like buffer space in memory) and allows them to reuse ports for other conversations. Eventually, timers would expire out these resources, but the FIN-ACK is the polite way to gracefully end the session.</p>
<h3>Level 200-TCPING basics </h3>
<p>Many of you have probably used telnet to connect the the ip.addr and port for a service to see if you can make the connection. While this does do much the same thing as tcping does, it takes longer, leaves you needing to either wait for a timeout or CTRL-BREAK the connection, and does not gracefully end the session on the server side. It also cannot test ports continuously like tcping can. If you have already downloaded the binary and placed it in your path, open a cmd-prompt and enter</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image15.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb15.png" width="644" height="375" /></a></p>
<p>So this tells us that the syntax for tcping is full of optional switches, and that by default, we target port 80. So the command</p>
<p><code>tcping 192.168.100.2 [enter]</code></p>
<p>will probe 192.168.100.2 on tcp port 80. That looks like this</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image16.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb16.png" width="538" height="204" /></a></p>
<p>The replies tell us that the server at 192.168.100.2 is up, a service is listening on port 80, and it responds to us on average in 17.472ms. Look at this snip of a <a href="http://www.wireshark.org/">Wireshark</a> trace.</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image13.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb13.png" width="644" height="62" /></a></p>
<p>See what happens? We complete our three-way handshake, and then we politely tell the server that we&#8217;re done by sending a FIN-ACK. Since we didn&#8217;t request any actual data over the session, the server responds with a RST-ACK instead of its own FIN-ACK, but that actually saves us both another ACK. This is much better than telnetting to the port because it checks repeatedly, gives us response time, and gracefully ends the connection each time.</p>
<p>So what does it look like if we try to connect to a port that is <strong>not</strong> listening? Here we will specify port 81, which is not normally used by any Windows service.</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image17.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb17.png" width="622" height="191" /></a></p>
<p>We get a connection refused response. On the wire, the server is receiving our SYN packet, and replying that, while it is up and running and received our request, it is not running any service on TCP port 81 and would kindly appreciate it if we would sod off. In networking, that is called a RST-ACK. Here&#8217;s what it looks like in a Wireshark snip.</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image14.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb14.png" width="644" height="31" /></a></p>
<p>To see if RDP is running on a server, do this&#8230;    <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/clip_image002.gif"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/clip_image002_thumb.gif" width="644" height="250" /></a>&#160; <br />You can try any other server/port combination you want, and you can use the name or the ip.addr.</p>
<p>If you try to connect to a service on a system that is down, or firewalled and configured to drop(not block,) it looks like this. <a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/clip_image005.gif"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image005" border="0" alt="clip_image005" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/clip_image005_thumb.gif" width="644" height="217" /></a></p>
<p>Tcping waits 20 seconds before giving up on each SYN sent.</p>
<h3>Level 300-Advanced TCPINGing</h3>
<p>But wait, there&#8217;s more. Let&#8217;s look at a couple of the other switches supported with tcping. Much like the <a href="http://retrohack.com/how-to-troubleshoot-networks-with-ping/" target="_blank">ping command</a>, tcping tries four connections by default, but we can specify another number of attempts or run a continuous tcping with the same switches. Currently though, we can&#8217;t get total statistics from either a ctrl-c or a ctrl-break.</p>
<p><strong>tcping –n 30</strong> will connect 30 times. This will give you summary stats.</p>
<p><strong>tcping –t</strong> will connect continuously until interrupted by ctrl-c. No summary stats.</p>
<p>By default, tcping starts its next connection the greater of one second later, or as soon as it receives a response, with a maximum of 20 seconds between attempts. We can specify another timing with the –<strong>i</strong> switch.</p>
<p><strong>tcping –i 60</strong> will try one connection every sixty seconds.</p>
<p>We can also write the current date/time to each line using –<strong>d.</strong> This is useful if we are outputting to a file and want to see when each connection attempt was made. Try this.</p>
<p><code>tcping –i 60 –d –n 5 192.168.100.2 &gt; results.txt [enter]</code></p>
<p>and then open the results.txt file to see what it contains.</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image18.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image_thumb18.png" width="644" height="313" /></a></p>
<p>Instant logfile&#8230;<em>niiice!</em>&#160;</p>
<blockquote><p>Did you know that <a href="http://retrohack.com/tag/splunk/" rel="tag" target="_blank">splunk&gt;</a> can tail a log file like this? &lt;♫&gt;<em>The more you know &lt;</em>/♫&gt;</p>
</blockquote>
<h3>Level 400-Audible TCPINGing</h3>
<p>Have you ever had to bounce a box, and run a continuous ping against it to see when it came back up? Tcping has an audible feature that you can use to annoy the hell out of your neighbors, but also to let you know what is going on without you having to keep a cmd window visible. The –<strong>b </strong>switch enables audible beeps, with four options.</p>
<ul>
<li>1 will beep twice when a service does not respond </li>
<li>2 will beep once when a service does respond </li>
<li>3 will beep when the service changes from one state to the other. One beep if it goes from down to up, two beeps if it goes from up to down. </li>
<li>4 will beep every time it sends a SYN&#8230;one beep for up, two for down. </li>
</ul>
<p>Say you are bouncing a server, or even just a service (iisreset, net stop &amp;&amp; net start, /etc/init.d/<em>servicename</em> restart, etc.) and you just want to know when the service finally starts to respond again.</p>
<p><code>tcping –b 2 –t a.b.c.d port#[enter]</code></p>
<p>will try to connect, and as soon as it starts to get a response you will hear it start to beep. You might as well use those speakers for something besides mp3s and YouTube vids.</p>
<p>And speaking of YouTube vids, here is one I love to show to my non-technical friends and family when they ask me about the tubes. While completely over the top in parts, and taking poetic license in others, it still helps a luddite visualise what is going on, and the voiceover is pretty funny in parts too. Enjoy.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:603dc42d-4247-4f46-b6d8-0d9abf7545cf" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/Ve7_4ot-Dzs&amp;hl=en_US&amp;fs=1?color1=0x3a3a3a&amp;color2=0x999999&amp;hl=en"></param><embed src="http://www.youtube.com/v/Ve7_4ot-Dzs&amp;hl=en_US&amp;fs=1?color1=0x3a3a3a&amp;color2=0x999999&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.youtube.com/watch?v=Ve7_4ot-Dzs">http://www.youtube.com/watch?v=Ve7_4ot-Dzs</a></p>
<p><em>If you found this post useful, please consider </em><a href="http://twitter.com/retrohack"><em>following us on twitter</em></a><em>. You’ll be the first to learn about new posts, and, rarely, we’ll share a comedic or witty tweet. Of course, you can also leave a comment below (anonymous allowed) to let us know we hooked you up.</em></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/how-to-troubleshoot-networks-with-ping/' rel='bookmark' title='Permanent Link: howto://troubleshoot networks with ping'>howto://troubleshoot networks with ping</a></li>
<li><a href='http://retrohack.com/how-to-macgyver-netstat-into-a-sniffer-part-two/' rel='bookmark' title='Permanent Link: howto://macgyver netstat into a sniffer-part two'>howto://macgyver netstat into a sniffer-part two</a></li>
<li><a href='http://retrohack.com/howto-troubleshoot-microsoft-vpn-connections-part-two/' rel='bookmark' title='Permanent Link: howto://troubleshoot microsoft vpn connections part two-client side issues'>howto://troubleshoot microsoft vpn connections part two-client side issues</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/gHp3Ja8Go_s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/how-to-troubleshoot-networks-with-tcping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://retrohack.com/how-to-troubleshoot-networks-with-tcping/</feedburner:origLink></item>
		<item>
		<title>How to Prevent Directory Harvest Attacks</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/FuQT_m4np_I/</link>
		<comments>http://retrohack.com/how-to-prevent-directory-harvest-attacks/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Guest Post</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[guest post]]></category>

		<guid isPermaLink="false">http://retrohack.com/how-to-prevent-directory-harvest-attacks/</guid>
		<description><![CDATA[You&#8217;re diligent about protecting your online identity. You may use disposable email addresses,limit forum posting or mask your email address with special characters or spaces when you do. Yet, somehow, despite your considerable efforts, spam finds its way into your inbox. This common scenario is plaguing both casual and enterprise users. Latest estimates claim spam [...]


You might also enjoy:<ol><li><a href='http://retrohack.com/how-to-find-the-best-web-filtering-solution-for-your-business/' rel='bookmark' title='Permanent Link: How to Find the Best Web Filtering Solution for Your Business'>How to Find the Best Web Filtering Solution for Your Business</a></li>
<li><a href='http://retrohack.com/how-to-document-active-directory-group-memberships/' rel='bookmark' title='Permanent Link: howto://document Active Directory-group memberships'>howto://document Active Directory-group memberships</a></li>
<li><a href='http://retrohack.com/fixing-530-home-directory-not-accessible/' rel='bookmark' title='Permanent Link: Fixing 530 Home directory not accessible'>Fixing 530 Home directory not accessible</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/category/architecture/" rel="tag" target="_blank"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px 0px 0px; display: inline; border-top: 0px; border-right: 0px" border="0" alt="architecture" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/05/architecture1.jpg" /></a></p>
<p>You&#8217;re diligent about protecting your online identity. You may use disposable email addresses,limit forum posting or mask your email address with special characters or spaces when you do. Yet, somehow, despite your considerable efforts, spam finds its way into your inbox.</p>
<p>This common scenario is plaguing both casual and enterprise users. Latest estimates claim   <br />spam represents over 90% of all email. Like millions of others, you&#8217;re probably wondering how this happens. Sometimes, a well meaning friend or co-worker is the culprit. Ever received one of those email chain letters?</p>
<p> <span id="more-2021"></span>
<p>Typically they contain your address, and a host of others, and by the third round of forwards,   <br />chances are it will land in the hands of a spammer. But a more sophisticated method may also be used. In a Directory Harvest Attack (DHA), or dictionary attack, spammers employ the use of an automated program, called a botnet. This script targets known domains (think gmail.com or yahoo.com) and using common names, attempts to guess email addresses. The botnet sends an email to the address and in a simple process of elimination, those that come back undeliverable are discarded, while those that don&#8217;t become new additions to their spam databases. While an annoyance to end users, this tactic can also hobble corporate email servers overwhelmed by the sheer number of requests.</p>
<p>As we consider potential solutions, there are a few initial steps that come to mind. As a first   <br />line of defense, do take care with online postings. Next, avoid using common names in your    <br />address. Opt for tougher to guess combinations – something including numbers and letters. In    <br />the end though, these remedies may prove ineffective for larger organizations.</p>
<p>In that case, a software solution is the answer. With the rise in these types of attacks, security   <br />software vendors have responded with tools that can help foil DHA attempts. These services    <br />can monitor statistics like frequency of misaddressed e-mails sent from a given IP address; if    <br />the number crosses a predefined threshold, messages or senders are rejected. In the end, a mix of end-user education, policy, and software will likely be required to keep your company email addresses shielded from spam databases. </p>
<p><em>This guest post was provided by Veronica Henry on behalf of GFI Software, a leading     <br />software developer that produces network and messaging security solutions for SMBs.      <br />More information about GFI anti-spam solution can be found at </em><a href="http://www.gfi.com/mes"><em>http://www.gfi.com/mes</em></a>    <br /><em>All product and company names herein may be trademarks of their respective owners.</em></p>
<p><em><a href="http://retrohack.com">RetroHack</a> is happy to consider guest posts. If you’re interested in submitting a post to this blog, please <a href="http://retrohack.com/contact/">contact us</a> rather than leaving a comment to this particular post. No compensation was offered, requested, expected, or received for posting this article…it’s just good content, however I do create guest posts hosted on other blogs on behalf of GFI Software for pay.</em></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/how-to-find-the-best-web-filtering-solution-for-your-business/' rel='bookmark' title='Permanent Link: How to Find the Best Web Filtering Solution for Your Business'>How to Find the Best Web Filtering Solution for Your Business</a></li>
<li><a href='http://retrohack.com/how-to-document-active-directory-group-memberships/' rel='bookmark' title='Permanent Link: howto://document Active Directory-group memberships'>howto://document Active Directory-group memberships</a></li>
<li><a href='http://retrohack.com/fixing-530-home-directory-not-accessible/' rel='bookmark' title='Permanent Link: Fixing 530 Home directory not accessible'>Fixing 530 Home directory not accessible</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/FuQT_m4np_I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/how-to-prevent-directory-harvest-attacks/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://retrohack.com/how-to-prevent-directory-harvest-attacks/</feedburner:origLink></item>
		<item>
		<title>I’m talkin’ imminent rueage</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/O1k3h1KrXM4/</link>
		<comments>http://retrohack.com/im-talkin-imminent-rueage/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 00:49:54 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://retrohack.com/im-talkin-imminent-rueage/</guid>
		<description><![CDATA[Yes, we just had our first experience with a tornado. While unconfirmed, our neighbor saw a funnel, and our poor little 50&#8242; shady tree out front got handed its arse. No one was hurt, and the tree only took out another tree, so except for some fence damage in the back yard, we got off [...]


You might also enjoy:<ol><li><a href='http://retrohack.com/merry-christmas-everyone/' rel='bookmark' title='Permanent Link: Merry Christmas Everyone!'>Merry Christmas Everyone!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p>Yes, we just had our first experience with a tornado. While unconfirmed, our neighbor saw a funnel, and our poor little 50&#8242; shady tree out front got handed its arse. No one was hurt, and the tree only took out another tree, so except for some fence damage in the back yard, we got off relatively unscathed. Several other trees are down in the area, and those brand new 96gallon trash cans apparently made impressive flying projectiles, but at least for us, we&#8217;re all good.</p>
<p>Two doors up&#8230;not so lucky. A postal carrier had just stepped out of his truck to deliver a package, when <strong>blammo</strong>. He is going to be okay, but we had some fun getting the tree off of him and making sure he was okay before we moved him. It was raining so hard I couldn&#8217;t make out the faces of the college kids (in the video below) who got to him first. The guy in Browns shirt was johnny on the spot with his first aid (an actual Eagle Scout no less) and was really awesome. I managed to stay off camera for most of it, but all four networks were &#8216;on the scene&#8217; for <em>hours</em> and you can catch a glimmer of me if you watch carefully.</p>
<p>Five hours of chainsaw action later, we have a huge pile of tree in front of our house, and so does our neighbor. Everyone in the four house section kicked in, and what could have been a miserable two day project was done before dusk. It&#8217;s great to have such wonderful neighbors.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:d378ba0c-08d2-4457-a599-c52f082795d2" class="wlWriterEditableSmartContent">
<div><object height="288" width="470"><param name="movie" type="application/x-shockwave-flash" value="http://www.wcnc.com/v/?i=98270694" /><param name="allowScriptAccess" value="always" /><param name="wmode" value="transparent" /><param name="AllowFullScreen" value="true" /><embed type="application/x-shockwave-flash" src="http://www.wcnc.com/v/?i=98270694" AllowFullScreen="true" allowScriptAccess="always" height="288" wmode="transparent" width="470"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.wcnc.com/news/Mailman-struck-by-tree-98270694.html">http://www.wcnc.com/news/Mailman-struck-by-tree-98270694.html</a></p>
<p>So now I am going to take four more motrin, and spin up <a href="http://www.imdb.com/title/tt0117998/" target="_blank">Twister</a>. It just seems appropriate. Good night.</p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/merry-christmas-everyone/' rel='bookmark' title='Permanent Link: Merry Christmas Everyone!'>Merry Christmas Everyone!</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/O1k3h1KrXM4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/im-talkin-imminent-rueage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://retrohack.com/im-talkin-imminent-rueage/</feedburner:origLink></item>
		<item>
		<title>Dearly beloved, we are gathered here today</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/uK1aEMCcc-I/</link>
		<comments>http://retrohack.com/dearly-beloved-we-are-gathered-here-today/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://retrohack.com/dearly-beloved-we-are-gathered-here-today%e2%99%ab/</guid>
		<description><![CDATA[The end of an era...Windows 2000 extended support is over with the release of July's security patches, tomorrow 2010-07-13. Part homage, part rant, part really bad idea, this post is my way of saying good bye to an operating system I lurved right up until 2003 was released. I've loathed 2000 ever since. Buh-bye!


You might also enjoy:<ol><li><a href='http://retrohack.com/splunk-4-1-2-addresses-several-security-issues/' rel='bookmark' title='Permanent Link: splunk&gt; 4.1.2 addresses several security issues'>splunk&gt; 4.1.2 addresses several security issues</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/tag/windows/"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="windows" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/05/windows.jpg" /></a></p>
<p><em>&lt;♫&gt;cue the pipe organ&#8230;to the music of Let&#8217;s Go Crazy-Prince and the Revolution<em>&lt;/♫&gt;</em></em>     <br />to bid farewell to this thing called Win2K.     <br />Awesome operating system     <br />We thought would last forever and that&#8217;s a mighty long time     <br />But I&#8217;m here to tell you     <br />There&#8217;s something else     <br />Windows 2008.</p>
<p> <span id="more-1991"></span>
<p>An o/s of never ending happiness    <br />You can always see the gui, local or remote.</p>
<p>So when you go to check on updates from MSFT    <br />You know the one, Dr Patch everything thing up right     <br />Instead of asking him how much of your time is left     <br />Ask him how much of your CALs, baby</p>
<p>Cause in this Windows    <br />Things are much harder than in 2008     <br />In this Windows     <br />You&#8217;re on your own</p>
<p>And if the CIO tries to bring you down    <br />Go crazy – UPGRADE!!!</p>
<p>If you don&#8217;t like the o/s you&#8217;re living in    <br />Take a look around you     <br />At least you got options</p>
<p>You see I called my own VAR    <br />For a friendly word     <br />She picked up the phone     <br />Dropped it on the floor     <br />(HA, HA) is all I heard</p>
<p>Are we gonna let legacy servers bring us down    <br />Oh, no Let&#8217;s Go</p>
<p>Let&#8217;s go upgrade    <br />Let&#8217;s get patched     <br />Let&#8217;s drop the old systems     <br />With no support, let&#8217;s go!</p>
<p>We&#8217;re all excited    <br />And I bet I know why     <br />Maybe it&#8217;s cause     <br />Support ends today     <br />And when we do (When we do)     <br />Upgrade to 2K8 (What&#8217;s it all for)     <br />You can sleep better now     <br />No mad users will come knocking on your door</p>
<p>Are we gonna let legacy servers bring us down    <br />Oh, no Let&#8217;s Go</p>
<p>Let&#8217;s go upgrade    <br />Let&#8217;s get patched     <br />Let&#8217;s drop the old systems     <br />With no support, let&#8217;s go!</p>
<p>Okay folks, I will not subject you to any more of this, and Prince, I sincerely apologise for what was a funny idea in my mind when I started down this path. Just in case you somehow missed it, tomorrow, July 13, 2010, is officially the end of support for Windows 2000. If you are one of the millions, AND MILLIONS, of folks out there still running this platform, tomorrow marks the last patches you will ever receive. And just for those who wonder what a big deal that might be, please note that several vulnerabilities have been discovered <strong>this year</strong> that impact 2000. More certainly will be discovered, but you won&#8217;t have patches for them. Does it make sense to stay on a legacy platform and be</p>
<ol>
<li>at risk, or even worse </li>
<li>disable functionality to mitigate vulnerabilities? </li>
</ol>
<p>Since that functionality is probably the reason you are still stuck on 2000, I don&#8217;t think so. Budgets are tight to be sure, but with the creative licensing (and even software license leasing) that is going on, you really have to stretch pretty far to convince me of a valid reason to stay on Windows 2000. It&#8217;s time to say goodbye. If you just simply can&#8217;t, start thinking about ways to segment those old systems off on their own, so that when they do get pwned, the damage can be contained. Considering the abuse I just delivered to one of the best songs from my youth, it is only right that I close this post with this video. If you can&#8217; upgrade, at least you can jam your arse off. Close the door, crank the volume up to eleven, and enjoy.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:63791acb-d785-4f5f-a23a-14510a7e137f" class="wlWriterEditableSmartContent">
<div><object width="480" height="272"><param name="movie" value="http://www.dailymotion.com/swf/video/xdjavz"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed type="application/x-shockwave-flash" src="http://www.dailymotion.com/swf/video/xdjavz" width="480" height="272" allowfullscreen="true" allowscriptaccess="always"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.dailymotion.com/video/xdjavz_prince-let-s-go-crazy_music">http://www.dailymotion.com/video/xdjavz_prince-let-s-go-crazy_music</a></p>
<p>And in a great example of inter-tubes cooperation, seemingly bizarre coincidences, and my own obsession with great web comics, the music of Prince, and Doctor Who, let me share with you the <a href="http://hijinksensue.com/" target="_blank">Hijinks Ensue</a> comic that came out on the same day as this post. Comic courtesy of Joel Watson.</p>
<p><a href="http://hijinksensue.com/2010/07/09/how-i-learned-to-stop-worrying-and-love-the-internet/" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Hijinks Ensue, one of my favourite web comics!" border="0" alt="Hijinks Ensue, one of my favourite web comics!" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/20100709howilearnedtostopworryingandlovetheinternet.jpg" width="644" height="364" /></a> </p>
<p><em>How about you? Are you still trying to support legacy operating systems? Why???</em></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/splunk-4-1-2-addresses-several-security-issues/' rel='bookmark' title='Permanent Link: splunk&gt; 4.1.2 addresses several security issues'>splunk&gt; 4.1.2 addresses several security issues</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/uK1aEMCcc-I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/dearly-beloved-we-are-gathered-here-today/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://retrohack.com/dearly-beloved-we-are-gathered-here-today/</feedburner:origLink></item>
		<item>
		<title>howto://troubleshoot networks with ping</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/J7PzQTYZQ8Q/</link>
		<comments>http://retrohack.com/how-to-troubleshoot-networks-with-ping/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://retrohack.com/how-to-troubleshoot-networks-with-ping/</guid>
		<description><![CDATA[Call this network troubleshooting 101, where we'll go over how to use the venerable PING command to do some basic network troubleshooting. This is probably something most of you will point n00bs to...it's intended to help bring those n00bs up a notch in their troubleshooting skillz, which ultimately will help you too.


You might also enjoy:<ol><li><a href='http://retrohack.com/how-to-troubleshoot-networks-with-tcping/' rel='bookmark' title='Permanent Link: howto://troubleshoot networks with tcping'>howto://troubleshoot networks with tcping</a></li>
<li><a href='http://retrohack.com/how-to-macgyver-netstat-into-a-sniffer-part-one/' rel='bookmark' title='Permanent Link: howto://macgyver netstat into a sniffer-part one'>howto://macgyver netstat into a sniffer-part one</a></li>
<li><a href='http://retrohack.com/howto-troubleshoot-microsoft-vpn-connections-part-three/' rel='bookmark' title='Permanent Link: howto://troubleshoot microsoft vpn connections part three-tales from the trenches'>howto://troubleshoot microsoft vpn connections part three-tales from the trenches</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/tag/howto/" rel="tag" target="_blank"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="another RetroHack howto" border="0" alt="another RetroHack howto" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/03/chalkboard.png" width="63" height="75" /></a></p>
<p>Welcome to the first in a series of posts on basic network troubleshooting. These posts are designed to help someone with some basic networking knowledge expand their repertoire of troubleshooting skills and tricks. This series will cover the following Windows commands.    <br /><strong>ping</strong>, <strong>tracert</strong>, <strong>pathping</strong>, <strong>arp</strong>, <strong>nbtstat</strong>, and <strong>telnet</strong>. We&#8217;ll also cover third party command lines tools including <a href="http://www.elifulkerson.com/projects/tcping.php" target="_blank">tcping</a>, <a href="http://tracetcp.sourceforge.net/" target="_blank">tracetcp</a>, and the name resolution tools in dig, host, and whois.&#160; This first post is all about <strong>ping</strong>. The rest will be released as I get to them, but I hope to have them all done by the end of the summer. Stay tuned for more.</p>
<p>The first five are in all current versions of Windows. Telnet used to be, but in the interests of <em>sekuritah</em>, Microsoft decided to make you opt-in to using it by making it an optional feature in Vista and later, which is an example of <em>Right ideal, wrong execution.</em> You might get pushback trying to make a third party tool part of a default build, but trust me on this, make sure the Telnet Client feature is added to EVERYTHING. With the exception of <strong>pathping</strong>, you should also be able to use these same commands, with almost the same syntax, on Linux, Unix, and Mac systems, too. With these tools, we&#8217;re set to diagnose many of the networking problems that might pop up, with just a little bit of cmd-line voodoo. If you&#8217;d like to learn how to use <strong>ping</strong>, you know what to do next. So without any further ado, I give you&#8230;</p>
<h3></h3>
<p> <span id="more-2035"></span><br />
<h3>Level 100-The origin of PING</h3>
<p>Ping is a command, a particular type of Internet Control Messaging Protocol (ICMP) message, a funny sound made by sonar, and a maker of fine golf putters. We&#8217;re only really interested in the first two though, starting with the ICMP message. If you remember your <a href="http://en.wikipedia.org/wiki/OSI_model" target="_blank">OSI </a><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/TCPIP_OSI.jpg"><img style="border-right-width: 0px; margin: 0px 25px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="TCPIP_OSI" border="0" alt="TCPIP_OSI" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/TCPIP_OSI_thumb.jpg" width="258" height="352" /></a>model</a> &lt;warning, majorly boring stuff approaching&gt; and how the TCP/IP stack maps to it, then you&#8217;ll remember that ICMP operates at the network layer&#8230;right along side IP. ICMP can be used to deliver messages about the state of the network, or whether a host or a network is unreachable. UDP uses ICMP <em>Port Unreachable</em> messages in the same way TCP uses <em>RST ACK</em> when a host receives traffic to a port on which no service is listening. Firewalls can use ICMP <em>Administratively Prohibited</em> messages when configured to block, as opposed to drop, to respond that traffic is not permitted. </p>
<p>There are <a href="http://retrohack.com/icmp-response-code/" target="_blank">a number of other ICMP messages available</a>, but we are interested in using just two, <em>echo request</em> and <em>echo reply.</em> When we ping from HostA to HostB, the idea is that HostA wants to check on the network path between himself and HostB. HostA sends some discrete data to HostB. HostB sends that data back exactly as received, echoing back the data received. HostA compares the received data with what was sent, and can determine the following;</p>
<ul>
<li>that HostB is alive and well </li>
<li>that data sent from HostA to HostB can get there, and back, </li>
<li>the average time it will take </li>
<li>any packet loss </li>
<li>and data corruption </li>
</ul>
<p><a href="http://ftp.arl.mil/~mike/ping.html" target="_blank">Mike Muuss</a> wrote the original program to take advantage of this functionality back in 1983, and named it <em>ping</em> after the sound sonar makes when trying to detect ships. Since that time, essentially every operating system that uses TCP/IP has a ping command, though each major operating system tends to insert its own data pattern into the <em>echo requests, </em>along with different default starting TTL values.</p>
<h3>Level 200-PING basics </h3>
<p>So what can we do with ping? At it&#8217;s simplest, ping just tells us if a host is alive. Try this.</p>
<ol>
<li>Open a cmd prompt      </li>
<li>Do an ipconfig to get your default gateway      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image44.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb44.png" width="644" height="375" /></a>       </li>
<li>Ping your default gateway      <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image45.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb45.png" width="644" height="374" /></a>       <br />&#160; </li>
<li>Consider the results.      <br />By default, Windows sends four ICMP echo requests with 32 bytes of data. What it got back with an average of 1ms was four good responses. The TTL that we see is set by the responding host&#8230;we can infer (since our gateway is on our same network) is that it is a Windows host. It is&#8230;our TMG. Had it been a Cisco or *nix host, the TTL would have been 64, like this.       <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image46.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb46.png" width="644" height="234" /></a> </li>
</ol>
<p>As a general rule, current Windows hosts start pings and replies with a TTL of 128; modern Linux and Unix hosts use 64, and older systems use 255. If you have a rough ideal of how many hops away a host is, you can infer the operating system by looking at the TTL in the reply.</p>
<p>Since we are on the same subnet, there was no router to decrement the TTL of the replies. Four packets doesn&#8217;t really give us a great deal of data loss testing, but we see 0% loss since we sent four, and we got four back. Bottom line&#8230;.our target is alive and well and we can reach it.</p>
<blockquote><p>So why does the first ping take longer to respond in each case than the subsequent ones? ARP. In both cases my host did not have the MAC address of the target in cache, so it had to ARP for the address. The target would likely also have to do an ARP before replying. Ping starts its clock when the packet hits the stack at layer three&#8230;layer two just needs to catch up.</p>
</blockquote>
<h4>Request timed out versus destination unreachable</h4>
<p>Sometimes a host won&#8217;t answer, either because it is down, or firewalled. The response you see in your ping command depends on what operating system you have, and whether or not you are on the same subnet as your target, and sometimes even what kind of network devices are between you and your target.</p>
<p>Before a host can ping another, it has to either ARP the target (on the same subnet) or ARP the router (different subnet.) If no response to that ARP request is received, older Windows systems would say request timed out&#8230;the same as if you were pinging a host that was down, or where ICMP was blocked. Windows 7 and 2008 are smart enough to tell you &quot;Destination host unreachable.&quot; Check the source ip.addr of the &quot;Destination host unreachable&quot; message. If it is yours, then either you cannot ARP the host, or your gateway. If it is a remote router/firewall, then it could be telling you the host is down, or that ICMP is not permitted by the target. If you are on a Windows 7 host, and trying to ping another host on the same subnet, and you get a request timed out instead of a destination unreachable, it means your target is dropping ICMP. It <strong>has</strong> to respond to the ARP request, but then it is dropping your echo requests. <strong><em>Bad host, no!</em></strong> (see below for more on that.)</p>
<p>Like any good command line tool, ping also supports several switches. They are all optional (a couple are even like the appendix&#8230;still around but no longer useful) but with the right combination, you can learn a lot more about a host or the network between.</p>
<p>Ping without switches really only tells us two things about a host&#8230;it is alive and we can reach it. As mentioned above, we can infer from the TTL what type of operating system it is running, but that is about it. Here is where switches come in. </p>
<h4>the –n switch, for the number of pings</h4>
<p>Windows hosts will send four pings by default. If you wish to set a specific number, use the –<strong>n</strong> switch. To ping a host ten times you would do this.</p>
<p><code>ping –n 10 a.b.c.d [enter] </code></p>
<h4>the –t switch, for continuous ping</h4>
<p>Switch back to your cmd prompt, and enter this command, substituting your default gateway ip.addr.</p>
<p><code>ping -t a.b.c.d [enter] </code></p>
<p>The <strong>-t</strong> switch initiates a continuous ping, which allows us to check for packet lost, as well as to see any general trends in response times either going up or down. It is also dead useful for monitoring a server that you rebooted to see when it starts to come back up. You can also put it after the target.</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image47.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb47.png" width="644" height="466" /></a> </p>
<p>The ping will just run continuously until you stop it by hitting ctrl-c, or ctrl-break. Both of those will give you summaries of all pings sent and received, but ctrl-c stops the pings completely, while ctrl-break gives you the summary up to that point, and keeps on going. In this screen shot, the first table is from a ctrl-break, and you can see four more pings before I hit control-c.</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image48.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb48.png" width="644" height="469" /></a> </p>
<p>Notice what the ping statistics tell you. The number sent, the number received, the number lost (0% is good&#8230;the longer you ping the more likely you will drop one or more, but if the percent remains 0 you are doing just fine) the minimum, maximum, and average response times. On a 100Mbit LAN and the same subnet, you definitely should see very low times and 0% loss. The one spike to 140ms when I entered the ctrl-break was more likely a processing problem on my pc than a network issue. Most pings are sent at the rate of one per second, so if you let this run for twelve hours, you should have statistics for around 43,200 pings.</p>
<h4>ping –a for name resolution</h4>
<p>Sometimes you have an ip.addr and you want to resolve it to a name. While you should do a host or an nslookup to get that information, if you want to combine pinging an ip.addr to see if it is up with a lookup to find its name, use the –a switch, like this.</p>
<p><code>ping -a 65.55.21.250 [enter] </code></p>
</p>
<p>From that you should see that 65.55.21.250 belongs to microsoft.com, and you can infer that either they fell down and went boom, or that they are blocking ICMP <em>echo requests </em>at their border, and therefore do not comply with <a href="http://tools.ietf.org/rfc/rfc1122.txt" target="_blank">RFC 1122</a>. Considering the <a href="http://en.wikipedia.org/wiki/Ping_of_death" target="_blank">ping of death</a> was an attack against Windows hosts, I&#8217;m guessing they will never be compliant.</p>
<h3>Level 300-Advanced PINGing</h3>
<p>There are a couple of switches that you will use for special troubleshooting.</p>
<h4>ping –l to set the size for larger packets</h4>
<p>The –l switch is used to specify the data payload size for your ping. Windows boxes default to using a very small 32 bytes of data. Use –l # to test larger payloads.</p>
<h4>ping –f to set the don&#8217;t fragment flag</h4>
<p>By default, routers can take packets that are larger than the maximum transmission unit for the media, and break them into smaller fragments before forwarding them. The –f flag tells the router that it should reject any packets larger than the MTU by setting the &quot;Don&#8217;t Fragment (DF)&quot; flag, instead of fragmenting them. If a router rejects a packet because it is too larger and the DF bit is set, it will respond to the sending host that &quot;fragmentation is required but the DF bit is set.</p>
<h4>combine –l and –f to test for mtu issues </h4>
<p></p>
<p>Frame, cable and DSL all support the same MTU as Ethernet (1472 once you get past layer three header.) Wi-Fi can handle an even larger MTU, but since that usually connects to an Ethernet network and acts as a bridge, you won&#8217;t want to go above 1472. To test your MTU, try this. Open a cmd prompt and enter this command.</p>
<p><code>ping -f -l 1000 www.yahoo.com [enter]</code> </p>
<p>That says to ping yahoo.com (they always allow ICMP <em>echo request</em>) with a packet of 1000 bytes of payload, and set the DF bit. You can increase that number right on up to 1472&#8230;.if you have cable or DSL, you will get responses until you use 1473&#8230;.then you will get an error. When your MTU is actually smaller than the value you set with –l, and you also set –f which tells routers not to fragment, you will get an error stating that fragmentation is required but the DF bit is set.</p>
<p>This becomes useful when troubleshooting throughput (smaller MTU means more packets for the same amount of data, and therefore less throughput) and Windows authentication errors. Some VPN technologies have a lot of overhead in the layer three header <em>&lt;cough&gt;Cisco&lt;/cough&gt; </em>which can break Kerberos authentication. If you have an MTU much below 1200, you will want to use the &quot;set mtu&quot; applet in the Cisco client to set a lower value, and <a href="http://support.microsoft.com/kb/244474" target="_blank">force Kerberos to use TCP</a> on your XP clients. Of course, modern Windows clients default to TCP for Kerberos on their own.</p>
<h4>ping –w timeout for <em>slooooow</em> (high latency) links</h4>
<p>If you want to tell ping to wait a specific number of milliseconds before giving up on a ping, use the –<strong>w</strong> switch. By default, Windows&#8217; ping will wait 4000 ms for a response.</p>
<h4>ping –i TTL to change your TTL</h4>
<p>If you want to alter the TTL of your packets to see what routers are not responding to ping, but perhaps will tell you when &quot;TTL Expired In Transit&quot; you can specify a smaller TTL with the –<strong>i</strong> switch. Remember though that Windows will always start with a TTL far larger than needed to get to the destination, and tracert will do a better job of using ICMP and incrementing TTLs to find the path. In other words, you will probably never use this switch.</p>
<h3>Level 400-Arcane PING</h3>
<p>There are some other switches available, though you will likely never use them. Some that are still around no longer actually work. They used to be useful for learning some of the hops our packets travel on the WAN, or testing TOS, but alas, no more. Traceroute will tell us the outgoing path, and to learn the return you can trace from the other side.</p>
<h4>ping –r count</h4>
<p>This would record the route for up to nine hops, putting the routers into the header. We use tracert to see that information now.</p>
<h4>ping –s count</h4>
<p>This would record the timestamp for up to nine hops. Again, we use tracert for this now.</p>
<h4>ping –k host-list</h4>
<p>The <strong>–k </strong>switch lets you specify using a strict source route along a host-list, assuming you have multiple paths of equal cost.</p>
<h4>ping –S srcaddr</h4>
<p>On a multihomed host, if you want to specify the source ip.addr, use –<strong>S.</strong></p>
<h4>ping –4</h4>
<p>If your host runs IPv4 and IPv6, and the target name can be resolve to an A and a AAAA record, use the <strong>–4</strong> switch to specify you want to use IPv4.</p>
<h4>ping –6</h4>
<p>If your host runs IPv4 and IPv6, and the target name can be resolve to an A and a AAAA record, use the <strong>–6</strong> switch to specify you want to use IPv6.</p>
<h4>ping –R</h4>
<p>For IPv6 only, use the <strong>–R</strong> switch to specify using the routing header to test reverse route.</p>
<h4></h4>
<h3>Sometimes it&#8217;s not that easy&#8230;</h3>
<p>Our biggest challenge with using PING is that a lot of organisations are making the choice to block/drop ICMP to reduce their exposure. Ping sweeps, oversized or invalid pings, DDoS attacks using ping floods are all risks, and despite the fact that <a href="http://tools.ietf.org/rfc/rfc1122.txt" target="_blank">RFC 1122</a> states that hosts are required to accept and respond to ICMP echo requests, many don&#8217;t. Sometimes your side will allow ping, and your target will allow ping, but something in between doesn&#8217;t. As a result, don&#8217;t assume that an unanswered ping means a host is down unless you know for certain that you have pinged it before and gotten a reply. Ping new hosts with a degree of skepticism until you are sure of the intervening networks. My recommendations are to follow the RFCs, but if you feel you must restrict ICMP traffic, then permit it as follows;</p>
<li>allow ICMP ECHO requests to your web server, </li>
<li>allow ICMP ECHO requests to your VPN concentrator,</li>
<li>allow ICMP ECHO requests to your Internet router,</li>
<li>allow ICMP ECHO requests throughout your internal network to all hosts,</li>
<li>allow the corresponding ICMP ECHO REPLIES to all of the above.
<p>You can read more about that in my earlier post, <a href="http://retrohack.com/and-then-theres-complete-paranoia/" target="_blank">&#8230;and then there&#8217;s complete paranoia.</a> You can also see <a href="http://www.networksorcery.com/enp/rfc/rfc792.txt" target="_blank">RFC792</a> and <a href="http://www.networksorcery.com/enp/rfc/rfc1812.txt" target="_blank">RFC1812</a> for more on hosts and why blocking pings is bad.</p>
<p>You might also be interested in our two-part on MacGyvering Netstat as a protocol analyser. Here&#8217;s <a href="http://retrohack.com/how-to-macgyver-netstat-into-a-sniffer-part-one/" target="_blank">part one</a> and <a href="http://retrohack.com/how-to-macgyver-netstat-into-a-sniffer-part-two/" target="_blank">part two</a> of that series. Okay, enough brain exertion for one post. Let&#8217;s reset our gray matter by trying to figure out how they did this without the Wachowski <strike>Brothers</strike> /// er, siblings, incredible use of bullet-time cameras.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:12e0b1aa-59f0-472e-a9ad-103b460e9006" class="wlWriterSmartContent"><embed height="355" type="application/x-shockwave-flash" width="425" src="http://www.youtube.com/v/-dcmDscwEcI&amp;hl=en_US&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00" wmode="transparent" /></div>
<p>direct link for RSS and email subscribers&#8230;<a href="http://www.youtube.com/watch?v=-dcmDscwEcI">http://www.youtube.com/watch?v=-dcmDscwEcI</a>     <br /> 
<p><em>What tricks do you have for troubleshooting with ping?</em></p>
</p>
</p>
</p>
</p>
</p>
</li>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/how-to-troubleshoot-networks-with-tcping/' rel='bookmark' title='Permanent Link: howto://troubleshoot networks with tcping'>howto://troubleshoot networks with tcping</a></li>
<li><a href='http://retrohack.com/how-to-macgyver-netstat-into-a-sniffer-part-one/' rel='bookmark' title='Permanent Link: howto://macgyver netstat into a sniffer-part one'>howto://macgyver netstat into a sniffer-part one</a></li>
<li><a href='http://retrohack.com/howto-troubleshoot-microsoft-vpn-connections-part-three/' rel='bookmark' title='Permanent Link: howto://troubleshoot microsoft vpn connections part three-tales from the trenches'>howto://troubleshoot microsoft vpn connections part three-tales from the trenches</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/J7PzQTYZQ8Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/how-to-troubleshoot-networks-with-ping/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://retrohack.com/how-to-troubleshoot-networks-with-ping/</feedburner:origLink></item>
		<item>
		<title>I won’t be quitting my day job anytime soon…</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/2uxJr8RL1sc/</link>
		<comments>http://retrohack.com/i-wont-be-quitting-my-day-job-anytime-soon/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[guest post]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://retrohack.com/i-wont-be-quitting-my-day-job-anytime-soon/</guid>
		<description><![CDATA[however, I am now, officially, a paid and published blogger. My first blog post for something other than my own blog was just published on LoveMyTool.com. I lurve the graphic they chose for the post, and am really quite grateful that they requested the bio. Then they went a step further, linking it to my [...]


You might also enjoy:<ol><li><a href='http://retrohack.com/use-all-your-well-learned-politesse/' rel='bookmark' title='Permanent Link: Use all your well-learned politesse'>Use all your well-learned politesse</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p>however, I am now, officially, a paid <strong>and published</strong> blogger. My first blog post for something other than my own blog was just published on <a href="http://www.lovemytool.com" target="_blank">LoveMyTool.com</a>. I lurve the graphic they chose for the post, and am really quite grateful that they requested the bio. Then they went a step further, linking it to <a href="http://www.linkedin.com/in/edfisher" target="_blank">my profile on LinkedIn</a>. That&#8217;s class for you. If you&#8217;d like to read it, click the pretty picture below.</p>
<p><a href="http://www.lovemytool.com/blog/2010/06/a-patch-management-strategy-for-your-network-by-ed-fisher-.html"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="My first paid post!" border="0" alt="My first paid post!" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/image20.png" width="644" height="548" /></a></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/use-all-your-well-learned-politesse/' rel='bookmark' title='Permanent Link: Use all your well-learned politesse'>Use all your well-learned politesse</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/2uxJr8RL1sc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/i-wont-be-quitting-my-day-job-anytime-soon/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://retrohack.com/i-wont-be-quitting-my-day-job-anytime-soon/</feedburner:origLink></item>
		<item>
		<title>Use all your well-learned politesse</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/_HzR1DjYKwQ/</link>
		<comments>http://retrohack.com/use-all-your-well-learned-politesse/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[rants]]></category>

		<guid isPermaLink="false">http://retrohack.com/use-all-your-well-learned-politesse/</guid>
		<description><![CDATA[While most IT recruiters are great people who sincerely try to take care of their clients and their candidates, there are a few out there who exhibit some behaviours that are just dead wrong. This rant is intended to call them out on this, and release some of the built-up rage I'm harbouring. It's also a veiled thank you to five who go above and beyond...if all were half as good as these five, IT would put recruiting on a pedestal.


You might also enjoy:<ol><li><a href='http://retrohack.com/employerszoom-com-doesnt-quite-pass-the-smell-test/' rel='bookmark' title='Permanent Link: employerszoom.com doesn&#8217;t quite pass the smell test'>employerszoom.com doesn&#8217;t quite pass the smell test</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/tag/rants/" target="_blank"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="rants" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/05/rants.jpg" /></a>Or I&#8217;ll lay your soul to waste. Okay, so perhaps I was starting this post out with a chip on my shoulder, but I had good cause. Instead, I think I will make a small mental adjustment, &lt;applies blunt object to back of own skull&#8230;<em>there, that&#8217;s better&gt; </em>and instead, I will point out some things that a few folks are doing <strong>well</strong> instead of what others are doing wrong. I&#8217;m leaving this tagged as a rant, because there&#8217;s some things still bubbling below the surface. Read on if you are so inclined, else, skip this post and we&#8217;ll get back to tech next time, I promise. </p>
<p>I started to title this post &quot;What the hell is wrong with recruiters these days?&quot; but I realised that was not fair, and would needlessly offend the vast majority, so if you are reading this far, I&#8217;ve gotten your attention sufficiently to make it clear that I believe my beef to be with only a very few individuals. It is unfortunate that the actions of these few colour the impressions of so many others. I can only imagine (though I also expect) that recruiters have similar issues with candidates, and if any recruiter out there reads this, I beg you to leave a comment with your side of the story. I&#8217;ve not done your job, so I can&#8217;t speak to it fairly. <em>Disclaimer: I am not actively looking for a new position, though in this economy only a fool would not be open to learning about an opportunity if it existed. Many of my family and friends are, however, and this post was as much inspired by what is happening to them now as what has happened to me in the past.</em></p>
<p>&#160;</p>
<p> <span id="more-1989"></span>
<p>If you caught the quote, you may be asking if I am comparing recruiters to the Devil. Hardly. I&#8217;m sure that most are wonderful and hardworking people who care about their clients and the candidates they represent. It&#8217;s the small minority that I am ranting about in this post, and a sad statement on affairs that folks have stories to share only when things go wrong. Let me take a moment to try to balance the scales.</p>
<p>I have dealt with some great recruiters in the past, including <a href="http://www.linkedin.com/profile?viewProfile=&amp;key=33871450&amp;authToken=c12B&amp;authType=name&amp;goback=%2Econ" target="_blank">Joe Silvestrini</a> at Signature Consultants, <a href="http://www.linkedin.com/profile?viewProfile=&amp;key=16080922&amp;authToken=Qq3U&amp;authType=name&amp;goback=%2Econ" target="_blank">Janelle Martin</a> when she was at Synigent, <a href="http://www.linkedin.com/profile?viewProfile=&amp;key=17095489&amp;authToken=W8QJ&amp;authType=name&amp;goback=%2Econ" target="_blank">Cyrus Panthaki</a> at Collabera, <a href="http://www.linkedin.com/profile?viewProfile=&amp;key=17138250&amp;authToken=Md18&amp;authType=name&amp;goback=%2Econ" target="_blank">Trey Scott</a> when he was at Comsys, and <a href="http://www.linkedin.com/profile?viewProfile=&amp;key=6396108&amp;authToken=Hylr&amp;authType=name&amp;goback=%2Econ" target="_blank">Kevin Nangle</a> at Ettain Group. Before you jump to conclusions, only two of those five actually were involved in something that resulted in my getting a job. But all five exhibited some traits that others seem to be painfully and blatantly missing. Why do I call out the five fine folks above for doing a great job? Here&#8217;s the rundown.</p>
<ul>
<li><strong>They keep their word        <br /></strong>All five of the above stand out in my mind because they <em>never</em> failed to follow through with something they said. Whether it was getting me information, updating me on the status of an opportunity, arranging an interview, or simply checking in with me to see how things are going, they never said they would do something and then didn&#8217;t. They always got back to me in the time frame they promised&#8230;even if it was only to inform me about a delay completely beyond their control. </li>
<li><strong>They don&#8217;t bullshit </strong>      <br />Simple, straight-forward communication: they never built something up to be what it wasn&#8217;t; they never tried to sugar coat something. </li>
<li><strong>They read and understand the job request and the candidate&#8217;s resume        <br /></strong>The five above never pitched me an opportunity that wasn&#8217;t a good fit. They know what I can do, and what I cannot, and if they were not certain because it was something <em>really </em>obscure, they opened with &quot;I&#8217;m not sure if this is for you, but I wanted to run it by you because it sounds like it might be.&quot; </li>
<li><strong>They understood my salary requirements. </strong>      <br />I love Mercedes Benz, but I am on a Ford budget. I&#8217;m not going to go test drive a Mercedes, and then offer the dealer $30K for it. The folks above always respected my salary requirements, and only proffered opportunities that could afford me. </li>
</ul>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/flipacoin.jpg"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="flipacoin" border="0" alt="flipacoin" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/flipacoin_thumb.jpg" width="86" height="127" /></a> So on the flip side, (yes, the rant is coming out of the box, I just could not keep it in) for other recruiters, what&#8217;s puzzling me is the nature of their game. Let&#8217;s talk about some things that just really seem to be on the rise, and that piss me right off. I&#8217;ll tell you what&#8230;if you are a recruiter reading this (thank you for bearing with me this far, and I know that recruiters hit my blog&#8230;I can find a referral or source ip.addr from a recruiter&#8217;s office that correlates to an email or phone call more than half the time these days) I&#8217;ll make you a deal. If you see any of the following that feel awkwardly familiar, don&#8217;t call me, and in return, I promise not to cause your computer to bluescreen ever again, <strong>and</strong> I&#8217;ll cancel any logic bomb I attached to your credit report. The following seem to be common amongst my peeps&#8230;it&#8217;s not just me this happens to, I&#8217;m just the guy with the blog. Since I experienced ALL of these, multiple times last year, I am writing this using the first person perspective.</p>
<ul>
<li><strong>Dropping off the planet        <br /></strong>You call, you&#8217;ve got the perfect position, the hiring manager needs to fill it as soon as possible, you need me to send you my resume just as soon as I possibly can&#8230;and then I never hear from you again. You don&#8217;t respond to my emails, you don&#8217;t return my calls, you just disappear. If that is how you intend to play things&#8230;frak you. The job req got closed? They found another candidate? They think my resume sucks? Fine, a simple one line email is sufficient&#8230;ignoring my emails and dodging my calls by having the receptionist tell me you are on another call and will get back to me as soon as you can (which implies at the very least, by tomorrow sometime) and then not, is the social equivalent of my &#8216;frak you&#8217; above. By saying it straight out, I&#8217;m just a little more respectful of your time. Have the courtesy to tell me that straight. </li>
<li><strong>Pitching me the perfect position, without it being a real position.        <br /></strong>Okay, so perhaps the hiring manager/client is at fault for this, and not you, but then again, it&#8217;s simple enough to ask the client if the request is funded already or not. If its a spec position, or a pipedream, or something they really want but don&#8217;t have approved yet, set the proper expectations with me up front. </li>
<li><strong>Asking me about a job three hours away, and then wondering why I am not interested.        <br /></strong>Dude, seriously? North Carolina is a big-ass state. There may be a metric assload of jobs in the RTP area, but I am in Charlotte. If you&#8217;re not from North Carolina, the East Coast, or even the United States, I should probably excuse your lack of geographic awareness, but if you are calling from the 919 area code, you should know better. Is the job market really so bad that folks are taking jobs hours away, getting a cheap dump to sleep in, and only coming home on weekends? And they are willing to do this for $40 an hour? I call bullshit.</li>
<li><strong>Promising to send me information, and then not.        <br /></strong>I mean, really, what the hell is up with that? Half the time, all you are really needing to do is forward me an email. Is that really so hard to do?</li>
<li><strong>Requiring my social security number before making me a job offer.       <br /></strong>How about no, with a side of nein, nichts, nichevo, nacho, and nyet. Should we get to the point where there i an offer to tender, and I want to accept, then of course I will provide it. But requiring it just for the privilege of applying for a position (Government jobs not included) is wrong.       <br />Need it to do a background check? Then make me an offer contingent on the background check. Want it just to have the hiring manager do the first telephone call&#8230;go piss up a rope. </li>
<li><strong>Stringing me along.</strong>      <br />We&#8217;ve gone through the phone calls, the in person interviews, and everything went swimmingly well. The client loved me, I&#8217;m perfect for the job. We just need to close the deal. Four weeks later you are still telling me that everything looks good, but the hiring manager took vacation, or her boss is out of the country and has to sign off, or the HR rep is still working on the position, or something like that. The best I ever heard was that the hiring manager is just too busy to start a new person right now. Okay, is that really the bullshit it sounds like, or is he so stupid that he doesn&#8217;t realise hiring the new guy would help with being so damn busy? Me, I think it&#8217;s the bullshit, but I don&#8217;t want to work for someone if they are really that stupid. </li>
<li><strong>Hitting me with something that is not even remotely close to what I do or where I do it.        <br /></strong>Thought I am not actively looking, I get pinged by phone or email four days out of five, for jobs that are either NO WHERE near me (I checked&#8230;my profiles on the job boards do have the right zip code for me, and the commuting range is &lt;25 miles, and no, relocation to anywhere is not set as an option.) Yes, I do have some rather boutique skills that some recruiters need badly enough to call a candidate just in case they would be interested, but <strong>where in the blue hell does it say on my resume that I code Java, or COBOL, or know RACF???!!! Oracle? Nowhere on my resume.</strong> I don&#8217;t expect a technical recruiter to understand that Cisco ACS is the bastard lovechild of TACACS+. I don&#8217;t expect them to know that AD LDS and ADAM are essentially the same thing. I do expect them to know that a Windows guy doesn&#8217;t work on mainframes, and a network engineer doesn&#8217;t normally write C# code. Java, COBOL, and RACF are all sufficiently distinct technologies that they merit specific mention on someone&#8217;s resume if they actually have experience with them. Key word searches, yours are broken. </li>
<li><strong>Insisting on a face to face meeting, and then bailing.        <br /></strong>This happened to Connie just the other day. Before she could be presented to the client, she had to come meet with the recruiter&#8230;something about how they have to meet all candidates in person before presenting them to the client. Okay, the recruiter&#8217;s office is 35 minutes away. She gets dressed up, drives all the way over there, arrives early, is left sitting in the lobby for 25 minutes PAST the appointment time, only to have the recruiter&#8217;s secretary finally come out, shake hands, present the recruiter&#8217;s card, make small talk for a couple of minutes, then wish her well. Whut? He couldn&#8217;t even be bothered to say hi, let alone keep the appointment? Dude, piss off. That was just about as lame as anything I have ever encountered. Oh, yeah, same jackass has since fallen off the planet. </li>
</ul>
<p>Oh I could go on, but I just looked down and saw the word count already over 1900, so let me end with this. In a way, I do have sympathy for the devil, since for the greatest part of what I know, recruiters are kind of like commissioned salespeople. If they can&#8217;t fill the gig, they don&#8217;t get their piece of the pie. I just don&#8217;t understand why some of them can&#8217;t have some courtesy, some sympathy, some taste.   </p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:07859b68-ab3e-4143-b2e9-6afb8b921948" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/iLddJ1WceHQ&amp;hl=en_US&amp;fs=1&amp;border=1&amp;hl=en"></param><embed src="http://www.youtube.com/v/iLddJ1WceHQ&amp;hl=en_US&amp;fs=1&amp;border=1&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.youtube.com/watch?v=iLddJ1WceHQ">http://www.youtube.com/watch?v=iLddJ1WceHQ</a></p>
<p><em>If you have a recruiter gripe, please sound off below. If you are a recruiter with a candidate gripe, please do likewise. If you think I am full of it&#8230;.let me know.</em></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/employerszoom-com-doesnt-quite-pass-the-smell-test/' rel='bookmark' title='Permanent Link: employerszoom.com doesn&#8217;t quite pass the smell test'>employerszoom.com doesn&#8217;t quite pass the smell test</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/_HzR1DjYKwQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/use-all-your-well-learned-politesse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://retrohack.com/use-all-your-well-learned-politesse/</feedburner:origLink></item>
		<item>
		<title>Happy Independence Day</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/hK-BOdlESKw/</link>
		<comments>http://retrohack.com/happy-independence-day/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://retrohack.com/happy-independence-day/</guid>
		<description><![CDATA[RetroHack would like to wish everyone a very happy Fourth of July holiday, which in the United States is Independence Day and for the rest of the galactic quadrant is the birthday of the Crab Nebula. I&#8217;ve always gotten a chuckle that here in the US we celebrate the date we declared our Independence from [...]


You might also enjoy:<ol><li><a href='http://retrohack.com/happy-birthday-connie/' rel='bookmark' title='Permanent Link: HAPPY BIRTHDAY CONNIE!!!'>HAPPY BIRTHDAY CONNIE!!!</a></li>
<li><a href='http://retrohack.com/memorial-day/' rel='bookmark' title='Permanent Link: Memorial Day'>Memorial Day</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/americanflag1.jpg"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px 0px 0px; display: inline; border-top: 0px; border-right: 0px" title="americanflag" border="0" alt="americanflag" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/07/americanflag_thumb1.jpg" width="72" height="81" /></a>RetroHack would like to wish everyone a very happy Fourth of July holiday, which in the United States is <a href="http://en.wikipedia.org/wiki/Independence_Day_(United_States)" target="_blank">Independence Day</a> and for the rest of the galactic quadrant is the birthday of the <a href="http://en.wikipedia.org/wiki/Crab_Nebula">Crab Nebula</a>. I&#8217;ve always gotten a chuckle that here in the US we celebrate the date we declared our Independence from what today is our most stalwart and loyal ally, but hey, it works, I love to cook out, and it is one of the family&#8217;s <a href="http://www.imdb.com/title/tt0116629/" target="_blank">favourite movies</a>. Happy Birthday America!</p>
<p>In honour of the day our forefathers declared those things that would become the foundation of our country, our way of life, and the example we try to set for the rest of the world, I invite you to actually read the <a href="http://www.ushistory.org/declaration/document/index.htm" target="_blank">Declaration of Independence</a>. Then read Thomas Jefferson&#8217;s <a href="http://www.ushistory.org/declaration/account/index.htm" target="_blank">autobiographical account</a> of the events leading up to the Declaration. If that&#8217;s too much for a day devoted to cook-outs, fun with friends and family, and fireworks, try these quotations instead. While they are not specifically about Independence Day, I think they capture the spirit of the occasion.</p>
<blockquote><p>Those who expect to reap the blessings of freedom, must, like men, undergo the fatigue of supporting it.&#160; <br />~Thomas Paine</p>
<p>It is easy to take liberty for granted, when you have never had it taken from you.&#160; <br />~Author unknown, sometimes attributed to M. Grundler</p>
<p>We on this continent should never forget that men first crossed the Atlantic not to find soil for their ploughs but to secure liberty for their souls.&#160; <br />~Robert J. McCracken</p>
<p>Those who deny freedom to others deserve it not for themselves.&#160; <br />~Abraham Lincoln</p>
<p>Freedom is never free.&#160; <br />~Author Unknown</p>
<p>There is nothing wrong with America that cannot be cured by what is right with America.&#160; <br />~William J. Clinton</p>
<p>My God! How little do my countrymen know what precious blessings they are in possession of, and which no other people on earth enjoy!      <br />~Thomas Jefferson</p>
</blockquote>
<p>I hope you all have a very enjoyable and safe holiday! Kiss your family, hug your friends, party safely, and thank a veteran. &lt;♫&gt;<em>When Smokey sings, I hear violins&#8230;</em>&lt;/♫&gt;</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:e50ef5b3-76e0-458a-99d9-5975030e14d0" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/qZUoV_iw0II&amp;hl=en_US&amp;fs=1&amp;border=1&amp;hl=en"></param><embed src="http://www.youtube.com/v/qZUoV_iw0II&amp;hl=en_US&amp;fs=1&amp;border=1&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.youtube.com/watch?v=qZUoV_iw0II">http://www.youtube.com/watch?v=qZUoV_iw0II</a></p>
<p><em>We&#8217;ll be cooking out, taking it easy, and watching Independence Day as a family, and then maybe catching some fireworks. If you are in the United States, what will you be doing to celebrate?</em></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/happy-birthday-connie/' rel='bookmark' title='Permanent Link: HAPPY BIRTHDAY CONNIE!!!'>HAPPY BIRTHDAY CONNIE!!!</a></li>
<li><a href='http://retrohack.com/memorial-day/' rel='bookmark' title='Permanent Link: Memorial Day'>Memorial Day</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/hK-BOdlESKw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/happy-independence-day/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://retrohack.com/happy-independence-day/</feedburner:origLink></item>
		<item>
		<title>howto://configure pptp vpn support on tmg 2010</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/i-51lS01g3U/</link>
		<comments>http://retrohack.com/how-to-configure-pptp-vpn-support-on-tmg-2010/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[firewalls & vpn]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[isa & tmg]]></category>

		<guid isPermaLink="false">http://retrohack.com/howtoconfigure-pptp-vpn-support-on-tmg-2010/</guid>
		<description><![CDATA[In this post, we&#8217;re going to go through setting up our TMG 2010 server to support client PPTP VPN. We&#8217;ll go over why PPTP is a good choice for many businesses, the basic network setup involved, and then finally, how to actually configure our TMG server to support PPTP clients. Much of what we will [...]


You might also enjoy:<ol><li><a href='http://retrohack.com/howtoinstalling-microsoft-forefront-tmg-2010-part-two/' rel='bookmark' title='Permanent Link: howto://Installing Microsoft Forefront TMG 2010, part two'>howto://Installing Microsoft Forefront TMG 2010, part two</a></li>
<li><a href='http://retrohack.com/howtopublish-a-web-farm-using-tmg-2010-part-one/' rel='bookmark' title='Permanent Link: howto://publish a web farm using TMG 2010-part one'>howto://publish a web farm using TMG 2010-part one</a></li>
<li><a href='http://retrohack.com/howtopublish-dns-using-tmg-2010-or-isa-2006/' rel='bookmark' title='Permanent Link: howto://publish DNS using TMG 2010 or ISA 2006'>howto://publish DNS using TMG 2010 or ISA 2006</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><img style="border-right-width: 0px; margin: 5px 10px 5px 5px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="isa-tmg" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/05/isatmg.png" />
<p>In this post, we&#8217;re going to go through setting up our TMG 2010 server to support client PPTP VPN. We&#8217;ll go over why PPTP is a good choice for many businesses, the basic network setup involved, and then finally, how to actually configure our TMG server to support PPTP clients.</p>
<p>Much of what we will cover here is the same for other VPN protocols. You can either use this post and skip ahead to configuring the other protocols, or stay tuned&#8230;we&#8217;ll be covering L2TP/IPSEC,&#160; SSTP, and IKEv2 in upcoming posts. If this sounds like the post for you, please read on.</p>
<p> <span id="more-1980"></span><br />
<h3>Finding the right balance between security and usability</h3>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/scales.png"><img style="border-right-width: 0px; margin: 5px 10px 5px 5px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="it&#39;s about finding the right balance for you" border="0" alt="it&#39;s about finding the right balance for you" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/scales_thumb.png" width="100" height="100" /></a> </p>
<p>I am sure that some of you are reading this and thinking I am off my nut for recommending PPTP over SSTP, L2TP/IPSec, or IKEv2. I may be off my nut, but not about this. Here is why. PPTP is the one VPN protocol that is the common denominator or universal dialect amongst all our diverse platforms. Whether you have <em>any</em> version of Windows, Mac OSX, Linux, iPod Touch, iPhone, or Droid, you have PPTP support, and you have it built-in (or in the case of some Linux distros, a simple package add away.) TMG offers other protocols, but they are Windows-focused. PPTP support means you can supply a secure connection to any device you have. Using MPPE with 128bit encryption and authenticating against AD using MS-CHAP2, and with a strong password policy and account lockout, should cover your bases in all but the most stringent requirements. Yes, you do NOT get mutual authentication with PPTP (unless you implement some EAP methods that will reduce the ubiquity of this solution,) but this post is more about supporting diverse clients securely, and less about just how thick the tinfoil hat is. If your situation requires 3DES or AES, and mutual authentication, skip this post and come back in a few&#8230;.I should have something on that soon. If your situation includes trying to support the VP of Marketing&#8217;s Mac, and your Linux box, and your boss&#8217;s iPhone&#8230;.well this post is for you. Been there, done that, wrote the post.</p>
<h3>Prerequisites</h3>
<p>In this post, our TMG 2010 server is directly connected to the Internet on its external NIC (live ip.addr, no other firewall in front of it) and we have an another NIC directly connected to the internal network. We&#8217;re using the DHCP service provided by another server on the internal network which is assigning VPN clients ip.addrs directly on the internal segment. In other words, a fairly vanilla setup. Also, we&#8217;re <strong>not</strong> split-tunneling. All traffic comes home once the VPN client is connected, and anything destined for the Internet will route back out. Why, you ask? There are times when I have to use an open wireless network. I&#8217;d much rather tunnel ALL of my traffic over the VPN, than only protect what I am sending home. See <a href="http://www.giac.org/certified_professionals/practicals/GSEC/04267.php" target="_blank">this post</a> if you&#8217;d like to know more about the dangers of open wireless hotspots. I think you&#8217;ll agree that it is worth the extra bandwidth to provide more protection to our users.</p>
<h3>Setting it up</h3>
<p>The TMG Management Console divides this up into six sections, which makes for a pretty straightforward setup until you find that many of the steps take you to different tabs on the same dialog. We&#8217;re going to hit them the first time they pop up instead of running this strictly by the numbers. Browse down to Remote Access Policy (VPN), click it and then click on Configure Address Assignment Method to begin.</p>
<h4>Step One-Configure Address Assignment Method</h4>
<p>Click on the Configure Address Assignment Method, which brings up a new dialog that we begin on the second tab, which is kind of strange, but we can work with it. Here, since we are using a DHCP server on the internal network, we select the radio button for DHCP, and choose the Internal network from the drop down list for name resolution services.&#160;&#160; <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image36.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb36.png" width="414" height="458" /></a>&#160;</p>
<blockquote><p>If you want to set a static range, click that a radio button, select your server from the dropdown, enter your starting and ending address, and then click OK. Then clicked the Advanced button at the bottom of this tab to enter DNS and WINS server information.</p>
</blockquote>
<h4>Step Two-Access Networks</h4>
<p>Click the Access Networks tab and make sure that both External and Internal networks are checked. That allows our connected VPN clients to route to our internal network and still hit the Internet.   <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image37.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb37.png" width="409" height="452" /></a> </p>
<h4>Step Three-Authentication</h4>
<p>Now click on the Authentication tab. To get PPTP up and running with the most secure password encryption, we&#8217;re going to only check MS-CHAPv2.   <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image38.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb38.png" width="408" height="453" /></a>     <br />Since we are not going to use RADIUS in this post, click OK.</p>
<h4>Step Four-Specify Windows Users</h4>
<p>Click on Specify Windows Users and once again, land on the second tab of the dialog box. Here, you can add the AD group(s) that you want to permit to connect to your VPN. If that is everybody, select Domain Users.   <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image39.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb39.png" width="411" height="456" /></a>&#160;</p>
<p>Then click on the General tab, make sure the check box is set to Enable VPN client access, and enter the maximum number of concurrent connections you want to allow. </p>
<p>Then click the Protocols tab. Since today we are only doing PPTP, that is all you need to check.   <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image40.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb40.png" width="410" height="455" /></a> </p>
<p>User Mapping is for RADIUS and EAP, and we&#8217;re not using either this time. Quarantine is something to play with <strong>AFTER you get connections working</strong> so for now, resist the urge to click anything else except OK. Since a lot of what quarantine can do is limited to domain computers, we&#8217;re going to leave that for another post on another day.</p>
<h4>Step Five-Configure your firewall policy</h4>
<p>Click on View Firewall Policy for the VPN Clients Network to go back to your Firewall Policy. You can restrict access to the Internet for VPN clients, and if you put them on a different network segment than the internal, you can even limit their connections to the internal network. Since I am setting this up for trusted clients that already have full access to the internal network, and open access to the Internet, I just need to make sure that they TMG defined network &quot;VPN Clients&quot; is in the AllowAllOutbound rule that I created <a href="http://retrohack.com/let-me-out-configuring-outbound-access-rules-in-tmg-2010/" target="_blank">back here</a>.    <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image41.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb41.png" width="644" height="114" /></a>     <br />Make any desired changes to this for your level of comfort, and then click back on Remote Access Policy (VPN) to continue.</p>
<h4>Step Six-View Network Rules</h4>
<p>If you are connecting your VPN clients directly to the Internal network, they will be sharing the internal interface of your TMG. If you want to create a virtual subnet for VPN clients, you can either decide to route that traffic bi-directionally through your TMG, or you can NAT the VPN clients to the inside network. Here is where you define that. Since we are connecting VPN clients directly, we choose the Route option, which should be selected by default.   <br /><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image42.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb42.png" width="644" height="341" /></a> </p>
<h4>Step Seven-Test it out</h4>
<p>Get a client on another network, and setup your connection from your client to your TMG using PPTP. If there is another edge device between your TMG and the Internet, you want to make sure that inbound TCP 1723 and bidirectional IP type 47 (GRE) are both open. If all goes well, you will be prompted for your username and password. This happens over TCP 1723 and is encrypted using MS-CHAPv2. Enter your creds and (assuming you have valid credentials for a user who is a member of a permitted group) if GRE is also open, you should be connected. Yay! If you&#8217;re not, here&#8217;s some troubleshooting tips.</p>
<p>You can use the live logging in TMG to focus on VPN client connections. Browse down to Logs &amp; Reports, edit your filter to look at VPN Client sessions. I like to do this live while the client connects, but you can also look at historical records if you wish. <a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image43.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb43.png" width="644" height="426" /></a> </p>
<p>Always look first for authentication errors. I can&#8217;t tell you how many hours I have wasted assuming the user had good information, only to find out they didn&#8217;t. Also look for protocol errors, and make sure the client is setup for MS-CHAPv2 to match your requirements.</p>
<p>If you&#8217;re having other problems, here&#8217;s the links to our VPN troubleshooting series (<a href="http://retrohack.com/howto-troubleshoot-microsoft-vpn-connections-part-one/" target="_blank">part one</a>, <a href="http://retrohack.com/howto-troubleshoot-microsoft-vpn-connections-part-two/" target="_blank">part two</a>, and <a href="http://retrohack.com/howto-troubleshoot-microsoft-vpn-connections-part-three/" target="_blank">part three</a>.) You can check them out, or leave a comment below if you&#8217;d like some more help. Until next time, while you are tunneling data securely, enjoy the best song Springsteen&#8217;s ever done. </p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:f412b1a9-b5f0-4091-be3c-a0f4a7218b00" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/Nw2OnNoy5JQ&amp;hl=en_US&amp;fs=1&amp;border=1&amp;hl=en"></param><embed src="http://www.youtube.com/v/Nw2OnNoy5JQ&amp;hl=en_US&amp;fs=1&amp;border=1&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.youtube.com/watch?v=Nw2OnNoy5JQ&amp;feature=fvst">http://www.youtube.com/watch?v=Nw2OnNoy5JQ&amp;feature=fvst</a></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/howtoinstalling-microsoft-forefront-tmg-2010-part-two/' rel='bookmark' title='Permanent Link: howto://Installing Microsoft Forefront TMG 2010, part two'>howto://Installing Microsoft Forefront TMG 2010, part two</a></li>
<li><a href='http://retrohack.com/howtopublish-a-web-farm-using-tmg-2010-part-one/' rel='bookmark' title='Permanent Link: howto://publish a web farm using TMG 2010-part one'>howto://publish a web farm using TMG 2010-part one</a></li>
<li><a href='http://retrohack.com/howtopublish-dns-using-tmg-2010-or-isa-2006/' rel='bookmark' title='Permanent Link: howto://publish DNS using TMG 2010 or ISA 2006'>howto://publish DNS using TMG 2010 or ISA 2006</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/i-51lS01g3U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/how-to-configure-pptp-vpn-support-on-tmg-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://retrohack.com/how-to-configure-pptp-vpn-support-on-tmg-2010/</feedburner:origLink></item>
		<item>
		<title>Cleartext protocols give me a R(a)SH</title>
		<link>http://feedproxy.google.com/~r/Retrohack/~3/wDYB_8eyrrQ/</link>
		<comments>http://retrohack.com/remote-shell-for-windows/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 12:30:00 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://retrohack.com/cleartext-protocols-give-me-a-rash/</guid>
		<description><![CDATA[Need an RSH client for Windows 7, or an RSHd for Server 2008? This post will show you where to get both and how to get them running with almost no effort at all. Reboots not required.


You might also enjoy:<ol><li><a href='http://retrohack.com/howtoinstalling-ms-project-server-2007-on-windows-2008/' rel='bookmark' title='Permanent Link: howto://Installing MS Project Server 2007 on Windows 2008'>howto://Installing MS Project Server 2007 on Windows 2008</a></li>
<li><a href='http://retrohack.com/fixing-530-home-directory-not-accessible/' rel='bookmark' title='Permanent Link: Fixing 530 Home directory not accessible'>Fixing 530 Home directory not accessible</a></li>
<li><a href='http://retrohack.com/routing-protocols-reference/' rel='bookmark' title='Permanent Link: Routing Protocols reference'>Routing Protocols reference</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p>
<p><a href="http://retrohack.com/tag/windows/" rel="tag"><img style="border-right-width: 0px; margin: 5px 10px 5px 5px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="windows" align="left" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/05/windows.jpg" /></a>But don&#8217;t worry, the YouTube clip at the end of today&#8217;s post will have nothing to do with skin conditions. Today&#8217;s little adventure in nostalgia posting comes courtesy of a bridge call that I was asked to join so that we could troubleshoot a systems integration issue. The short story is that a process running on one server has to make a remote shell call to a process running on another, and it wasn&#8217;t.</p>
<p>To test things out, it became necessary to install an RSHd on the Windows server, and an RSH client on my Windows 7 workstation, so that I could verify that the communications pathways were there. Of course, MSFT has not included an rsh client since XP, and the RSHd service is now a part of a much larger Services for Unix. Not wanting to go there on the server, and not having an XP workstation at hand, I needed to find a quick way to make this work. I did.</p>
<p> <span id="more-1876"></span><br />
<h3>Server</h3>
<p><a href="http://sourceforge.net/users/dubman" target="_blank">Mike Dubman</a> created a <a href="http://rshd.sourceforge.net/" target="_blank">Windows RSH daemon</a> and posted it on <a href="http://sourceforge.net" target="_blank">SourceForge</a>. It is a zip file to download and extract and it includes a simple self-contained binary as well as the source. You can run the RSHd as an application, or install it as a service. To get a listener running without an install and without having to create an .rhosts file, open a cmd prompt in the extracted directory and run</p>
<p><code>rshd –d –r [enter]</code> </p>
<p>That is all you need to do to get a listener running for testing. Dubman&#8217;s page includes the documentation on installing it as a service, which is an option if you need it.</p>
<h3>Client</h3>
<p><a href="http://www.ccs.neu.edu/home/bchafy/index.html" target="_blank">Bryan Chafy</a> over at Northeastern University ported the RSH client over to Windows. You can get the rsh executable, along with source, <a href="http://www.ccs.neu.edu/home/bchafy/rsh_vista.html" target="_blank">here</a>. It runs in a cmd prompt just like any other rsh client. Open a cmd prompt in the directory where you extracted the file (I copied it to my cmdlinetools directory, as previously mentioned <a href="http://retrohack.com/groundhog-day-laptop-style/" rel="nofollow">here</a>) and away you go. To give you a feel for it, say I want to execute the <em>hostname </em>cmd to test things out against the server <em>fileserver1</em>.</p>
<p><code>rsh fileserver1 hostname [enter]</code></p>
<p>You should see fileserver1 in the response. You can also use the ip.addr instead of the name if you choose.</p>
<h3>(in)Security</h3>
<p>Just remember that remote shell offers no encryption, and without an .rhosts file, it basically just assumes that you are who you say. Usernames are transmitted in the clear, and there is no authentication. Your command, and the account you use to execute it, will cross the wire in the clear, as will any response. This is <strong>not</strong> to be considered a replacement for SSH, or PowerShell, but when you have to use it for cross-platform/legacy purposes, it&#8217;s nice to be able to have something that just works.</p>
<p><a href="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image6.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="As you can see, the username efisher is executing the cmd &#39;hostname.&#39;" border="0" alt="As you can see, the username efisher is executing the cmd &#39;hostname.&#39;" src="http://retrohack.com/_retroh_wp_root/wp-content/uploads/2010/06/image_thumb6.png" width="644" height="297" /></a> </p>
<blockquote><p>RSH clients use TCP 1023 as the source port, and this RSHd expects that, and will not accept connections from higher ports. If you are connecting through NAT (and we all know how much I lurve NAT) you&#8217;re going to get spanked with an &quot;Permission denied by rshd.&quot; I&#8217;ve got no help for you with this&#8230;I hate NAT, and there are some protocols that just won&#8217;t work through it.</p>
</blockquote>
<p>Using CLI tools always reminds me of old-school hacking, and how laughable it is when movies and TV shows try to show it in 30 second blips. While I lurved &quot;The Matrix,&quot; this vid from CollegeHumor just rocks. If you have to enable an insecure interface to your server, this might make you feel a little better about doing it&#8230;well, this, and a tall cold one. <em>Hope you have cookies enabled!</em></p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:0eca4c6d-d432-44b6-b39d-6cc35db2de73" class="wlWriterEditableSmartContent">
<div><object width="640" height="360" ><param name="movie" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1886349&amp;fullscreen=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1886349&amp;fullscreen=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="360"></embed></object></div>
</div>
<p>Direct link for RSS and email subscribers&#8230;<a href="http://www.collegehumor.com/video:1886349">http://www.collegehumor.com/video:1886349</a></p>



<p>You might also enjoy:<ol><li><a href='http://retrohack.com/howtoinstalling-ms-project-server-2007-on-windows-2008/' rel='bookmark' title='Permanent Link: howto://Installing MS Project Server 2007 on Windows 2008'>howto://Installing MS Project Server 2007 on Windows 2008</a></li>
<li><a href='http://retrohack.com/fixing-530-home-directory-not-accessible/' rel='bookmark' title='Permanent Link: Fixing 530 Home directory not accessible'>Fixing 530 Home directory not accessible</a></li>
<li><a href='http://retrohack.com/routing-protocols-reference/' rel='bookmark' title='Permanent Link: Routing Protocols reference'>Routing Protocols reference</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Retrohack/~4/wDYB_8eyrrQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://retrohack.com/remote-shell-for-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://retrohack.com/remote-shell-for-windows/</feedburner:origLink></item>
	</channel>
</rss>
