FTP/Ports/Connection

FTP/Ports/Connection

Postby iamola » Wed May 06, 2015 7:35 pm

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.
iamola
Donator VIP
Donator VIP
 
Posts: 90
Joined: Thu Sep 11, 2014 1:40 pm

Re: FTP/Ports/Connection

Postby fvdw » Wed May 06, 2015 9:07 pm

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:
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: FTP/Ports/Connection

Postby fvdw » Wed May 06, 2015 9:40 pm

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 ?
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: FTP/Ports/Connection

Postby fvdw » Wed May 06, 2015 9:56 pm

I edit post above (added FTPS trial)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: FTP/Ports/Connection

Postby iamola » Wed May 06, 2015 10:23 pm

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.
iamola
Donator VIP
Donator VIP
 
Posts: 90
Joined: Thu Sep 11, 2014 1:40 pm

Re: FTP/Ports/Connection

Postby iamola » Thu May 07, 2015 8:06 am

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.
iamola
Donator VIP
Donator VIP
 
Posts: 90
Joined: Thu Sep 11, 2014 1:40 pm

Re: FTP/Ports/Connection

Postby fvdw » Thu May 07, 2015 11:26 am

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
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: FTP/Ports/Connection

Postby knielen » Thu May 07, 2015 6:43 pm

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
knielen
Donator VIP
Donator VIP
 
Posts: 16
Joined: Tue Dec 30, 2014 12:20 pm

Re: FTP/Ports/Connection

Postby Jocko » Fri May 08, 2015 10:17 am

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/
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France


Return to Development

Who is online

Users browsing this forum: No registered users and 13 guests