D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: DougHines on September 12, 2008, 08:40:59 AM

Title: Setting up an FTP on DNS-323
Post by: DougHines on September 12, 2008, 08:40:59 AM
So I can access the NAS through FTP on my home network, but when I try to FTP to it from work I don't get anything.

I am entering my home IP address, which I think is wrong.. since it's behind a router and is local.  How can I go about accessing my home NAS from anywhere on the net?
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on September 12, 2008, 10:11:55 AM
1) goto Dyndns.com and setup an account
2) configure DynDns settings on DNS-323 Under Tools \ DDNS
3) enable portforwarding on your router and forward port 21 to NAS
4) setup the FTP server and add the users on the same page (Advanced/FTP server)
Title: Having problems too!
Post by: Rocket88 on September 14, 2008, 07:50:29 PM
Hi.  I'm having problems accessing my dns-323 also.  Except mine's a bit different.
I can log into the dns-323 using FTP and my WAN IP address.
However, I can't transfer files.  Either upload or download.  Neither works.
I can log in and see the files.  My FTP client says it's transferring, but it does nothing.  Even letting it sit for a long time.
I have a fast internet connection.  10mb down and 1mb up.

I'm pretty sure it's a router config problem, because if I use FTP and connect to the local IP  (192.168.x.xx) I can transfer files with out any problem.

Any help please??
Title: Re: Setting up an FTP on DNS-323
Post by: ECF on September 15, 2008, 03:28:07 PM
Try using FTP client software as opposed to your Browser (IE or Firefox). Many can be found on the Internet for free.
Title: Re: Setting up an FTP on DNS-323
Post by: bripab007 on September 17, 2008, 09:38:35 AM
Filezilla's a good, open-source FTP client.
Title: Re: Setting up an FTP on DNS-323
Post by: rhvonlehe on December 03, 2008, 06:49:58 AM
Lucid,

Any idea why port forwarding set up as you described would not work for me?  I have to enable a virtual server or it doesn't work.

Rich
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on December 03, 2008, 07:41:24 AM
Lucid,

Any idea why port forwarding set up as you described would not work for me?  I have to enable a virtual server or it doesn't work.

Rich

Maybe you ISP blocks port 21. Try This:


STEP 1
1) Log into the DIR-655 Admin Page
2) Goto ADVANCED/VIRTUAL SERVER
3) Make Sure you ftp server is enabled (look for check mark beside name)
4) Don't worry about selecting the APPLICATION NAME(it only sets up standard info)
5) Change the PUBLIC PORT to a random number (25 for example, just make sure that no other setting uses the port you selected and make sure it is not another standard port such as 80 for internet etc. If unsure surf net to find out which ports are for which).
6) Make sure the PROTOCOL displayed is TCP
7) SCHEDULE select to Always
8) Set the IP address field to your DNS. (You can also select it from the COMPUTER NAME drop down field next to it.
9) Set the PRIVATE PORT to 21
10) Set INBOUND FILTER to Allow all

STEP 2
1) Goto ADVANCED/FTP SERVER

A) UNDER FTP ACCOUNT SETTINGS:
1) Select your users from the drop down list
2) Choose the FTP fpolder you want them to access
3) Select the permissions (read or write) from the drop down list
4) Click on the button Add

B) UNDER FTP SERVER SETTINGS
1) Make sure the port number is 21 (as you used in STEP 1 #9 above)

C) UNDER SERVER STATUS
1) Click on START SERVER
NOTE: look to see if the server is running.


That being said. an easy test to check the status of the server is to test it locally
For example subsitute you own numbers where you see []
1) Open you browser and type the following in the address field:

ftp://[USER NAME]:[PASSWORD]@[192.168.1.2]:[PRIVATE PORT NUMBER]
which could read like:
ftp://john:123d@192.168.1.2:21

Let me know how ths goes.

Cheers.

Lucid.

Title: Re: Setting up an FTP on DNS-323
Post by: fordem on December 03, 2008, 07:55:31 AM
Lucid,

Any idea why port forwarding set up as you described would not work for me?  I have to enable a virtual server or it doesn't work.

Rich

If I recall correctly (it's about a year since I replaced my D-Link router ) virtual servers are simply their name for port forwarding.
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on December 03, 2008, 09:34:59 AM
If I recall correctly (it's about a year since I replaced my D-Link router ) virtual servers are simply their name for port forwarding.

yes, it has the same function.
Title: Re: Setting up an FTP on DNS-323
Post by: marklyn on December 03, 2008, 10:34:18 AM
make sure passive ftp is OFF for your client... that was my problem.  once i turned that off, it worked nicely!
Title: Re: Setting up an FTP on DNS-323
Post by: rhvonlehe on December 03, 2008, 11:06:50 AM
Lucid,

Thanks for the checklist.  In your directions to me you say go to Advanced->Virtual Server.  In the reply to the previous poster, you say enable port forwarding.  Are you using these interchangeably? 

Here's my history:

I had previously had successful access to my DNS-323 ftp server through my Trendnet TEW-432BRP wireless G router.  They have a very different interface for firewall rules.  With the Trendnet, I was able to allow port 21 (FTP) to come straight through, which seems to indicate that Comcast allows port 21. 

I upgraded to the Dlink DIR-655 and initially tried to create the same rule using Advanced->Port Forwarding.  This didn't work.  My coworker showed me his setting and he uses Advanced->Virtual Servers to accomplish this.  I tried his approach (your approach) and it worked.  But I don't understand why Advanced->Port Forwarding doesn't work just as well. 

From my understanding, the only difference between port forwarding and virtual servers is that virtual servers doesn't allow a range of ports and it does allow one port to be mapped to a different port.

So to sum up...  I can do what I want to do with virtual server settings, but I don't understand why port forwarding doesn't allow me to do the same thing.  I _would_ like to combine the two for my ssh setup.

I'd like to "port forward" port 22 public to port 22 private.  I would also like to have a virtual ssh server on port 443 (so I can tunnel home from work).  Trying to set up two virtual servers in this way leads to a conflict in the Advanced->virtual server menu.  But if I create a virtual server for public port 443 and a port forward for public port 22, I am only able to get through the firewall on public port 443.

Any additional ideas are welcome.

Rich
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on December 03, 2008, 11:40:30 AM
Glad to help. AS for why you can't just port forward as opposed to using Virtual Server? Beats me. I far as I am concerned they are interchangeable (except of course for port ranges). That being said I remembered a while back a moderator advised someone to use Virtual Server instead of Port Forwarding but it was never explain why. For all intents and purposes as long as it works you should be fine.

In terms of setting up SSH. Are you trying to setup a secured FTP? If thats the case forget it. The built in FTP server can't do it. I have never had the need to do this either. I know if you download FONZPlug you can telnet ssh onto the system. That requires some setup but if you search the net for

1) Fonz Funplug v0.5 (http://www.inreto.de/dns323/fun-plug/0.5/); AND
2) Telnet (http://www.bergek.com/2008/11/13/dlink-dns-323-part-3-fonz-fun_plug/); AND
3) Linux Commands: (http://en.wikibooks.org/wiki/Linux_For_Newbies/Command_Line)

Fonzplug is not supported here and is still in beta, however, it is a great app and I haven't had any issues with it yet. Anyway, don't expect any help from the mods (understandably) with this since it is not developed by Dlink.

Cheers,

Lucid.
Title: Re: Setting up an FTP on DNS-323
Post by: rhvonlehe on December 03, 2008, 11:54:32 AM
Lucid,

Thanks again for replying.  No, I don't need sftp - at least not yet.  I plan to learn about and try the fun_plug stuff down the road.  My only interest right now was to allow me to ssh to my home network by using the standard port 22 when not at work and the SSL port 443 when at work.  I can just use 443 all the time, although it's one more detail to remember at the command line.  Actually, I'm doing it right now (using a virtual server).

I wonder why port forwarding just plain doesn't seem to work? 

Cheers
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on December 03, 2008, 12:06:34 PM
I hear you. Hopefully ECF will have an answer.

Cheers,

Lucid
Title: Re: Setting up an FTP on DNS-323
Post by: WildSioux on December 03, 2008, 01:47:07 PM
I am having a similar problem with FTP on DNS-323.  I have set up the virtual server to open port 21 on my DIR-655 FW 1.11 (1.20+++ is SNAFU...see below).  I have set up the user/password to a folder with R/W.  In Filezilla, I can log in to the FTP (at home on same IP range...).  But when I try to delete, copy, or change file/folder attributes (CHMOD) using Filezilla I get an error.  I don't understand why I can be logged in to the FTP, see the files/folders, but not be able to do anything with them.

Further, I have set both XP firewall and Kaspersky with the proper settings to allow "full" network communication with Filezilla.  Still, nothing...

I do believe it is a DNS-323 user/password setting that is fudgin the FTP.  The settings are there, but the actual settings are different with different levels set preventing it from doing anything.

Either that, or in addition...The FW for the DIR-655 is beyond repair and DLINK wants us all to purchase either the DIR-825, DIR-855, or DGL-4500...all of which those FW's are also beyond repair as well.  FTP...you don't need FTP with our "DLINK" routers.  We can't produce an actual working FW for anything so don't ask.
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on December 03, 2008, 02:17:05 PM
First off thats not the DIR-655 at all. Your logged in and that proof enough for me. It could have something to do with the file permissions etc. For argument sake:
1) Create a new DIR call FTP on Vol1 drive
2) Set it up so that the user account from the drop down list access that folder with READ/WRITE permissions
3) create a text file and save it in the FTP folder you just created.
4) log in and see what happens (try to read and write files).

My idea is you could have mucked up the files should you have changed ownership or somthing, changed user accounts in the OS or whatever. A similar thing happened to me. I had to go into the DNS-323 via telnet to reset all the FILES and DIRs with the appropriate access rights. (REAL PAIN INDEED - until I figured it out with the help our beloved forum here)

Let me know how this went.
Title: Re: Setting up an FTP on DNS-323
Post by: fordem on December 03, 2008, 02:26:43 PM
Just a suggestion - get your ftp server up and running on the local LAN, before attempting to use it remotely - this step will greatly reduce the "is it the firewall/router or is it the ftp server confusion"
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on December 03, 2008, 02:47:36 PM
BUMP...if you read a previous post I wrote the same thing. It's good advice. Narrow it down the the lowest denominator.

Lucid
Title: Re: Setting up an FTP on DNS-323
Post by: WildSioux on December 04, 2008, 06:35:54 AM
My idea is you could have mucked up the files should you have changed ownership or somthing, changed user accounts in the OS or whatever. A similar thing happened to me. I had to go into the DND-323 via telnet to rest all the file and DIRs to the appropriate access rights. (REAL PAIN INDEED - until I figured it out with the help our beloved forum here)

Let me know how this went.

Lucid, I didn't try your suggestion of setting up a new folder with new user/password...  I have read that this is more than likely caused by the ownership settings being messed up.  I know how to telnet in.  But how do I reset all the files and DIR's to the appropriate access rights?  Thanks
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on December 04, 2008, 07:01:49 AM
Lucid, I didn't try your suggestion of setting up a new folder with new user/password...  I have read that this is more than likely caused by the ownership settings being messed up.  I know how to telnet in.  But how do I reset all the files and DIR's to the appropriate access rights?  Thanks

I have a step by step on this thread: http://forums.dlink.com/index.php?topic=2183.msg11532#msg11532

Cheers,

Lucid
Title: Re: Setting up an FTP on DNS-323
Post by: WildSioux on December 04, 2008, 08:56:58 AM
^^ Thanks Lucid, that did the trick.  I no longer get the errors of not being able to delete or chmod a file to different attributes via Filezilla.

I did change the wrong folder to my user the first time.  I'm not sure what user level it had.  But I changed it back to "nobody" like one of the other folders had.

+This explains why in XP I'm unable to open a word document for example when logging in to a folder under my username/password.  But when I navigate to the same folder and open the same word document without having to login it opens.

I think the answer to this is NO.  But any way of setting multiple users to a folder?  Either by each user individually or by using a group?

Thanks

EDIT:  BTW, How come I can access the folder and now change things in Filezilla when I don't even have Port 21 forwarded in my DIR-655?  This is on my local LAN...
Title: Re: Setting up an FTP on DNS-323
Post by: fordem on December 04, 2008, 09:39:29 AM
EDIT:  BTW, How come I can access the folder and now change things in Filezilla when I don't even have Port 21 forwarded in my DIR-655?  This is on my local LAN...

Because on your local LAN you have direct access to the ftp server - you do not have to traverse the firewall in the DIR-655.

Port forwarding is ONLY required to allow access from the outside of the firewall.
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on December 04, 2008, 11:01:21 AM
I think the answer to this is NO.  But any way of setting multiple users to a folder?  Either by each user individually or by using a group?

EDIT:  BTW, How come I can access the folder and now change things in Filezilla when I don't even have Port 21 forwarded in my DIR-655?  This is on my local LAN...

Yes you can change it to the group "EVERYONE" or a specific group using the same step by step instructiions I posted.

PORT FORWARDING: basically listens to a request on a port from the internet and redirects to the appropriate private port on the LAN.

Cheers,

Lucid

Title: Re: Setting up an FTP on DNS-323
Post by: WildSioux on December 04, 2008, 11:52:14 AM
fordem, Lucid

re: port on LAN, understood that an open port is for internet and not internal LAN. 

Thanks
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on December 04, 2008, 12:35:34 PM
?? Please explain. I haven't clue as to what your are trying to get across.

Cheers!

Lucid
Title: Re: Setting up an FTP on DNS-323
Post by: WildSioux on December 04, 2008, 01:55:16 PM
Lucid, calm down LOL.  I should have been more clear.  That response was to you and fordem  regarding my port forwarding question.  I understand now why I don't have to open port 21 to be able to access on my own lan.  And that it is only to allow outside access.
Title: Re: Setting up an FTP on DNS-323
Post by: Lucid on December 04, 2008, 03:22:01 PM
Lucid, calm down LOL.  I should have been more clear.  That response was to you and fordem  regarding my port forwarding question.  I understand now why I don't have to open port 21 to be able to access on my own lan.  And that it is only to allow outside access.

;-] You think you should have been more clear? LOL Send that code to the army to crack...

Glad you figured it out!

Lucid
Title: Re: Setting up an FTP on DNS-323
Post by: dicrouthamel on December 05, 2008, 10:25:05 AM
Maybe it's just me, but I never found the built in ftp feature useful.  I use pure-ftpd on a port other than 21 and define a passive port range.  Those ports are forwarded to the DNS-323.  People outside my lan can connect just fine.
Title: Re: Setting up an FTP on DNS-323
Post by: fordem on December 05, 2008, 12:44:08 PM
Maybe it's just me - but I find the built-in ftp feature does everything I need.  I use active ftp on the standard port (21) and forward that port only  (I don't believe in forwarding more ports than I absolutely need to) and have never had a problem connecting from outside my LAN
Title: Re: Setting up an FTP on DNS-323
Post by: dicrouthamel on December 05, 2008, 07:46:48 PM
Active versus passive - your choice ;)  But if you're looking to use passive, I don't think D-Link's built in ftp will work.
Title: Re: Setting up an FTP on DNS-323
Post by: fordem on December 06, 2008, 06:58:57 AM
Active versus passive - your choice ;)  But if you're looking to use passive, I don't think D-Link's built in ftp will work.

In which case - active would be my choice - I can run active ftp with one single port forwarded, port 21, as compared to port 21 + a range of passive ports.

Given the general paranoia on security and reduced exposure/hardened hosts - active would/should be the way to go - n'est pas?
Title: Re: Setting up an FTP on DNS-323
Post by: dicrouthamel on December 06, 2008, 06:51:32 PM
In which case - active would be my choice - I can run active ftp with one single port forwarded, port 21, as compared to port 21 + a range of passive ports.

Given the general paranoia on security and reduced exposure/hardened hosts - active would/should be the way to go - n'est pas?

I'd have to disagree, unless perhaps you're some corporation/business.  I don't live in fear ;)  My preference is passive.  Better for me, and easier for those that connect, like old family members who wish to use a browser to connect.  Or better yet, I just send them a link, they click, connect & download.  Sure, IE let's you turn off using passive mode by default, but try telling that to a 68 year old man who just wants to download some videos of his grandchildren.  You'll never convince me that active is better for me - it simply isn't. :)
Title: Re: Setting up an FTP on DNS-323
Post by: fordem on December 07, 2008, 04:10:19 AM
I'm not trying to convince you that active ftp is better for you - I have neither the time nor the desire to do an analysis of your needs.

I don't agree that passive ftp is any easier to use - BUT - in my experience it's a heck of a lot easier to set up - and, by the way, IE works just great with active ftp, just as you describe it - send them a link, they click, connect and download - with NO changes to the browser, and no tricky configuration at the server.
Title: Re: Setting up an FTP on DNS-323
Post by: dicrouthamel on December 07, 2008, 06:23:56 AM
I'm not trying to convince you that active ftp is better for you - I have neither the time nor the desire to do an analysis of your needs.

No worries - I don't want your analysis anyway ;)

I don't agree that passive ftp is any easier to use - BUT - in my experience it's a heck of a lot easier to set up - and, by the way, IE works just great with active ftp, just as you describe it - send them a link, they click, connect and download - with NO changes to the browser, and no tricky configuration at the server.

Isn't IE by default configured to use Passive and a setting needs to be made to use Active?  I don't remember - I don't use it anyway ;)
Title: Re: Setting up an FTP on DNS-323
Post by: fordem on December 07, 2008, 09:02:08 AM
Good question - I always thought it was the other way around.