Page 1 of 1

FTP/Ports/Connection

PostPosted: Wed May 06, 2015 7:35 pm
by iamola
Using Filezilla... all ports mentioned are open and directed to the NAS in my Linksys Router.

So i tried to use SFTP (port 8022) - FAILED.
So i setup FTPS (port 990) and FTPES (port 2121), tried both - FAILED (This one was weird because it actually connected but it seems like the server kicked me off. the log shows me as "Denied"). To add, i did create the Certificate.

Tried changing the port to 31 for external on my router, routing to internal 21 - FAILED
Tried changing all ports to 31 on both NAS and router - FAILED.

Seems like the only thing that works is port 21!
I have the data port 21 open also.

And yes, my router works fine because i changed my webport to another port from 80 and that works perfectly fine.

Re: FTP/Ports/Connection

PostPosted: Wed May 06, 2015 9:07 pm
by fvdw
I checked sftp, it works as expected :scratch so something must be wrong in your setup
sftp.JPG

(I connected with PC within the LAN)

will check FTPS later, need to generate new certificate :mrgreen:

Re: FTP/Ports/Connection

PostPosted: Wed May 06, 2015 9:40 pm
by fvdw
also FTPeS works on port 2121, (note FTPES only accepts active mode)
fspes.JPG


end FTPS also on port 990 (NB standard mode I can connect but do not get folder listing, with active mode it works ok, see output FileZilla below
Code: Select all
Status:   Verbinden met 192.168.1.188:990...
Status:   Verbinding aangemaakt, TLS initialiseren...
Status:   Certificaat controleren....
Status:   TLS-/SSL-verbinding wordt gemaakt, wachten op welkomstbericht...
Antwoord:   220 FTP Server ready
Commando:   USER xxx
Antwoord:   331 Password required for xxx
Commando:   PASS ******
Antwoord:   230 Welcome xxx default
Commando:   SYST
Antwoord:   215 UNIX Type: L8
Commando:   FEAT
Antwoord:   211-Features:
Antwoord:    UTF8
Antwoord:    LANG fr-FR;en-US*
Antwoord:    EPRT
Antwoord:    EPSV
Antwoord:    MDTM
Antwoord:    SSCN
Antwoord:    SIZE
Antwoord:    PROT
Antwoord:    CCC
Antwoord:    PBSZ
Antwoord:    AUTH TLS
Antwoord:    REST STREAM
Antwoord:   211 End
Commando:   OPTS UTF8 ON
Antwoord:   200 UTF8 set to on
Commando:   PBSZ 0
Antwoord:   200 PBSZ 0 successful
Commando:   PROT P
Antwoord:   200 Protection set to Private
Status:   Verbonden
Status:   Mappenlijst ophalen...
Commando:   PWD
Antwoord:   257 "/1000/fotos" is the current directory
Commando:   TYPE I
Antwoord:   200 Type set to I
Commando:   PORT 192,168,1,44,10,116
Antwoord:   200 PORT command successful
Commando:   LIST
Antwoord:   150 Opening BINARY mode data connection for file list
Antwoord:   226 Transfer complete
Status:   Mappenlijst succesvol ontvangen


So again there must be something wrong in your setup (did you try active mode ?...see help menu also of ftp menu)
Further question, what does your ftp log learns us about the failure you get ?

Re: FTP/Ports/Connection

PostPosted: Wed May 06, 2015 9:56 pm
by fvdw
I edit post above (added FTPS trial)

Re: FTP/Ports/Connection

PostPosted: Wed May 06, 2015 10:23 pm
by iamola
How do you have yours setup?
I am using DDNS service.

For SFTP, i activated by using the checkbox, setup Filezilla to use SFTP with the port.... no go.
Created the Certificate for FTPS/FTPES, turned it on and used Filezilla for Implicit connection.... no go.
Tried Explicit... no go.
Tried both ports on both implicit and explicit... no go.

Re: FTP/Ports/Connection

PostPosted: Thu May 07, 2015 8:06 am
by iamola
Finally got them to work, but seems like FTPS and FTPES is buggy.
Could not get the directory list but i see in the log that they connected.

Would you recommend only SFTP? As thats the only one that gave me the directory listing.

Re: FTP/Ports/Connection

PostPosted: Thu May 07, 2015 11:26 am
by fvdw
iamola wrote:Finally got them to work, but seems like FTPS and FTPES is buggy.
Could not get the directory list but i see in the log that they connected.

Would you recommend only SFTP? As thats the only one that gave me the directory listing.


Did you use äctive mode"for FTPS FTPES ? (if you use standard then you get the issue you mention, connection but no listing.

SFTP is to my opinion as good as these two, but I seldom use FTP so my advice is not based on good experience. Next week Jocko is back. He has more experience with FTP

Re: FTP/Ports/Connection

PostPosted: Thu May 07, 2015 6:43 pm
by knielen
I also use SFTP, it's very stable.

Not sure how experienced you are with FTP, but a good hint is to add your FTP server as a network location in your File Explore, very handy. For SFTP you need to install extra software, but plenty of info on the internet

Re: FTP/Ports/Connection

PostPosted: Fri May 08, 2015 10:17 am
by Jocko
Hi iamola,

iamola wrote:Finally got them to work, but seems like FTPS and FTPES is buggy.
I go to look at this point next week but I don't think that.

Maybe you need some additional information.

FTPS and FTPES uses a certificate, the server name must be the same that this one set with the certificate (CN). As you enable the DDNS service, this should be ok (FTP server name = certificate company name = DDNS).

Then, you need to use the DDNS to connect to the FTPS and FTPES servers instead of the nas name. But following your ISP box, you may not to be able to connect to the FTPS and FTPES servers from your LAN. Indeed, some routers don't allow loopback (http://help.screenconnect.com/Cannot_ac ... s_from_LAN). In this case, you can only check these servers from Internet. You can use this url to do it
Code: Select all
https://ftptest.net/