• February 23, 2025, 03:07:38 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: DNS 320 H/W B2 firm 1.0 cannot connect to FTP server from LAN  (Read 6847 times)

jaaf

  • Level 1 Member
  • *
  • Posts: 8

Hi everybody,

I am trying to setup the FTP server on my new NAS DNS 320.
Before trying to connect from WAN, I tried to connect from LAN using the filezilla client.
My Disks (raid1) contains only a few files at the moment and structure is like this
Volume_1
     Partagés
     jaaf
          some files here
     Shim

jaaf is one user among 2 (whose names match the directory names and that belongs to a group called ftpusers) and FTP is enabled for him
Network shares include Volume_1 which is read/writable for jaaf and Shim and Volume_1/jaaf which is read/writable for jaaf only.
When I try to connect I get a time out. Here is the complete dialog displayed by filezilla.

Quote
Status:   Connecting to 192.168.1.15:21...
Status:   Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:   220-You are user number 1 of 10 allowed.
Response:   220-Local time is now 13:08. Server port: 21.
Response:   220-This server supports FXP transfers
Response:   220-IPv6 connections are also welcome on this server.
Response:   220 You will be disconnected after 10 minutes of inactivity.
Command:   USER jaaf
Response:   331 User jaaf OK. Password required

Command:   PASS *************
Response:   230 OK. Current restricted directory is /
Status:   Server does not support non-ASCII characters.
Status:   Connected
Status:   Retrieving directory listing...
Command:   CWD /Volume_1/jaaf/Images
Response:   250 OK. Current directory is /Volume_1/jaaf/Images
Command:   TYPE I
Response:   200 TYPE is now 8-bit binary
Command:   PASV
Response:   227 Entering Passive Mode (109,220,243,27,217,73)
Command:   MLSD
Error:   Connection timed out
Error:   Failed to retrieve directory listing
I have no idea of what can be the cause being inside the same LAN as NAS ?
Thank you for help.
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: DNS 320 H/W B2 firm 1.0 cannot connect to FTP server from LAN
« Reply #1 on: August 25, 2014, 12:22:17 PM »

For a start double check the FTP server settings on the DNS-320 not just the user/group permissions.
Logged

jaaf

  • Level 1 Member
  • *
  • Posts: 8
Re: DNS 320 H/W B2 firm 1.0 cannot connect to FTP server from LAN
« Reply #2 on: August 25, 2014, 10:57:42 PM »

Hi Ivan,
Thank you for helping me.
The situation has a bit evolved. I can now connect to the FTP server from LAN both in active and passive mode.
My trouble is now accessing it from WAN.
To do so, in a first time, I put the private ip adresse in the dmz of my router box (ADSL modem router) and forwarded port 20 and 21 to this ip in the NAT/PAT setting of this box.
I also configurated the dyndns as explained in doc.
To simulate a call from outside the LAN, I connected from a second PC to the public shared network of my ISP (that provides me an other public adress that the one of my ADSL/modem)
Using Filezilla I get an " waiting time too long, could not establish a connection to the server" (this is translated from French and could have been "timeout"). This is the same in active and passive mode and appears in the first stage (before even exchanging password).
Apparently the dyndns is OK (Filezilla get the actual public adress of the ADSL modem router).

To tell the truth, there is something I don't understand clearly : when I try to enter IP forwarding in the NAS (for example service ftp, protocol TP, external port 20, internal port 20, I get an error. The same for 21.
Do I absolutely need to enter these forwarding rules ?

To be exhaustive here is my FTP server config
   Maximum users 10
   Idle time 10 mn
  Port 21
  Passive mode
      use the default port range (ticked)
      report external Ip in passive (tried both)
      client language ISO-8859
      Flow control : unlimited
       Allow SSL/TLS connections only : no
      FXP : enabled
Logged

jaaf

  • Level 1 Member
  • *
  • Posts: 8
Re: DNS 320 H/W B2 firm 1.0 cannot connect to FTP server from LAN
« Reply #3 on: August 26, 2014, 02:36:32 AM »

Fresh news

I tried to connect from a friend's home and it works. Maybe using the provider 's public network is troublesome.

I now only have this question about the need to declare ipforwarding inside the NAS and why I cannot.

Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: DNS 320 H/W B2 firm 1.0 cannot connect to FTP server from LAN
« Reply #4 on: August 26, 2014, 11:40:40 AM »

The NAS requires a fixed IP address and you do IP forwarding in your router to that adderess.
Logged

jaaf

  • Level 1 Member
  • *
  • Posts: 8
Re: DNS 320 H/W B2 firm 1.0 cannot connect to FTP server from LAN
« Reply #5 on: August 28, 2014, 08:24:24 AM »

Hi Ivan,

this I undertand (ip forwarding into the router) but what about ip forwarding in the NAS itself ? What is it intended for and why can I not use it?
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: DNS 320 H/W B2 firm 1.0 cannot connect to FTP server from LAN
« Reply #6 on: August 29, 2014, 08:45:50 AM »

Sorry for the delay, but I missed seeing your question.

What IP forwarding in the NAS?  I don't see anything about it in any of our DNS-320 NAS boxes - maybe I'm looking in the wrong place in FTP Server setup.
Logged

jaaf

  • Level 1 Member
  • *
  • Posts: 8
Re: DNS 320 H/W B2 firm 1.0 cannot connect to FTP server from LAN
« Reply #7 on: August 30, 2014, 06:49:12 AM »

Hi ivan,
Please don't be sorry. It is kind enough of you to answer me.
I fact the IP forwarding screen in the NAS is in Management --> Network management --> Portforwarding (second section in the page after the section UpnP router detection).
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: DNS 320 H/W B2 firm 1.0 cannot connect to FTP server from LAN
« Reply #8 on: August 30, 2014, 09:42:53 AM »

Again sorry but we don't have that setting on any of our DNS-320 NAS boxes (maybe because we haven't updated the firmware beyond v2.00 as that does what we need).

From your description it appears to be something related to UpnP which we don't use anyway.
Logged