D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: swabianeagle on March 28, 2012, 09:33:34 PM

Title: Can not login to ftp server from outside.
Post by: swabianeagle on March 28, 2012, 09:33:34 PM
I have a DNS-323 (F/W 1.10) and a DIR-655 (F/W 1.32NA).
I want to use the ftp server on the NAS.
I enabled the server on the NAS and added a virtual sever for FTP to the DIR-655.

When I try to access the ftp server from within the LAN everything works fine:

Code: [Select]
> ftp 192.168.0.99
Connected to 192.168.0.99.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 5 allowed.
220-Local time is now 22:58. Server port: 21.
220-This server supports FXP transfers
220 You will be disconnected after 2 minutes of inactivity.
Name (192.168.0.99:peter): peter
331 User peter OK. Password required
Password:
230 OK. Current restricted directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

However, if I try access from external the system refuses to let me log in:

Code: [Select]
>ftp 62.52.212.121
Connected to 62.52.212.121.
220 Inactivity timer = 120 seconds. Use 'site idle <secs>' to change.
Name (62.52.212.121:peter): peter
331  Password required.
Password:
530 Permission denied
ftp: Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

What am I doing wrong?

Thanks,
swabianeagle
Title: Re: Can not login to ftp server from outside.
Post by: fordem on March 29, 2012, 07:31:18 AM
I would suspect that when logging in from outside the network, you are being connected to a different device - do you see the difference in the screens?

This is typical of a DNS-323 ...
Quote
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 5 allowed.
220-Local time is now 22:58. Server port: 21.
220-This server supports FXP transfers
220 You will be disconnected after 2 minutes of inactivity.

This is not ...
Quote
220 Inactivity timer = 120 seconds. Use 'site idle <secs>' to change.

Check the port forwarding on your router, and make sure that you're connecting to the correct public ip address.
Title: Re: Can not login to ftp server from outside.
Post by: Wiggs on March 29, 2012, 12:17:46 PM
Are you actually outside the network when trying to access the FTP externally?  If you are inside your internal LAN and using the external IP you will have problems.

Regards,


Wiggs
Title: Re: Can not login to ftp server from outside.
Post by: swabianeagle on March 29, 2012, 08:11:10 PM
I would suspect that when logging in from outside the network, you are being connected to a different device - do you see the difference in the screens?

This is typical of a DNS-323 ...
This is not ...
Check the port forwarding on your router, and make sure that you're connecting to the correct public ip address.

Hmm, good point. Thanks!
I got the public IP address from Google, but I also checked other sites like www.whatsmyip.com. They all tell me the same public address.
So what ftp server am I trying to connect to then and more importantly, how do I get to connect to my own?
Title: Re: Can not login to ftp server from outside.
Post by: swabianeagle on March 29, 2012, 08:17:18 PM
Are you actually outside the network when trying to access the FTP externally?  If you are inside your internal LAN and using the external IP you will have problems.

Regards,


Wiggs

Yes, I'm trying from inside my LAN. I didn't know this doesn't work.
I also tried from an outside machine. Actually I used Barracuda to log into my work PC from home and from there tried to ftp back to my ftp server.
This results in the ftp request timing out. Here's what I get:
Code: [Select]
ftp: connect: Attempt to connect timed out without establishing a connection
I'm running out of ideas what to try?
Title: Re: Can not login to ftp server from outside.
Post by: fordem on March 30, 2012, 06:55:31 AM
Testing an external connection from inside the same LAN is not the best way to approach it - some routers support "loop back" and will allow it, however many don't.

If you're certain you're connecting to the correct public ip - check your port forwarding on the router - where are you sending the connection request?
Title: Re: Can not login to ftp server from outside.
Post by: swabianeagle on March 30, 2012, 10:16:43 AM
Testing an external connection from inside the same LAN is not the best way to approach it - some routers support "loop back" and will allow it, however many don't.

If you're certain you're connecting to the correct public ip - check your port forwarding on the router - where are you sending the connection request?

Well, I'm not certain it's the correct public ip. When I try to connect from work ftp times out. Is there a better way to find the ip than to google "what's my public IP address"?
I will double-check my virtual server settings in router tonight just to make sure. What about the DSL-Modem, could that cause any problems?
Title: Re: Can not login to ftp server from outside.
Post by: fordem on March 30, 2012, 02:38:51 PM
Check your router's status page - if the connection is properly configured, the router will show you it's public address.

Failing that web sites such as www.whatismyip.com/ (http://www.whatismyip.com/) and yes, googling what's my ip will show you the public ip the request came from.
Title: Re: Can not login to ftp server from outside.
Post by: swabianeagle on March 30, 2012, 08:40:57 PM
Okay, I finally made some progress tonight.
The problem was with the DSL modem (Thomson ST516).
I had to change its settings so it would assign the public IP address to the DIR-655 router.
After that change I was able to access the ftp server on the DNS-323.

Thanks to everybody for the help.