all groups > iis ftp > august 2006 >
You're in the

iis ftp

group:

FTP server responds to PASV with wrong port on Server 2003


FTP server responds to PASV with wrong port on Server 2003 ricksk NO[at]SPAM ozemail.com.au
8/28/2006 9:30:25 PM
iis ftp:
Can anyone help with an FTP problem?

I have loaded Server 2003 R2 Enterprise Edition onto a new server and
set up MS FTP service. The PassivePortRange has been set to
"5100-5200", but looking at network traffic, when the client requests a
PASV connection, the server sends "Response: 227 Entering Passive Mode
(192,168,xxx,xxx,19,137)" - 192,168,xxx,xxx being the IP address of the
server and 19,137 equating to port 5001!

I tried to take careful notes about how the previous server was set up
(same OS and FTP server). The router, firewall and client settings have
not changed. I just can't get the server to respond to the client PASV
request with a port in the range 5100-5200
Re: FTP server responds to PASV with wrong port on Server 2003 Bernard Cheah [MVP]
8/30/2006 12:00:00 AM
Weird, 19x256+137 does add up to 5001 :)
However I can repro it. I set my R2 to have the same port range.
adsutil.vbs set msftpsvc/passiveportrange "5100-5200"
passiveportrange : (string) "5100-5200"

do a IISreset......

then I connect locally via ftp.exe, and do a quot pasv, i got:
ftp> quot pasv
227> Entering Passive Mode (127,0,0,1,19,236)
ftp> quot pasv
227> Entering Passive Mode (127,0,0,1,19,237)

so the first will be port 5100, follow by 5101

can you try reset the value again..


--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Re: FTP server responds to PASV with wrong port on Server 2003 nic NO[at]SPAM xs4all.nl
8/30/2006 3:36:44 AM
[quoted text, click to view]

I have the same behaviour on my server (Server 2003 SP1 standard
edition): regardless of what I put in PassivePortRange, port range is
beginning at 5001 (and, worse, doesn't use a maximum port numer, it
just keeps counting up). I cannot find much information on it, but I
found somewhere (I'm sorry I don't have a url anymore) that it might be
because of the Routing and Remote Access service is running (which I
indeed use). I didn't find the time yet to verify this.

Nic.
Re: FTP server responds to PASV with wrong port on Server 2003 Bernard Cheah [MVP]
9/1/2006 12:00:00 AM
I believe that's how it works. it will start at the begining of the
portrange and keep +1


--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Re: FTP server responds to PASV with wrong port on Server 2003 Nic Limper
9/1/2006 12:40:34 AM
[quoted text, click to view]

That's how it *should* work. But note the subtile differences :-) It's
not starting at the beginning of the portrange: it's always starting at
5001, regardless of what you enter for the portrange. And it's not
counting until the end of the portrange, but it just keeps counting....
Re: FTP server responds to PASV with wrong port on Server 2003 Bernard Cheah [MVP]
9/1/2006 5:24:20 PM
I can't repro what you claimed. see my other post.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Re: FTP server responds to PASV with wrong port on Server 2003 RSK
9/6/2006 9:05:57 PM

[quoted text, click to view]

I solved the problem on my server by disabling the Windows Firewall and
configuring Routing and Remote Access - but watch out for the basic
firewall in RRA. I don't know why it works. Maybe the FTP server needs
it to correctly apply the PassivePortRange?
Re: FTP server responds to PASV with wrong port on Server 2003 Bernard Cheah [MVP]
9/15/2006 12:00:00 AM
what did you change in RRA ?
ftp somehow related to RRA in certain why. i don't know the exact detail,
but have seen some weird stuff with it

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Re: FTP server responds to PASV with wrong port on Server 2003 RSK
9/22/2006 4:58:29 PM
I used the RRA Wizard and just configured it for LAN only and voila -
the passive ftp started working on the correct ports. If I added basic
firewall, alas, back to the same problem.

It would be good to know what one can and can't configure in RRA if one
needs passive ftp with port range restriction

Regards
Rick

[quoted text, click to view]
Re: FTP server responds to PASV with wrong port on Server 2003 Bernard Cheah [MVP]
9/29/2006 12:00:00 AM
ha! thanks for the update.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Re: FTP server responds to PASV with wrong port on Server 2003 Berend Engelbrecht
10/6/2006 11:44:15 AM
We had this issue in Server 2003 since September - October 2005, it
started happening after a "patch Tuesday". We use RRAS to configure
routing, this is what caused the problem.

After many hours of support, Microsoft Enterprise Platforms Support
found the solution in disabling the FTP proxy of RRAS, which seems to
have a new bug since last year:

- Issue command: NETSH ROUTING IP NAT DELETE FTP
- Restart RRAS service

After these steps, it immediately started working normally. Today we
have been configuring a new Windows 2003 server: same problem, same
solution.

Hope this helps,

Berend


Re: FTP server responds to PASV with wrong port on Server 2003 Bernard Cheah [MVP]
10/8/2006 12:00:00 AM
Wow! excellent details!



--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button