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

<channel>
	<title>HuberBlog ::Jason Huber &#187; ports</title>
	<atom:link href="http://huberblog.com/tag/ports/feed/" rel="self" type="application/rss+xml" />
	<link>http://huberblog.com</link>
	<description>This is where Jason puts his stuff of personal interest.</description>
	<lastBuildDate>Thu, 17 May 2012 17:03:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>FTP not working through Windows Firewall (on my server)</title>
		<link>http://huberblog.com/2010/01/04/ftp-not-working-through-windows-firewall-on-my-server/</link>
		<comments>http://huberblog.com/2010/01/04/ftp-not-working-through-windows-firewall-on-my-server/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 14:39:08 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Educational]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[ports]]></category>

		<guid isPermaLink="false">http://huberblog.com/?p=415</guid>
		<description><![CDATA[I have a virtual dedicated server from godaddy. This is basically a virtual machine running on a shared host. So far it has been awesome. Works really well if I could get my forums to stop taking up too much memory I wanted to open up FTP for a project some of my former students [...]]]></description>
			<content:encoded><![CDATA[<p>I have a virtual dedicated server from godaddy. This is basically a virtual machine running on a shared host. So far it has been awesome. Works really well if I could get my forums to stop taking up too much memory <img src='http://huberblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I wanted to open up FTP for a project some of my former students and I are working on. So I did the usual. Started up the service and added the exception to the firewall.</p>
<h3> Easy as that?</h3>
<p>From my laptop I could connect, but I could not get a directory listing (LIST). I assumed this was because I was using windows list instead of *nix, but I was wrong. I could connection using the command line FTP, so I knew something could work. I can also FTP to various other sites just fine. So what gives?</p>
<h3>Passive FTP versus active ftp</h3>
<p>FTP is a funny thing. Funny like Lucifer. </p>
<p>So you ftp into a server in passive mode. The server responds telling you what port to reconnect to. Your client obliges. This is passive FTP.</p>
<p>Active FTP your client (your laptop) tells the server which port to open. In both cases the ports need to be open on the firewall. Or so it seemed. </p>
<p>The command line ftp client built in with windows uses active FTP. It works. </p>
<p>Passive does not. The client needs to be able to connect back out on the port request (outbound is usually allowed on all ports right?) but the server needs to accept inbound on those ports.</p>
<p>FTP on IIS 6.0 is setup to use a port range that is something like 54 &#8211; 10000000000. Windows firewall makes you enter the ports ONE AT A TIME. I did some calculations and the calculations took me longer than this process should. So I stopped.</p>
<p>So you need to tell FTP server to only listen on a few ports when in active mode. It will then tell your laptop to use one of those ports and you can easily open 5 ports on the firewall right?</p>
<h3>So what is the fix?</h3>
<p>This one I actually searched google a lot for. I ended up finding an incorrect copy of the following page from, who else? M$:<br />
<a href="http://support.microsoft.com/kb/555022">http://support.microsoft.com/kb/555022</a></p>
<p>And so you do not even need to go there you do this:</p>
<p>For Windows 2003 Server</p>
<p>a) To Enable Direct Metabase Edit<br />
1. Open the IIS Microsoft Management Console (MMC).<br />
2. Right-click on the Local Computer node.<br />
3. Select Properties.<br />
4. Make sure the Enable Direct Metabase Edit checkbox is checked.</p>
<p>b) Configure PassivePortRange via ADSUTIL script<br />
1. Click Start, click Run, type cmd, and then click OK.<br />
2. Type cd Inetpub\AdminScripts and then press ENTER.<br />
3. Type the following command from a command prompt.<br />
    adsutil.vbs set /MSFTPSVC/PassivePortRange &#8220;5500-5700&#8243;<br />
4. Restart the FTP service.</p>
<p>You&#8217;ll see the following output, when you configure via ADSUTIL script:</p>
<p>Microsoft (R) Windows Script Host Version 5.6</p>
<p>Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.</p>
<p>PassivePortRange                : (STRING) &#8220;5500-5700&#8243;</p>
<p>But check that site in case I copied and pasted something wrong <img src='http://huberblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://huberblog.com/2010/01/04/ftp-not-working-through-windows-firewall-on-my-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

