I use Filezilla as the FTP client.
I want to connect to my ftp in a secure way, so lunarpages support wrote me to use the FTP over TLS(explicit) option.
It worked when the computer is connected to the internet with no router (in active mode).
BUT when the computer is connected using a router there is a problem.
When i use passive mode then it connect end EVEN show me the folders in the root directory.
But, when i try to open these folder by clicking them, i get this:
//Here the ftp client starts the connection:
Status: Connecting to abell.lunarpages.com ...
Status: Connected with abell.lunarpages.com, negotiating SSL connection...
Response: 220---------- Welcome to Pure-FTPd [TLS] ----------
Response: 220-You are user number 6 of 50 allowed.
Response: 220-Local time is now 18:08. Server port: 21.
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: AUTH TLS
Response: 234 AUTH TLS OK.
Status: SSL connection established. Waiting for welcome message...
Command: USER MY_USER
Response: 331 User MY_USER OK. Password required
Command: PASS **************
Response: 230-User MY_USER has group access to: MY_USER
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: ESTA
Response: AUTH TLS
Response: PBSZ
Response: PROT
Response: 211 End.
Command: PBSZ 0
Response: 200 PBSZ=0
Command: PROT P
Response: 534 Fallback to [C]
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Status: Directory listing successful
Status: Retrieving directory listing...
//Here i see all the folders in the ROOT, so here i press the WWW folder:
Command: CWD www
Response: 250 OK. Current directory is /www
Command: PWD
Response: 257 "/www" is your current location
Command: TYPE A
Response: 200 TYPE is now ASCII
Command: PASV
Response: 227 Entering Passive Mode (209,200,229,170,183,68)
Command: LIST// here it stuck for a few seconds
Error: Transfer channel can't be opened. Reason: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Error: Could not retrieve directory listing
-----
So as you see it stucks on the LIST command and does not go in WWW.
IF i set the mode to ACTIVE this is what i get:
Status: Connecting to abell.lunarpages.com ...
Status: Connected with abell.lunarpages.com, negotiating SSL connection...
Response: 220---------- Welcome to Pure-FTPd [TLS] ----------
Response: 220-You are user number 7 of 50 allowed.
Response: 220-Local time is now 18:13. Server port: 21.
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: AUTH TLS
Response: 234 AUTH TLS OK.
Status: SSL connection established. Waiting for welcome message...
Command: USER MY_USER
Response: 331 User MY_USER OK. Password required
Command: PASS **************
Response: 230-User MY_USER has group access to: MY_USER
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: ESTA
Response: AUTH TLS
Response: PBSZ
Response: PROT
Response: 211 End.
Command: PBSZ 0
Response: 200 PBSZ=0
Command: PROT P
Response: 534 Fallback to [C]
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Command: TYPE A
Response: 200 TYPE is now ASCII
Command: PORT 192,168,2,100,143,104
Response: 500 I won't open a connection to 192.168.2.100
(only to HERE_IT_WRITES_MY_REAL_IP_ADDRESS)
Error: Could not retrieve directory listing
So here as you see by the error there is a NAT problem.
Maybe i should forward some ports but which (i think tls pick random port ...)
Please help.
Thanks.