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.




520 posts

Ultimate Geek
+1 received by user: 17


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

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
26 posts

Geek
+1 received by user: 2


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

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.

 

 




520 posts

Ultimate Geek
+1 received by user: 17


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

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 »

UFB killer app: Speed
Posted 17-Nov-2017 17:01


The case for RSS — MacSparky
Posted 13-Nov-2017 14:35


WordPress and Indieweb: Take control of your online presence — 6:30 GridAKL Nov 30
Posted 11-Nov-2017 13:43


Chorus reveals technology upgrade for schools, students
Posted 10-Nov-2017 10:28


Vodafone says Internet of Things (IoT) crucial for digital transformation
Posted 10-Nov-2017 10:06


Police and Facebook launch AMBER Alerts system in NZ
Posted 9-Nov-2017 10:49


Amazon debuts Fire TV Stick Basic Edition in over 100 new countries
Posted 8-Nov-2017 05:34


Vodafone VoIP transition to start this month
Posted 7-Nov-2017 12:33


Spark enhances IoT network capability
Posted 7-Nov-2017 11:33


Vocus NZ sale and broadband competition
Posted 6-Nov-2017 14:36


Hawaiki reaches key milestone in landmark deep-sea fibre project
Posted 4-Nov-2017 13:53


Countdown launches new proximity online shopping app
Posted 4-Nov-2017 13:50


Nokia 3310 to be available through Spark New Zealand
Posted 4-Nov-2017 13:31


Nest launches in New Zealand
Posted 4-Nov-2017 12:31


Active wholesale as Chorus tackles wireless challenge
Posted 3-Nov-2017 10:55



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.