Tom's Hardware > Forum > General Networking > General Gateways, Routers and Firewalls > IIS FTP through port forwarding, passive mode problem

IIS FTP through port forwarding, passive mode problem

Forum General Networking : General Gateways, Routers and Firewalls - IIS FTP through port forwarding, passive mode problem

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Hi guys,

I'm trying to run an IIS FTP site through a port forwarding router (BEFSR41). All ports are forwarded to my server at 192.168.0.10 but passive mode doesn't work.

IIS seems to be sending an incorrect IP for passive mode (it's using the local IP rather then the internet ip)

227 Entering Passive Mode (192,168,0,10,18,106).

I can't run active ftp as the machine I'm FTPing from is also behind a router

Is there any way to configure IIS to get round this?

Sponsored Links
Register or log in to remove.

Are you trying to test FTP from a local computer? It won't work. Go to http://www.g6ftpserver.com/en/ftptest to test your FTP server.

Grumpy

Reply to Grumpy9117

Nope I'm testing from a remote PC using the internet IP for my router.

I can make an ftp connection to port 21 fine, it just fails when setting up the data connection

The FTP test returned

* About to connect() to x.x.x.x port 21
* Trying x.x.x.x ... connected
* Connected to x.x.x.x (x.x.x.x ) port 21
< 220 Microsoft FTP Service

> USER guest
< 331 Password required for guest.

> PASS *****
< 230 User guest logged in.

> PWD
< 257 "/guest" is current directory.
* Entry path is '/guest'

> CLNT Testing from http://www.g6ftpserver.com/ftptest from IP 217.154.32.194
< 500 'CLNT Testing from http://www.g6ftpserver.com/ftptest from IP 217.154.32.194': command not understood
* QUOT command failed with 500
* Connection #0 to host x.x.x.x left intact

* Closing connection #0

which doesn't look particularly helpful

Reply to AndyCrowe

Passive mode also requires and additional ports. Did you forward those as well?

http://support.microsoft.com/?id=555022

Grumpy

Reply to Grumpy9117

All ports are being forwarded (1 to 65535)

One thing I noticed is the ftp program is sending "227 Entering Passive Mode (192,168,0,10,18,106)". which is the LAN address rather then the external address.

Do FTP clients use this IP or will they go with the original host name given?

Reply to AndyCrowe

Can't answer your question. I've never setup a FTP server using IIS.

Grumpy

Reply to Grumpy9117
- 0 +

when you run your FTP server in passive mode, the server needs to send the client a response with the external IP address i think. If the FTP server sends the internal IP as the response then things wont work. this is usually configurable on the server. if you can't figure it out with IIS, then I dont blame you. Try using FileZilla FTP Server because its easier to understand I think and that configuration parameter is easy to find.

Reply to mozkill

Setting up FTP servers can be a royal pain. I have setup several FTP server, both NAS boxes. One worked with out a hitch, the other was browser sensitive. I had one that only worked with IE passing the user & pw on the address bar. The problem accours when there are firewalls on both ends.

Here is a link that will help explain how the hand shaking works.

http://slacksite.com/other/ftp.html

Good luck.

Reply to blue68f100
Tom's Hardware > Forum > General Networking > General Gateways, Routers and Firewalls > IIS FTP through port forwarding, passive mode problem
Go to:

There are 1269 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them