Groups | Blog | Home
all groups > iis ftp > august 2004 >

iis ftp : Port 21 blocked by ISP


DAZ
8/28/2004 6:12:14 PM
I'm running IIS 6 on Windows 2003 Server. The server is
behind a Linksys BEFSR41 router and uses a static
internal address. My ISP only provides me with a dynamic
IP address and has blocked port 21 so I've configured the
ftp server to use port 7721. I've also configured
passive port numbers 7722 to 7730 for ftp. I also have a
dyndns.org name defined to point to my router's
connection so I can find the server from out on the
Internet. The router is configured to forward ports 7721
to 7730 to my server at the internal static IP address.

Clients have to connect in PASV mode because of the port
blockage from my ISP. However, when the server responds,
it sends its internal IP address back to the client which
then cannot talk to the server because it's now using the
wrong address. Anyone gotten around this? Here's an
example log from the client FTP Commander:

Connecting to xxx.dyndns.org , 28 Aug 2004 18:09:12
< 220-Microsoft FTP Service
< If you are not authorized to access this system,
disconnect now.
< Users of this system have no expectation of privacy.
< 220 By continuing, you consent to your keystrokes and
data content being monitored.
[quoted text, click to view]
Error Unable to establish data connection, error #10061
alunj NO[at]SPAM online.microsoft.com (
8/31/2004 4:55:04 PM
[quoted text, click to view]

The first question I would ask is the obvious non-technical one -
presumably your ISP has blocked port 21 because they particularly don't
want you running an FTP server, rather than because they don't want you
running something that uses a 21 in its destination port. If you flout
the rules of your ISP, you will probably be found out eventually, and your
service disconnected - possibly without warning, and possibly even with a
fine. I strongly recommend that you address this problem _first_. It may
be that you can simply ask your ISP to open up port 21 for use as an FTP
server, and they will grant it - on occasion, this sort of limit is put in
to make sure that malware doesn't install a server that the user is unaware
of.

[quoted text, click to view]

Only if your ISP is blocking outgoing connection attempts, or if their ISP
or firewall is blocking incoming connection attempts. The former is
unlikely, the latter more so.

[quoted text, click to view]

This is because the NAT is unable to tell that the server is sending FTP
traffic - the NAT checks for FTP traffic only on port 21.

I have heard that some more expensive NAT routers will allow you to
configure them such that they will look for FTP traffic on whatever port
you tell them - but I have not found any specific details on that.

It looks like your best bet is to try and convince your ISP to let you run
your FTP server on port 21.

Alun.
~~~~
anonymous NO[at]SPAM discussions.microsoft.com
9/1/2004 3:10:31 PM

[quoted text, click to view]

Yes, my ISP does not want me running servers. Generally
I transfer files using Remote Desktop Connection or
Terminal Services. However, I had occasion where this
method was not feasible. Consequently I wanted to set
ftp to be able to transfer a file. Since this is the
first time I've done this in the two years I've been with
this ISP and since I don't plan on keeping the ftp server
running except when I'm transfering a file, I don't think
it will be a problem.

[quoted text, click to view]

Exactly.

[quoted text, click to view]

Thanks. I'll either have to look into another method for
transfering files or else at more capable hardware,
though doing this once every two years doesn't seem like
it would warrant spending extra $'s for equipment.

In any case, thanks for your response.

alunj NO[at]SPAM online.microsoft.com (
9/2/2004 4:03:40 PM
[quoted text, click to view]

Have you considered asking your ISP what they would suggest as a solution
to your overall problem, that of occasional file transfers?

Most ISPs are reasonable, and will take reasonable steps to ensure that
their customers can achieve reasonable use of their systems connected to
the Internet. If your ISP is not reasonable, of course, that would give
you good reason to change ISP.

Alun.
~~~~
AddThis Social Bookmark Button