Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




554 posts

Ultimate Geek
+1 received by user: 19


Topic # 223826 19-Oct-2017 09:44
Send private message

I use duckdns to access Fritzbox 7490 which is working fine but can't ftp to it. Do I need to change any other settings somewhere? Looking at the activity in FileZilla looks like connections gets established but fails to retrieve the directory listing.

 

Status: Resolving address of khadanja.duckdns.org
Status: Connecting to xxx.xxx.xx.xxx:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Error: Connection timed out after 60 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of khadanja.duckdns.org
Status: Connecting to xxx.xxx.xx.xxx:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (xxx,xxx,xx,xxx,208,10)
Command: LIST
Error: The data connection could not be established: ETIMEDOUT - Connection attempt timed out
Error: Connection timed out after 60 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of khadanja.duckdns.org
Status: Connecting to xxx.xxx.xx.xxx:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (xxx,xxx,xx,xxx,159,200)
Command: LIST
Error: The data connection could not be established: ETIMEDOUT - Connection attempt timed out
Error: Connection timed out after 60 seconds of inactivity
Error: Failed to retrieve directory listing


Create new topic
31 posts

Geek
+1 received by user: 3


  Reply # 1886242 19-Oct-2017 12:48
Send private message

You are FTPing to the Fritzbox itself?

 

FTP uses two TCP connections. A control/command connection and a data connection. The control connection is from the client to port 21 on the server. The data connection can be either direction (client listens and the server connects to it (active mode) or the server listens on the client connects to it (passive mode)). From your log you are encrypting the control connection and using passive mode. When doing a transfer of data (file or directory listing) the server is listening on a port (a different one to 21) and tells the client to connect to it. As it is behind a firewall an exception to be created on the firewall to allow the connection from your client to the FTP server. But as you are encrypting the control connection the firewall can't sniff the control connection to see when it has to do this and I guess the FTP server doesn't interact directly with the firewall to allow the connections.

 

The usual solution is to either use SFTP which uses a SSH connection on a single port/connection for everything or port forward a range of ports through to your FTP server and tell it to use those for the data connection (the PassivePorts configuration option in proftpd). I don't know if either is possible with the Fritzbox.

 

 




554 posts

Ultimate Geek
+1 received by user: 19


  Reply # 1886320 19-Oct-2017 16:25
Send private message

andgor:

 

You are FTPing to the Fritzbox itself?

 

FTP uses two TCP connections. A control/command connection and a data connection. The control connection is from the client to port 21 on the server. The data connection can be either direction (client listens and the server connects to it (active mode) or the server listens on the client connects to it (passive mode)). From your log you are encrypting the control connection and using passive mode. When doing a transfer of data (file or directory listing) the server is listening on a port (a different one to 21) and tells the client to connect to it. As it is behind a firewall an exception to be created on the firewall to allow the connection from your client to the FTP server. But as you are encrypting the control connection the firewall can't sniff the control connection to see when it has to do this and I guess the FTP server doesn't interact directly with the firewall to allow the connections.

 

The usual solution is to either use SFTP which uses a SSH connection on a single port/connection for everything or port forward a range of ports through to your FTP server and tell it to use those for the data connection (the PassivePorts configuration option in proftpd). I don't know if either is possible with the Fritzbox.

 

 

 

 

Works if I choose plain FTP (insecure under Encryption in FileZilla. Actually I am trying to create a free certificate for my router access site xxx.duckdns.org from https://www.sslforfree.com but when I go through the verification process through ftp it doesn't work still - 

 

Server error 0. Make sure directory is publicly accessible through port 80. Turn off password protection temporarily if on. Ask your host if unsure about the directory or try using an FTP client or >web FTP if you do not have an FTP client to try finding it out.


Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

TCF and Telcos Toughen Up on Scam Callers
Posted 23-Apr-2018 09:39


Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38


Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55


How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08


How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15


iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13


Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11


111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50


Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41


Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29


Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22


Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18


Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47


Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25


New Zealand Adopts International Open Data Charter
Posted 3-Mar-2018 12:48



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.