D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: Eye on February 27, 2010, 10:32:48 AM

Title: Can't get ftp to work
Post by: Eye on February 27, 2010, 10:32:48 AM
I have set up the ftp server. It works in the LAN but not from outside. When I surf to ftp://192.168.0.99 it works well and I can browse Volume_1. From the Internet it doesn't work. I use dlinkddns, and I can ping both my current ip address and my ddns host name from another network, but when I try to go there in Internet Explorer it can't find the page (I have unchecked the passive ftp setting for IE's). When I try FileZilla I get a Connection timed out error.

I have set up the ddns settings in the router, and testing the ddns account with the button in the router gui is successful. My internet provider have no restrictions for ftp servers.

Can any one assist me please?

Here are my settings:

Router
D-Link DIR-100 (there is no modem, I'm connected directly to the fiber network)
Firmware: 1.12
Port forwarding:
(http://img444.imageshack.us/img444/9741/portforwarding.jpg)

Firewall rule:
(http://img59.imageshack.us/img59/2366/firewallrule.jpg)

NAS
D-Link DNS-323
Firmware: 1.08
RAID 1
(http://img689.imageshack.us/img689/2949/lansettings.jpg)
(http://img62.imageshack.us/img62/2073/ftpserversettings.jpg)
Title: Re: Can't get ftp to work
Post by: gunrunnerjohn on February 27, 2010, 12:52:55 PM
Check Report external IP address in passive mode and see if that helps.
Title: Re: Can't get ftp to work
Post by: Eye on February 27, 2010, 01:37:04 PM
Check Report external IP address in passive mode and see if that helps.

I checked it, didn't help. This checkbox appeared in 1.08, I'm not really familiar with what it should be used for. I have a dynamic ip address, should I change the reported address manually when my ip address changes?

Furthermore, I have tried to open my ftp in active mode, both in IE and in FileZilla. Is there anything wrong with the settings I show above?
Title: Re: Can't get ftp to work
Post by: gunrunnerjohn on February 27, 2010, 01:44:01 PM
Here's how I have mine set, works find internally and externally if I forward port 21.

(http://i726.photobucket.com/albums/ww264/gunrunnerjohn/Misc%20Graphics/ftp.jpg)
Title: Re: Can't get ftp to work
Post by: Eye on February 27, 2010, 01:55:55 PM
Thanks for taking your time. The address in the External IP, is that your static address? What should I put there since I have a dynamic address?

Ok, I just tested to put the 323 in the DMZ, and it works. Am I right then in assuming it is a firewall problem? I don't want to have it in the DMZ.
Title: Re: Can't get ftp to work
Post by: gunrunnerjohn on February 27, 2010, 02:00:58 PM
The address in the configuration is from the DynDNS client within the DNS-323, I don't have a static IP address.

If it works in the DMZ, you're making progress. :)
Title: Re: Can't get ftp to work
Post by: Eye on February 28, 2010, 04:38:24 AM
If it works in the DMZ, you're making progress. :)

Well, it shows that it should be possible to make it work, but I still don't want to have it in the DMZ. Is there anything wrong with the settings above? Is there something I've missed?
Title: Re: Can't get ftp to work
Post by: Buhric on February 28, 2010, 05:00:52 AM
D-Link DIR-100 (there is no modem, I'm connected directly to the fiber network)
What do you mean by "No Modem"? You surely have a device given to you by your ISP that plugs
to the "fiber network"

When you got to http://www.whatismyipaddress.com (http://www.whatismyipaddress.com), the IP address shown...
Is it the same IP you get when you ping your DDNS name?
And is that the same WAN IP you have on your DIR-100 Status page?

and are you sure you disabled PASV transfer in IE and FileZilla?
Try to forward also the PASV ports you have setup in the DNS-323... 55536 to 55663
Title: Re: Can't get ftp to work
Post by: Eye on February 28, 2010, 05:18:00 AM
What do you mean by "No Modem"? You surely have a device given to you by your ISP that plugs
to the "fiber network"
No, there is no device involved to get connected to internet with the fiber network. There is a socket on my wall into which I plug the router.

When you got to http://www.whatismyipaddress.com (http://www.whatismyipaddress.com), the IP address shown...
Is it the same IP you get when you ping your DDNS name?
And is that the same WAN IP you have on your DIR-100 Status page?
Yes and yes.

and are you sure you disabled PASV transfer in IE and FileZilla?
Yes.
Title: Re: Can't get ftp to work
Post by: Buhric on February 28, 2010, 07:10:59 AM
can you paste the log of FileZilla when you try to connect to your FTP?
Title: Re: Can't get ftp to work
Post by: Eye on February 28, 2010, 07:22:50 AM
It's just a timeout message I'm afraid. It's just this:

Status:   Connecting to xxx.xxx.xxx.xxx:21...
Error:   Connection timed out
Error:   Could not connect to server
Status:   Waiting to retry...
Title: Re: Can't get ftp to work
Post by: gunrunnerjohn on February 28, 2010, 07:33:48 AM
Try using the default port range in the DLINK configuration and port forwarding port 21 and 55536-55663, checking my router that's what I have.
Title: Re: Can't get ftp to work
Post by: Buhric on February 28, 2010, 11:16:55 AM
It's just a timeout message I'm afraid. It's just this:

Status:   Connecting to xxx.xxx.xxx.xxx:21...
Error:   Connection timed out
Error:   Could not connect to server
Status:   Waiting to retry...

K so it does not even reach your DNS-323

Could it be that your ISP is blocking port 21 ?
Title: Re: Can't get ftp to work
Post by: Wastedfreak on February 28, 2010, 11:41:11 AM
Try assign a primary DNS 4.2.2.2 and secondary dns 4.2.2.3 thats works with me.
Title: Re: Can't get ftp to work
Post by: Eye on February 28, 2010, 02:12:33 PM
Try using the default port range in the DLINK configuration and port forwarding port 21 and 55536-55663, checking my router that's what I have.

No luck, I'm afraid.

Could it be that your ISP is blocking port 21 ?

No, they don't. And I've tried other ports.

I'll try another router tomorrow and see what happens.
Title: Re: Can't get ftp to work
Post by: Wiggs on March 01, 2010, 10:12:00 AM
Wouldn't be ISP blocking if it works in the DMZ of the router.  It has to be an issue with the router and forwarding of ports. 
Title: Re: Can't get ftp to work
Post by: gunrunnerjohn on March 01, 2010, 10:44:59 AM
You'd think, but I can't imagine why standard FTP would work and they'd block secure FTP.
Title: Re: Can't get ftp to work
Post by: Eye on March 03, 2010, 02:24:55 PM
Right, I changed router to DIR-655 and now it works as it should. Maybe there was something wrong with the other one. Thanks for your support, guys (and gals?).