FTP not working - TLS connection aborted

Username: epiz_27334897
Hi, I’m encountering a problem with uploading files via FTP with FileZilla.
I suspect the issue might have been because I connected on my secondary PC once. Before that I only used my main PC and encountered no issues. Now the issue arises on both PCs, on any network I try. Please help.

Status:	Disconnected from server
Status:	Resolving address of ftpupload.net
Status:	Connecting to 185.27.134.11:21...
Status:	Connection established, waiting for welcome message...
Response:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:	220-You are user number 342 of 6900 allowed.
Response:	220-Local time is now 11:29. Server port: 21.
Response:	220-This is a private system - No anonymous login
Response:	220 You will be disconnected after 60 seconds of inactivity.
Command:	AUTH TLS
Response:	234 AUTH TLS OK.
Status:	Initializing TLS...
Status:	Verifying certificate...
Status:	TLS connection established.
Command:	USER epiz_27334897
Response:	331 User epiz_27334897 OK. Password required
Command:	PASS ************
Response:	230-Your bandwidth usage is restricted
Response:	230 OK. Current restricted directory is /
Command:	OPTS UTF8 ON
Response:	200 OK, UTF-8 enabled
Command:	PBSZ 0
Response:	200 PBSZ=0
Command:	PROT P
Response:	200 Data protection level set to "private"
Status:	Logged in
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/" is your current location
Command:	TYPE I
Response:	200 TYPE is now 8-bit binary
Command:	PASV
Response:	227 Entering Passive Mode (185,27,134,11,110,88)
Command:	MLSD
Error:	GnuTLS error -110: The TLS connection was non-properly terminated.
Status:	Server did not properly shut down TLS connection
Error:	The data connection could not be established: ECONNABORTED - Connection aborted

Because the error happens when entering passive mode, I tried forcing it into active mode, with fallback disabled. Here is the log:

Status:	Disconnected from server
Status:	Resolving address of ftpupload.net
Status:	Connecting to 185.27.134.11:21...
Status:	Connection established, waiting for welcome message...
Response:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:	220-You are user number 314 of 6900 allowed.
Response:	220-Local time is now 11:30. Server port: 21.
Response:	220-This is a private system - No anonymous login
Response:	220 You will be disconnected after 60 seconds of inactivity.
Command:	AUTH TLS
Response:	234 AUTH TLS OK.
Status:	Initializing TLS...
Status:	Verifying certificate...
Status:	TLS connection established.
Command:	USER epiz_27334897
Response:	331 User epiz_27334897 OK. Password required
Command:	PASS ************
Response:	230-Your bandwidth usage is restricted
Response:	230 OK. Current restricted directory is /
Command:	OPTS UTF8 ON
Response:	200 OK, UTF-8 enabled
Command:	PBSZ 0
Response:	200 PBSZ=0
Command:	PROT P
Response:	200 Data protection level set to "private"
Status:	Logged in
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/" is your current location
Command:	TYPE I
Response:	200 TYPE is now 8-bit binary
Command:	PORT 10,12,119,127,228,80
Response:	500 I won't open a connection to 10.12.XXX.XXX (only to 202.94.XX.XX)
Error:	Failed to retrieve directory listing

Something seems off. What is the IP of the hosting account?

3 Likes

Tried again, here it is:

Response: 500 I won’t open a connection to 10.12.119.127 (only to 202.94.70.60)

Response: 500 I won’t open a connection to 10.12.119.127 (only to 202.94.70.60)

Hmm, it looks like something is going wrong on the network side on your end.

This particular error is to be expected, it happens if you try to open an FTP connection in “Active” mode when you’re behind NAT (which is almost every consumer connection). So you’ll want to switch that back to Passive mode.

As for why this breaks, I think it could be one of the following:

  • You’re behind two layers of NAT. NAT with FTP is already messy, and double NAT is double messy. Do you know for certain that you are connected directly to your router, and that the router has it’s own public IP address? If you have multiple routers behind each other, that would cause issues, so please try connecting directly to the main router.
  • A router along the line is messing with the FTP commands. Please check (or ask the network administrator to check) to see if there is an “FTP ALG” setting there. Toggling that may help with this.

In any case, using a VPN will probably work around this as well, but I can understand if you’d rather do without.

7 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.