• February 28, 2025, 01:07:55 AM
  • 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: Setup and accessing FTP  (Read 5733 times)

bighatch

  • Level 1 Member
  • *
  • Posts: 5
Setup and accessing FTP
« on: July 19, 2010, 09:17:26 AM »

I'm new to ftp stuff. I have setup my ftp server (192.168.0.197:5588) and I can access it from inside my network but I cannot from outside (at work). I have setup my DIR-655 to have a virtual server at port 5588. I'm not even sure how to go about accessing it from outside the network??? I have tried entering the following in internet explorer browser address line:

ftp x.x.x.x/192.168.0.197:5588 from my work but it doesn't work (where x.x.x.x is my external ip)
ftp x.x.x.x./DNS-323 (thats the name of my virtual server setup in DIR-655)
ftp x.x.x.x:5588

Am I doing something wrong? Like I said, I have never used ftp before...   :(
« Last Edit: July 19, 2010, 09:29:35 AM by bighatch »
Logged

fordem

  • Level 10 Member
  • *****
  • Posts: 2168
Re: Setup and accessing FTP
« Reply #1 on: July 19, 2010, 10:40:23 AM »

First - any access from the internet will require the relevant port(s) to be forwarded at the router, and then the connection is made using ftp://x.x.x.x:5588 (where x.x.x.x is your external ip).

Second - you need to make a decision as to whether you're going to use active or passive ftp and configure your setup accordingly - active ftp is simpler to configure IF you stick with the standard ports, passive ftp requires a little more configuration at the ftp server side - look at the ftp server settings and use either port fowarding or port triggering to forward the passive range to the DNS-323 - do not forget to check the "Report external IP in passive mode box, and verify the ip is correct.

That should be enough to get you going for now - but sooner or later your public ip address will change and you'll need to reconfigure stuff, registering a URL with dyndns fixes that, but for now, let's get it running using the ip address.
Logged
RAID1 is for disk redundancy - NOT data backup - don't confuse the two.

bighatch

  • Level 1 Member
  • *
  • Posts: 5
Re: Setup and accessing FTP
« Reply #2 on: July 19, 2010, 04:56:43 PM »

I have firmware v1.07 and I don't see anywhere to setup active or passive. Also don't see any check boxes for "Report external IP in passive mode box". Do I need to have v1.09 ?
Logged

fordem

  • Level 10 Member
  • *****
  • Posts: 2168
Re: Setup and accessing FTP
« Reply #3 on: July 19, 2010, 09:00:48 PM »

I should have asked what firmware you were running - you need at least 1.08 - the earlier versions have a "partial implementation" of passive ftp, it will work on the LAN, but not over the internet, because there is no way to get the DNS-323 to send the external ip address required for the data connection.

You can use the ftp server in 1.07 over the internet, but only if you stick with the standard ftp port (21)
Logged
RAID1 is for disk redundancy - NOT data backup - don't confuse the two.

bighatch

  • Level 1 Member
  • *
  • Posts: 5
Re: Setup and accessing FTP
« Reply #4 on: July 21, 2010, 05:51:21 AM »

I have upgraded to the v1.09 firmware and I have passive mode using the default port range of 55536 - 55663. I checked the box to "Report external IP in passive mode". I don't see anywhere to check active mode? In the settings for my DIR-655 I have port 5588 forwarded to 192.168.0.197 which is the DNS-323. I am using filezilla and I have tried (from work) to access it with partial success. It will connect and accept the user name and password but will not retrieve the directory listing. I've tried in passive and active mode with no luck: (see below)


Status:   Connecting to x.x.x.x:5588...
Status:   Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [TLS] ----------
Response:   220-You are user number 1 of 3 allowed.
Response:   220-Local time is now 09:15. Server port: 5588.
Response:   220-This server supports FXP transfers
Response:   220 You will be disconnected after 10 minutes of inactivity.
Command:   USER ******
Response:   331 User ****** OK. Password required
Command:   PASS *******
Response:   230 OK. Current restricted directory is /
Command:   SYST
Response:   215 UNIX Type: L8
Command:   FEAT
Response:   211-Extensions supported:
Response:    EPRT
Response:    IDLE
Response:    MDTM
Response:    SIZE
Response:    REST STREAM
Response:    MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response:    MLSD
Response:    ESTP
Response:    PASV
Response:    EPSV
Response:    SPSV
Response:   211 End.
Status:   Connected
Status:   Retrieving directory listing...
Command:   PWD
Response:   257 "/" is your current location
Command:   TYPE I
Response:   200 TYPE is now 8-bit binary
Command:   PORT x,x,x,x,x,x
Response:   200 PORT command successful
Command:   MLSD
Error:   Connection timed out
Error:   Failed to retrieve directory listing
« Last Edit: July 21, 2010, 06:35:41 AM by bighatch »
Logged

fordem

  • Level 10 Member
  • *****
  • Posts: 2168
Re: Setup and accessing FTP
« Reply #5 on: July 21, 2010, 12:26:26 PM »

The active/passive mode is determined by the ftp client - the ftp server will not use passive mode unless the client requests it.

Looking at the command/response listing - it would appear that the data connection is never established.

I don't see it mentioned, so I'm going to assume you have not done it - if you are going to use passive mode, you need to tell the DIR-655 to forward the range of passive ports to the DNS-323 - OR - if you're going to use active mode, you need to configure the ftp server * router to accept connections on port 21 instead of 5588
Logged
RAID1 is for disk redundancy - NOT data backup - don't confuse the two.

bighatch

  • Level 1 Member
  • *
  • Posts: 5
Re: Setup and accessing FTP
« Reply #6 on: July 21, 2010, 04:24:19 PM »

I changed the ftp server settings on the DNS-323 back to port 21 and set the DIR-655 to forward port 21 to 192.168.0.197 and now it is working. That's what I should have done in the first place!
Logged